Class ECPTreeViewAction
- java.lang.Object
-
- org.eclipse.emf.ecp.view.spi.categorization.swt.ECPTreeViewAction
-
- All Implemented Interfaces:
ECPAction
public abstract class ECPTreeViewAction extends java.lang.Object implements ECPAction
ThisECPAction
implementation is specific for a TreeViewer. The action will be initialized with theTreeViewer
, the currentTreeEditor
and the currentTreeSelection
.- Author:
- Eugen Neufeld
-
-
Constructor Summary
Constructors Constructor Description ECPTreeViewAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.custom.TreeEditor
getTreeEditor()
CurrentTreeEditor
.protected org.eclipse.jface.viewers.TreeSelection
getTreeSelection()
CurrentTreeSelection
.protected org.eclipse.jface.viewers.TreeViewer
getTreeViewer()
TheTreeViewer
showing this action.void
init(org.eclipse.jface.viewers.TreeViewer treeViewer, org.eclipse.jface.viewers.TreeSelection treeSelection, org.eclipse.swt.custom.TreeEditor treeEditor)
Initialize the tree action.
-
-
-
Method Detail
-
init
public final void init(org.eclipse.jface.viewers.TreeViewer treeViewer, org.eclipse.jface.viewers.TreeSelection treeSelection, org.eclipse.swt.custom.TreeEditor treeEditor)
Initialize the tree action.- Parameters:
treeViewer
- theTreeViewer
showing this actiontreeSelection
- the currentTreeSelection
treeEditor
- the currentTreeEditor
-
getTreeViewer
protected org.eclipse.jface.viewers.TreeViewer getTreeViewer()
TheTreeViewer
showing this action.- Returns:
- the
TreeViewer
-
getTreeSelection
protected org.eclipse.jface.viewers.TreeSelection getTreeSelection()
CurrentTreeSelection
.- Returns:
- the
TreeSelection
-
getTreeEditor
protected org.eclipse.swt.custom.TreeEditor getTreeEditor()
CurrentTreeEditor
.- Returns:
- the
TreeEditor
-
-