private fun updateProgress(progress: Int) { if (myHost != null && progress != previousProgress) { myHost.updateProgress(progress) } previousProgress = progress }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface .