Example usage for org.eclipse.jface.viewers TextCellEditor dispose

List of usage examples for org.eclipse.jface.viewers TextCellEditor dispose

Introduction

In this page you can find the example usage for org.eclipse.jface.viewers TextCellEditor dispose.

Prototype

public void dispose() 

Source Link

Document

Disposes of this cell editor and frees any associated SWT resources.

Usage

From source file:org.kalypso.gml.ui.commands.exportshape.FieldNameEditingSupport.java

License:Open Source License

public FieldNameEditingSupport(final ColumnViewer viewer) {
    super(viewer);

    final TextCellEditor textCellEditor = new TextCellEditor((Composite) viewer.getControl(), SWT.NONE);
    m_cellEditor = textCellEditor;//from  ww  w.jav a 2  s  .c o  m

    viewer.getControl().addDisposeListener(new DisposeListener() {
        @Override
        public void widgetDisposed(final DisposeEvent e) {
            textCellEditor.dispose();
        }
    });
}