org.eclipse.emf.common.ui.celleditor
Class ExtendedTreeEditor
java.lang.Object
org.eclipse.swt.custom.ControlEditor
org.eclipse.swt.custom.TreeEditor
org.eclipse.emf.common.ui.celleditor.ExtendedTreeEditor
- All Implemented Interfaces:
- java.util.EventListener, KeyListener, MouseListener, SelectionListener, org.eclipse.swt.internal.SWTEventListener
- Direct Known Subclasses:
- AdapterFactoryTreeEditor
public abstract class ExtendedTreeEditor
- extends TreeEditor
- implements SelectionListener, MouseListener, KeyListener
This base class for implementing a TreeEditor
calls editItem(org.eclipse.swt.widgets.TreeItem)
when the cell editor potentially needs to be activated.
Activation is determined by checking for when a click happens on the single selection that was previously in effect,
or when the user hits the space key when a single selection is in effect.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tree
protected Tree tree
selectedTreeItem
protected TreeItem selectedTreeItem
editTreeItem
protected TreeItem editTreeItem
ExtendedTreeEditor
public ExtendedTreeEditor(Tree tree)
mouseDoubleClick
public void mouseDoubleClick(MouseEvent event)
- Specified by:
mouseDoubleClick
in interface MouseListener
mouseDown
public void mouseDown(MouseEvent event)
- Specified by:
mouseDown
in interface MouseListener
mouseUp
public void mouseUp(MouseEvent event)
- Specified by:
mouseUp
in interface MouseListener
widgetDefaultSelected
public void widgetDefaultSelected(SelectionEvent event)
- Specified by:
widgetDefaultSelected
in interface SelectionListener
widgetSelected
public void widgetSelected(SelectionEvent event)
- Specified by:
widgetSelected
in interface SelectionListener
keyPressed
public void keyPressed(KeyEvent event)
- Specified by:
keyPressed
in interface KeyListener
keyReleased
public void keyReleased(KeyEvent event)
- Specified by:
keyReleased
in interface KeyListener
editItem
protected abstract void editItem(TreeItem treeItem)