@Override public void dispose() { property.removePropertyChangeListener(this); if (eventAdmin != null) { eventAdmin.deleteIObserver(this); } super.dispose(); }
public void initialisation() { if (eventAdminName != null) { eventAdmin = Finder.getInstance().find(eventAdminName); } property.addPropertyChangeListener(this); if (eventAdmin != null) { eventAdmin.addIObserver(this); } if (property.getPropertyName().equals(LocalProperties.GDA_DATAWRITER_DIR)) { String currentPath = PathConstructor.createFromProperty(LocalProperties.GDA_DATAWRITER_DIR); viewer.setSelection(new StructuredSelection(currentPath)); } else { viewer.setSelection(new StructuredSelection(LocalProperties.get(property.getPropertyName()))); } currentSelection = (IStructuredSelection) (viewer.getSelection()); }