drawingEditorOld.removePropertyChangeListener(DrawingEditor.SELECTION_CHANGED, currentViewFigureSelectionChangedListener);
drawingEditorOld.removePropertyChangeListener(DrawingEditor.CURRENT_VIEW_CHANGED, currentViewChangeListener);
}
if (drawingEditorNew != null) {
drawingEditorNew.addPropertyChangeListener(DrawingEditor.SELECTION_CHANGED, currentViewFigureSelectionChangedListener);
drawingEditorNew.addPropertyChangeListener(DrawingEditor.CURRENT_VIEW_CHANGED, currentViewChangeListener);
}
updateState();
}