void (final GuiEditor editor) { if (myEditor != editor) { if (myEditor != null) { myEditor.removeComponentSelectionListener(myComponentSelectionListener); } myEditor = editor; myInspectorTable.setEditor(myEditor); myQuickFixManager.setEditor(myEditor); if (myEditor != null) { myEditor.addComponentSelectionListener(myComponentSelectionListener); } else { if (myCustomPropertiesPanel != null) { myCustomPropertiesPanel.removeChangeListener(myCustomPropertiesChangeListener); } } } }