Class ActionProvider

  • All Implemented Interfaces:
    org.eclipse.ui.navigator.IMementoAware

    public class ActionProvider
    extends org.eclipse.ui.internal.navigator.resources.actions.NewActionProvider
    Replaces the NewActionProvider.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      Constructor Description
      ActionProvider()
      The constructor creates the contribution items.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.HashMap<java.lang.String,​java.lang.String> createMap​(java.lang.String param, java.lang.String value)
      Creates a map for the parameter/value pair.
      void fillContextMenu​(org.eclipse.jface.action.IMenuManager menu)
      Fills the context menu by first removing the File and Folder items, then inserting ours.
      void init​(org.eclipse.ui.navigator.ICommonActionExtensionSite anExtensionSite)
      Initializes the action provider and checks if contribution is to be made.
      • Methods inherited from class org.eclipse.ui.internal.navigator.resources.actions.NewActionProvider

        dispose
      • Methods inherited from class org.eclipse.ui.navigator.CommonActionProvider

        filterAction, getActionSite, restoreState, saveState
      • Methods inherited from class org.eclipse.ui.actions.ActionGroup

        fillActionBars, getContext, setContext, updateActionBars
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActionProvider

        public ActionProvider()
        The constructor creates the contribution items.
    • Method Detail

      • createMap

        public static java.util.HashMap<java.lang.String,​java.lang.String> createMap​(java.lang.String param,
                                                                                           java.lang.String value)
        Creates a map for the parameter/value pair.
      • init

        public void init​(org.eclipse.ui.navigator.ICommonActionExtensionSite anExtensionSite)
        Initializes the action provider and checks if contribution is to be made.
        Overrides:
        init in class org.eclipse.ui.internal.navigator.resources.actions.NewActionProvider
      • fillContextMenu

        public void fillContextMenu​(org.eclipse.jface.action.IMenuManager menu)
        Fills the context menu by first removing the File and Folder items, then inserting ours.
        Overrides:
        fillContextMenu in class org.eclipse.ui.internal.navigator.resources.actions.NewActionProvider