/** * Disposes of the {@link #section} and its contained Widgets and clears references to any class * variables. */ @Override public void dispose() { super.dispose(); // Clear the references to the selected Tree and selected property // Entry. tree = null; selectedEntry = null; // Clear the references to the Property View's ScrolledComposite and its // client. scrollComposite = null; scrollCompositeClient = null; // Dispose the section and clear references to all widgets. (Disposing // the section should dispose of its child widgets recursively.) section.dispose(); section = null; tableViewer = null; nameColumn = null; valueColumn = null; add = null; delete = null; return; }
/** * {@inheritDoc} * * @see org.eclipse.ui.views.properties.tabbed.AbstractPropertySection#dispose() */ @Override public void dispose() { super.dispose(); if (getDiagram() != null) { removeSemanticListener(getDiagram()); } }
@Override public void dispose() { if (page != null) { aboutToBeHidden(); page.dispose(); page = null; } super.dispose(); }