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);
}
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);
}
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;
}
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();
}
}
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);
}
Aggregations