public void clearSWTXMLConnection() { if (swtXmlEditorPart != null) { swtXmlEditorPart.removePropertyListener(updatePreviewOnSaveSwtXml); setContent(null); swtXmlEditorPart = null; } }
/* (non-Javadoc) * Method declared on ActiveEditorAction. */ @Override protected void editorDeactivated(IEditorPart part) { if (part != null) { part.removePropertyListener(propListener); partsWithListeners.remove(part); } }
private void clearPropertiesFileConnection() { if (propertiesFileEditorPart != null) { propertiesFileEditorPart.removePropertyListener(updatePreviewOnSavePropertiesFile); propertiesFileEditorPart = null; } }