private void removeRegionListener() {
if (currentBlackboardListener != null) {
ILayer processingRegionLayer = OmsBoxPlugin.getDefault().getProcessingRegionMapGraphic();
IStyleBlackboard blackboard = processingRegionLayer.getStyleBlackboard();
blackboard.removeListener(currentBlackboardListener);
}
}
private void addRegionListener() {
ILayer processingRegionLayer = OmsBoxPlugin.getDefault().getProcessingRegionMapGraphic();