Class ECPTreeViewAction

  • All Implemented Interfaces:
    ECPAction

    public abstract class ECPTreeViewAction
    extends java.lang.Object
    implements ECPAction
    This ECPAction implementation is specific for a TreeViewer. The action will be initialized with the TreeViewer, the current TreeEditor and the current TreeSelection.
    Author:
    Eugen Neufeld
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.swt.custom.TreeEditor getTreeEditor()
      Current TreeEditor.
      protected org.eclipse.jface.viewers.TreeSelection getTreeSelection()
      Current TreeSelection.
      protected org.eclipse.jface.viewers.TreeViewer getTreeViewer()
      The TreeViewer 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.emf.ecp.view.spi.categorization.model.ECPAction

        execute
    • Constructor Detail

      • ECPTreeViewAction

        public ECPTreeViewAction()
    • 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 - the TreeViewer showing this action
        treeSelection - the current TreeSelection
        treeEditor - the current TreeEditor
      • getTreeViewer

        protected org.eclipse.jface.viewers.TreeViewer getTreeViewer()
        The TreeViewer showing this action.
        Returns:
        the TreeViewer
      • getTreeSelection

        protected org.eclipse.jface.viewers.TreeSelection getTreeSelection()
        Current TreeSelection.
        Returns:
        the TreeSelection
      • getTreeEditor

        protected org.eclipse.swt.custom.TreeEditor getTreeEditor()
        Current TreeEditor.
        Returns:
        the TreeEditor