Search in sources :

Example 1 with ZoomComboContributionItem

use of org.eclipse.gef.ui.actions.ZoomComboContributionItem in project cubrid-manager by CUBRID.

the class ReplEditorActionBarContributor method contributeToToolBar.

/**
	 * @see org.eclipse.ui.part.EditorActionBarContributor#contributeToToolBar(org.eclipse.jface.action.IToolBarManager)
	 * @param toolBarManager the manager that controls the workbench tool bar
	 */
public void contributeToToolBar(IToolBarManager toolBarManager) {
    toolBarManager.add(getAction(ActionFactory.UNDO.getId()));
    toolBarManager.add(getAction(ActionFactory.REDO.getId()));
    toolBarManager.add(getAction(EditAction.ID));
    toolBarManager.add(getAction(ActionFactory.DELETE.getId()));
    toolBarManager.add(new Separator());
    toolBarManager.add(getAction(GEFActionConstants.ZOOM_IN));
    toolBarManager.add(getAction(GEFActionConstants.ZOOM_OUT));
    toolBarManager.add(new ZoomComboContributionItem(getPage()));
    toolBarManager.add(new Separator());
    toolBarManager.add(getAction(GEFActionConstants.ALIGN_LEFT));
    toolBarManager.add(getAction(GEFActionConstants.ALIGN_CENTER));
    toolBarManager.add(getAction(GEFActionConstants.ALIGN_RIGHT));
    toolBarManager.add(getAction(GEFActionConstants.ALIGN_TOP));
    toolBarManager.add(getAction(GEFActionConstants.ALIGN_MIDDLE));
    toolBarManager.add(getAction(GEFActionConstants.ALIGN_BOTTOM));
}
Also used : ZoomComboContributionItem(org.eclipse.gef.ui.actions.ZoomComboContributionItem) Separator(org.eclipse.jface.action.Separator)

Example 2 with ZoomComboContributionItem

use of org.eclipse.gef.ui.actions.ZoomComboContributionItem in project tdi-studio-se by Talend.

the class MultiPageEditorContributor method contributeToToolBar.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.ui.part.EditorActionBarContributor#contributeToToolBar(org.eclipse.jface.action.IToolBarManager)
     */
@Override
public void contributeToToolBar(final IToolBarManager toolBarManager) {
    // toolBarManager.add(CorePlugin.getDefault().getRunProcessService().getRunProcessAction());
    toolBarManager.add(getAction(ActionFactory.UNDO.getId()));
    toolBarManager.add(getAction(ActionFactory.REDO.getId()));
    toolBarManager.add(getAction(ToggleSubjobsAction.ID));
    String[] zoomStrings = new String[] { ZoomManager.FIT_ALL, ZoomManager.FIT_HEIGHT, ZoomManager.FIT_WIDTH };
    item = new ZoomComboContributionItem(getPage(), zoomStrings);
    toolBarManager.add(item);
}
Also used : ZoomComboContributionItem(org.eclipse.gef.ui.actions.ZoomComboContributionItem)

Aggregations

ZoomComboContributionItem (org.eclipse.gef.ui.actions.ZoomComboContributionItem)2 Separator (org.eclipse.jface.action.Separator)1