コード例 #1
0
  /**
   * 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;
  }
コード例 #2
0
 /**
  * {@inheritDoc}
  *
  * @see org.eclipse.ui.views.properties.tabbed.AbstractPropertySection#dispose()
  */
 @Override
 public void dispose() {
   super.dispose();
   if (getDiagram() != null) {
     removeSemanticListener(getDiagram());
   }
 }
コード例 #3
0
 @Override
 public void dispose() {
   if (page != null) {
     aboutToBeHidden();
     page.dispose();
     page = null;
   }
   super.dispose();
 }