Search in sources :

Example 31 with GroupMarker

use of org.eclipse.jface.action.GroupMarker in project mdw-designer by CenturyLinkCloud.

the class ProcessInstanceActionGroup method fillActionBars.

@Override
public void fillActionBars(IActionBars actionBars) {
    super.fillActionBars(actionBars);
    IToolBarManager toolbar = actionBars.getToolBarManager();
    toolbar.add(new GroupMarker("mdw.process.instance.group"));
    toolbar.add(refreshAction);
    toolbar.add(filterAction);
    toolbar.add(pageDownAction);
    toolbar.add(pageUpAction);
}
Also used : IToolBarManager(org.eclipse.jface.action.IToolBarManager) GroupMarker(org.eclipse.jface.action.GroupMarker)

Example 32 with GroupMarker

use of org.eclipse.jface.action.GroupMarker in project mdw-designer by CenturyLinkCloud.

the class AutomatedTestActionGroup method fillActionBars.

@Override
public void fillActionBars(IActionBars actionBars) {
    super.fillActionBars(actionBars);
    IToolBarManager toolbar = actionBars.getToolBarManager();
    toolbar.add(new GroupMarker("mdw.toolbox.group"));
    toolbar.add(rerunAction);
    toolbar.add(stopAction);
    toolbar.add(formatFunctionTestResultsAction);
    toolbar.add(formatLoadTestResultsAction);
}
Also used : IToolBarManager(org.eclipse.jface.action.IToolBarManager) GroupMarker(org.eclipse.jface.action.GroupMarker)

Example 33 with GroupMarker

use of org.eclipse.jface.action.GroupMarker in project mdw-designer by CenturyLinkCloud.

the class ToolboxViewActionGroup method fillActionBars.

@Override
public void fillActionBars(IActionBars actionBars) {
    super.fillActionBars(actionBars);
    IToolBarManager toolbar = actionBars.getToolBarManager();
    toolbar.add(new GroupMarker("mdw.toolbox.group"));
    toolbar.add(sortAction);
    toolbar.add(filterAction);
    toolbar.add(refreshAction);
    toolbar.add(saveAction);
    toolbar.add(discoverAction);
    toolbar.add(newAction);
    toolbar.add(deleteAction);
}
Also used : IToolBarManager(org.eclipse.jface.action.IToolBarManager) GroupMarker(org.eclipse.jface.action.GroupMarker)

Example 34 with GroupMarker

use of org.eclipse.jface.action.GroupMarker in project polymap4-core by Polymap4.

the class FilterActionGroup method fillActionBars.

/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.actions.ActionGroup#fillActionBars(org.eclipse.ui.IActionBars)
	 */
public void fillActionBars(IActionBars actionBars) {
    IMenuManager menu = actionBars.getMenuManager();
    menu.appendToGroup(IWorkbenchActionConstants.MB_ADDITIONS, new Separator(FILTER_ACTION_GROUP));
    if (selectFiltersAction != null) {
        menu.appendToGroup(FILTER_ACTION_GROUP, selectFiltersAction);
        menu.appendToGroup(FILTER_ACTION_GROUP, new GroupMarker(FILTER_ACTION_GROUP_FILTERS_START));
        menu.appendToGroup(FILTER_ACTION_GROUP_FILTERS_START, new Separator(FILTER_ACTION_GROUP_FILTERS_END));
        for (Iterator iter = filterShortcutActions.iterator(); iter.hasNext(); ) {
            IAction action = (IAction) iter.next();
            menu.appendToGroup(FILTER_ACTION_GROUP_FILTERS_START, action);
        }
    }
}
Also used : IAction(org.eclipse.jface.action.IAction) Iterator(java.util.Iterator) GroupMarker(org.eclipse.jface.action.GroupMarker) IMenuManager(org.eclipse.jface.action.IMenuManager) Separator(org.eclipse.jface.action.Separator)

Example 35 with GroupMarker

use of org.eclipse.jface.action.GroupMarker in project polymap4-core by Polymap4.

the class CommonNavigatorActionGroup method fillToolBar.

protected void fillToolBar(IToolBarManager toolBar) {
    if (backAction.isEnabled() || upAction.isEnabled() || forwardAction.isEnabled()) {
        toolBar.add(backAction);
        toolBar.add(forwardAction);
        toolBar.add(upAction);
        toolBar.add(new Separator(FRAME_ACTION_SEPARATOR_ID));
        frameActionsShown = true;
    }
    toolBar.add(new GroupMarker(FRAME_ACTION_GROUP_ID));
    if (collapseAllAction != null) {
        toolBar.add(collapseAllAction);
    }
    if (toggleLinkingAction != null) {
        toolBar.add(toggleLinkingAction);
    }
}
Also used : GroupMarker(org.eclipse.jface.action.GroupMarker) Separator(org.eclipse.jface.action.Separator)

Aggregations

GroupMarker (org.eclipse.jface.action.GroupMarker)117 Separator (org.eclipse.jface.action.Separator)93 IMenuManager (org.eclipse.jface.action.IMenuManager)44 MenuManager (org.eclipse.jface.action.MenuManager)42 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)17 IToolBarManager (org.eclipse.jface.action.IToolBarManager)12 IAction (org.eclipse.jface.action.IAction)10 IMenuListener (org.eclipse.jface.action.IMenuListener)10 Menu (org.eclipse.swt.widgets.Menu)8 Action (org.eclipse.jface.action.Action)7 ISelection (org.eclipse.jface.viewers.ISelection)5 IWorkbenchWindow (org.eclipse.ui.IWorkbenchWindow)5 ActionContributionItem (org.eclipse.jface.action.ActionContributionItem)4 ToolBarContributionItem (org.eclipse.jface.action.ToolBarContributionItem)4 ToolBarManager (org.eclipse.jface.action.ToolBarManager)4 Iterator (java.util.Iterator)2 AddPVAction (org.csstudio.trends.databrowser3.ui.AddPVAction)2 IFindReplaceTarget (org.eclipse.jface.text.IFindReplaceTarget)2 Point (org.eclipse.swt.graphics.Point)2 Shell (org.eclipse.swt.widgets.Shell)2