Search in sources :

Example 1 with IToolBarManager

use of org.eclipse.jface.action.IToolBarManager in project GT by Tencent.

the class DevicesView method createLocalToolBar.

/**
	 * 初始化工具栏
	 */
private void createLocalToolBar() {
    IActionBars bars = getViewSite().getActionBars();
    IToolBarManager manager = bars.getToolBarManager();
    manager.add(testAction);
    manager.add(refreshAction);
    manager.add(openLogWithChartAction);
    manager.add(openResultDirAction);
}
Also used : IToolBarManager(org.eclipse.jface.action.IToolBarManager) IActionBars(org.eclipse.ui.IActionBars)

Example 2 with IToolBarManager

use of org.eclipse.jface.action.IToolBarManager in project GT by Tencent.

the class PMAPView method createLocalToolBar.

/**
	 * 添加工具条
	 */
private void createLocalToolBar() {
    IActionBars bars = getViewSite().getActionBars();
    IToolBarManager manager = bars.getToolBarManager();
    manager.add(openLogAction);
}
Also used : IToolBarManager(org.eclipse.jface.action.IToolBarManager) IActionBars(org.eclipse.ui.IActionBars)

Example 3 with IToolBarManager

use of org.eclipse.jface.action.IToolBarManager in project translationstudio8 by heartsome.

the class ApplicationActionBarAdvisor method createToolItem.

private IToolBarManager createToolItem(ICoolBarManager coolBar) {
    IToolBarManager toolBar = new ToolBarManager(coolBar.getStyle());
    coolBar.add(new ToolBarContributionItem(toolBar, "findreplace"));
    toolBar.add(findAction);
    return toolBar;
}
Also used : ToolBarContributionItem(org.eclipse.jface.action.ToolBarContributionItem) IToolBarManager(org.eclipse.jface.action.IToolBarManager) IToolBarManager(org.eclipse.jface.action.IToolBarManager) ToolBarManager(org.eclipse.jface.action.ToolBarManager)

Example 4 with IToolBarManager

use of org.eclipse.jface.action.IToolBarManager in project tdi-studio-se by Talend.

the class TalendPaletteView method createPartControl.

@Override
public void createPartControl(Composite parent) {
    super.createPartControl(parent);
    IToolBarManager toolMana = getViewSite().getActionBars().getToolBarManager();
    ShowStandardAction showStandardAction = ShowStandardAction.getInstance();
    ShowFavoriteAction showFavoriteAction = ShowFavoriteAction.getInstance();
    toolMana.add(showStandardAction);
    toolMana.add(showFavoriteAction);
    if (ShowFavoriteAction.state) {
        showStandardAction.doSetEnable();
    }
}
Also used : IToolBarManager(org.eclipse.jface.action.IToolBarManager) ShowFavoriteAction(org.talend.repository.ui.actions.ShowFavoriteAction) ShowStandardAction(org.talend.repository.ui.actions.ShowStandardAction)

Example 5 with IToolBarManager

use of org.eclipse.jface.action.IToolBarManager in project tdi-studio-se by Talend.

the class RuntimeVisualizationView method createLocalToolBar.

/**
     * Creates the local tool bar.
     */
private void createLocalToolBar() {
    IToolBarManager manager = getViewSite().getActionBars().getToolBarManager();
    manager.add(new NewJvmConnectionAction(treeViewer));
    manager.update(false);
}
Also used : IToolBarManager(org.eclipse.jface.action.IToolBarManager)

Aggregations

IToolBarManager (org.eclipse.jface.action.IToolBarManager)37 IActionBars (org.eclipse.ui.IActionBars)19 Action (org.eclipse.jface.action.Action)18 RecordAction (com.cubrid.cubridmanager.ui.monitoring.editor.internal.RecordAction)6 Separator (org.eclipse.jface.action.Separator)6 ActionContributionItem (org.eclipse.jface.action.ActionContributionItem)4 IMenuManager (org.eclipse.jface.action.IMenuManager)4 DropDownAction (com.cubrid.common.ui.common.action.DropDownAction)3 ActionManager (com.cubrid.common.ui.spi.action.ActionManager)3 IAction (org.eclipse.jface.action.IAction)3 MenuManager (org.eclipse.jface.action.MenuManager)3 ToolBarContributionItem (org.eclipse.jface.action.ToolBarContributionItem)3 ToolBarManager (org.eclipse.jface.action.ToolBarManager)3 TableLayout (org.eclipse.jface.viewers.TableLayout)3 ApplyServerInfo (com.cubrid.cubridmanager.core.broker.model.ApplyServerInfo)2 ServerInfo (com.cubrid.cubridmanager.core.common.model.ServerInfo)2 BrokerStatusSettingDlg (com.cubrid.cubridmanager.ui.broker.editor.internal.BrokerStatusSettingDlg)2 IContributionItem (org.eclipse.jface.action.IContributionItem)2 SearchContributionComposite (com.cubrid.common.ui.common.control.SearchContributionComposite)1 BrokerEnvStatusColumn (com.cubrid.cubridmanager.ui.broker.editor.internal.BrokerEnvStatusColumn)1