Class NewActionProvider

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

    public class NewActionProvider
    extends org.eclipse.ui.navigator.CommonActionProvider
    Provides the new (artifact creation) menu options for a context menu.

    The added submenu has the following structure:

    • a new generic project wizard shortcut action,
    • a separator,
    • a set of context senstive wizard shortcuts (as defined by org.eclipse.ui.navigator.commonWizard),
    • another separator,
    • a generic examples wizard shortcut action, and finally
    • a generic "Other" new wizard shortcut action

    Adapted from org.eclipse.ui.internal.navigator.resources.actions.NewActionProvider.

    • Constructor Detail

      • NewActionProvider

        public NewActionProvider()
    • Method Detail

      • init

        public void init​(org.eclipse.ui.navigator.ICommonActionExtensionSite actionSite)
        Overrides:
        init in class org.eclipse.ui.navigator.CommonActionProvider
      • dispose

        public void dispose()
        Overrides:
        dispose in class org.eclipse.ui.actions.ActionGroup
      • fillContextMenu

        public void fillContextMenu​(org.eclipse.jface.action.IMenuManager menu)
        Overrides:
        fillContextMenu in class org.eclipse.ui.actions.ActionGroup