public void dispose() { if (fCompareConfiguration != null) fCompareConfiguration.removePropertyChangeListener(this); }
public void dispose(){ if (fCompareConfiguration != null) fCompareConfiguration.removePropertyChangeListener(this); }
public void dispose(){ if (fCompareConfiguration != null) fCompareConfiguration.removePropertyChangeListener(this); }
/** * Called on the viewer disposal. * Unregisters from the compare configuration. * Clients may extend if they have to do additional cleanup. * @param event dispose event that triggered call to this method */ protected void handleDispose(DisposeEvent event) { if (fCompareConfiguration != null) { if (fPropertyChangeListener != null) fCompareConfiguration.removePropertyChangeListener(fPropertyChangeListener); fCompareConfiguration= null; } fPropertyChangeListener= null; super.handleDispose(event); }
/** * Called on the viewer disposal. * Unregisters from the compare configuration. * Clients may extend if they have to do additional cleanup. * * @param event dispose event that triggered call to this method */ @Override protected void handleDispose(DisposeEvent event) { if (fCompareConfiguration != null) { if (fPropertyChangeListener != null) fCompareConfiguration.removePropertyChangeListener(fPropertyChangeListener); fCompareConfiguration= null; } fPropertyChangeListener= null; super.handleDispose(event); }
public void setCompareConfiguration(CompareConfiguration cc) { if (fCompareConfiguration != null) fCompareConfiguration.removePropertyChangeListener(this); fCompareConfiguration= cc; if (fCompareConfiguration != null) fCompareConfiguration.addPropertyChangeListener(this); setChecked(Utilities.getBoolean(fCompareConfiguration, fPropertyKey, false)); }
public void setCompareConfiguration(CompareConfiguration cc) { if (fCompareConfiguration != null) fCompareConfiguration.removePropertyChangeListener(this); fCompareConfiguration = cc; if (fCompareConfiguration != null) fCompareConfiguration.addPropertyChangeListener(this); setChecked(getProperty()); }
public void setCompareConfiguration(CompareConfiguration cc) { if (fCompareConfiguration != null) fCompareConfiguration.removePropertyChangeListener(this); fCompareConfiguration= cc; if (fCompareConfiguration != null) fCompareConfiguration.addPropertyChangeListener(this); setChecked(Utilities.getBoolean(fCompareConfiguration, fPropertyKey, false)); }
protected void handleDispose() { super.handleDispose(); participant.getContext().getCache().removeCacheListener(contextListener); getCompareConfiguration().removePropertyChangeListener(this); ICompareNavigator navigator = (ICompareNavigator)synchronizeConfiguration.getProperty(SynchronizePageConfiguration.P_INPUT_NAVIGATOR); if (navigator != null && navigator == super.getNavigator()) { synchronizeConfiguration.setProperty(SynchronizePageConfiguration.P_INPUT_NAVIGATOR, new CompareNavigator() { protected INavigatable[] getNavigatables() { return new INavigatable[0]; } }); } }
@Override protected void handleDispose() { super.handleDispose(); participant.getContext().getCache().removeCacheListener(contextListener); getCompareConfiguration().removePropertyChangeListener(this); ICompareNavigator navigator = (ICompareNavigator)synchronizeConfiguration.getProperty(SynchronizePageConfiguration.P_INPUT_NAVIGATOR); if (navigator != null && navigator == super.getNavigator()) { synchronizeConfiguration.setProperty(SynchronizePageConfiguration.P_INPUT_NAVIGATOR, new CompareNavigator() { @Override protected INavigatable[] getNavigatables() { return new INavigatable[0]; } }); } }
fCompareConfiguration.removePropertyChangeListener(fPropertyChangeListener); fPropertyChangeListener= null;
fCompareConfiguration.removePropertyChangeListener(fPropertyChangeListener); fPropertyChangeListener= null;