Example usage for org.eclipse.jface.viewers ColumnViewerEditor addEditorActivationListener

List of usage examples for org.eclipse.jface.viewers ColumnViewerEditor addEditorActivationListener

Introduction

In this page you can find the example usage for org.eclipse.jface.viewers ColumnViewerEditor addEditorActivationListener.

Prototype

public void addEditorActivationListener(ColumnViewerEditorActivationListener listener) 

Source Link

Document

Adds the given listener, it is to be notified when the cell editor is activated or deactivated.

Usage

From source file:org.eclipse.emf.ecp.edit.internal.swt.controls.ECPFocusCellDrawHighlighter.java

License:Open Source License

@Override
protected void init() {
    final ColumnViewerEditorActivationListener listener = new ColumnViewerEditorActivationListener() {
        @Override//  w ww  .  ja v  a 2 s  . c om
        public void afterEditorActivated(ColumnViewerEditorActivationEvent e) {
        }

        @Override
        public void afterEditorDeactivated(ColumnViewerEditorDeactivationEvent e) {
            focusCellChanged(getFocusCell(), null);
        }

        @Override
        public void beforeEditorActivated(ColumnViewerEditorActivationEvent e) {
        }

        @Override
        public void beforeEditorDeactivated(ColumnViewerEditorDeactivationEvent e) {
        }
    };
    final ColumnViewerEditor editor = viewer.getColumnViewerEditor();
    editor.addEditorActivationListener(listener);
}