Class ActionProvider

java.lang.Object
org.eclipse.ui.actions.ActionGroup
org.eclipse.ui.navigator.CommonActionProvider
org.eclipse.ui.internal.navigator.resources.actions.NewActionProvider
com.iizigo.navigator.ActionProvider
All Implemented Interfaces:
IMementoAware

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

    • ActionProvider

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

    • createMap

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

      public void init(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(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