org.eclipse.ui.application.IActionBarConfigurer Java Examples
The following examples show how to use
org.eclipse.ui.application.IActionBarConfigurer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ApplicationWorkbenchWindowAdvisor.java From translationstudio8 with GNU General Public License v2.0 | 6 votes |
/** * 删除 RCP 自带的工具栏按钮 */ public void postWindowCreate() { IActionBarConfigurer actionBarConfigurer = getWindowConfigurer().getActionBarConfigurer(); IContributionItem[] coolItems = actionBarConfigurer.getCoolBarManager().getItems(); for (int i = 0; i < coolItems.length; i++) { if (coolItems[i] instanceof ToolBarContributionItem) { ToolBarContributionItem toolbarItem = (ToolBarContributionItem) coolItems[i]; if (toolbarItem.getId().equals("org.eclipse.ui.WorkingSetActionSet") || toolbarItem.getId().equals("org.eclipse.ui.edit.text.actionSet.annotationNavigation") || toolbarItem.getId().equals("org.eclipse.ui.edit.text.actionSet.navigation")) { toolbarItem.getToolBarManager().removeAll(); } } } actionBarConfigurer.getCoolBarManager().update(true); addAutoPluginMenu(); }
Example #2
Source File: ApplicationWorkbenchWindowAdvisor.java From tmxeditor8 with GNU General Public License v2.0 | 6 votes |
/** * 删除 RCP 自带的工具栏按钮 */ public void postWindowCreate() { IActionBarConfigurer actionBarConfigurer = getWindowConfigurer().getActionBarConfigurer(); IContributionItem[] coolItems = actionBarConfigurer.getCoolBarManager().getItems(); for (int i = 0; i < coolItems.length; i++) { if (coolItems[i] instanceof ToolBarContributionItem) { ToolBarContributionItem toolbarItem = (ToolBarContributionItem) coolItems[i]; if (toolbarItem.getId().equals("org.eclipse.ui.WorkingSetActionSet") || toolbarItem.getId().equals("org.eclipse.ui.edit.text.actionSet.annotationNavigation") || toolbarItem.getId().equals("org.eclipse.ui.edit.text.actionSet.navigation")) { toolbarItem.getToolBarManager().removeAll(); } } } actionBarConfigurer.getCoolBarManager().update(true); addAutoPluginMenu(); }
Example #3
Source File: BonitaStudioWorkbenchWindowAdvisor.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override public ActionBarAdvisor createActionBarAdvisor(final IActionBarConfigurer configurer) { return new ActionBarAdvisor(configurer) { @Override protected void makeActions(final IWorkbenchWindow window) { super.makeActions(window); register(ActionFactory.UNDO.create(window)); register(ActionFactory.REDO.create(window)); register(ActionFactory.PREFERENCES.create(window)); register(ActionFactory.ABOUT.create(window)); } }; }
Example #4
Source File: ApplicationWorkbenchWindowAdvisor.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
public ActionBarAdvisor createActionBarAdvisor( IActionBarConfigurer configurer) { return new ApplicationActionBarAdvisor(configurer); }
Example #5
Source File: ApplicationActionBarAdvisor.java From translationstudio8 with GNU General Public License v2.0 | 4 votes |
/** * @param configurer */ public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { super(configurer); window = configurer.getWindowConfigurer().getWindow(); }
Example #6
Source File: ApplicationWorkbenchWindowAdvisor.java From translationstudio8 with GNU General Public License v2.0 | 4 votes |
public ActionBarAdvisor createActionBarAdvisor( IActionBarConfigurer configurer) { return new ApplicationActionBarAdvisor(configurer); }
Example #7
Source File: ApplicationWorkbenchWindowAdvisor.java From MergeProcessor with Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ @Override public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) { return new ActionBarAdvisor(configurer); }
Example #8
Source File: ApplicationWorkbenchWindowAdvisor.java From codeexamples-eclipse with Eclipse Public License 1.0 | 4 votes |
@Override public ActionBarAdvisor createActionBarAdvisor( IActionBarConfigurer configurer) { return new ApplicationActionBarAdvisor(configurer); }
Example #9
Source File: ApplicationActionBarAdvisor.java From codeexamples-eclipse with Eclipse Public License 1.0 | 4 votes |
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { super(configurer); }
Example #10
Source File: ApplicationWorkbenchWindowAdvisor.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) { return new ApplicationActionBarAdvisor(configurer); }
Example #11
Source File: ApplicationActionBarAdvisor.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
/** * @param configurer */ public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { super(configurer); window = configurer.getWindowConfigurer().getWindow(); }
Example #12
Source File: ApplicationActionBarAdvisor.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
/** * @param configurer */ public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { super(configurer); window = configurer.getWindowConfigurer().getWindow(); }
Example #13
Source File: ApplicationActionBarAdvisor.java From translationstudio8 with GNU General Public License v2.0 | 4 votes |
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { super(configurer); }
Example #14
Source File: ApplicationActionBarAdvisor.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { super(configurer); }
Example #15
Source File: DesignerWorkbenchWindowAdvisor.java From birt with Eclipse Public License 1.0 | 4 votes |
public ActionBarAdvisor createActionBarAdvisor( IActionBarConfigurer configurer ) { return new DesignerActionBarAdvisor( configurer ); }
Example #16
Source File: ClientWorkbenchWindowAdvisor.java From ice with Eclipse Public License 1.0 | 4 votes |
@Override public ActionBarAdvisor createActionBarAdvisor( IActionBarConfigurer configurer) { return new ClientActionBarAdvisor(configurer); }
Example #17
Source File: ApplicationWorkbenchWindowAdvisor.java From jbt with Apache License 2.0 | 4 votes |
public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) { return new ApplicationActionBarAdvisor(configurer); }
Example #18
Source File: ApplicationActionBarAdvisor.java From jbt with Apache License 2.0 | 4 votes |
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { super(configurer); }
Example #19
Source File: ApplicationWorkbenchWindowAdvisor.java From elexis-3-core with Eclipse Public License 1.0 | 4 votes |
public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer){ return new ApplicationActionBarAdvisor(configurer); }
Example #20
Source File: ApplicationActionBarAdvisor.java From elexis-3-core with Eclipse Public License 1.0 | 4 votes |
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer){ super(configurer); }
Example #21
Source File: RcpActionBarAdvisor.java From olca-app with Mozilla Public License 2.0 | 4 votes |
public RcpActionBarAdvisor(IActionBarConfigurer configurer) { super(configurer); }
Example #22
Source File: RcpWindowAdvisor.java From olca-app with Mozilla Public License 2.0 | 4 votes |
@Override public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) { return new RcpActionBarAdvisor(configurer); }
Example #23
Source File: ApplicationWorkbenchWindowAdvisor.java From tlaplus with MIT License | 4 votes |
public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) { return new ApplicationActionBarAdvisor(configurer); }
Example #24
Source File: N4JSApplicationWorkbenchWindowAdvisor.java From n4js with Eclipse Public License 1.0 | 4 votes |
@Override public ActionBarAdvisor createActionBarAdvisor(final IActionBarConfigurer configurer) { return new N4JSApplicationActionBarAdvisor(configurer); }
Example #25
Source File: ApplicationWorkbenchWindowAdvisor.java From neoscada with Eclipse Public License 1.0 | 4 votes |
@Override public ActionBarAdvisor createActionBarAdvisor ( final IActionBarConfigurer configurer ) { return new ApplicationActionBarAdvisor ( configurer ); }
Example #26
Source File: ApplicationActionBarAdvisor.java From neoscada with Eclipse Public License 1.0 | 4 votes |
public ApplicationActionBarAdvisor ( final IActionBarConfigurer configurer ) { super ( configurer ); }
Example #27
Source File: ApplicationWorkbenchWindowAdvisor.java From neoscada with Eclipse Public License 1.0 | 4 votes |
@Override public ActionBarAdvisor createActionBarAdvisor ( final IActionBarConfigurer configurer ) { return new ApplicationActionBarAdvisor ( configurer ); }
Example #28
Source File: ApplicationActionBarAdvisor.java From neoscada with Eclipse Public License 1.0 | 4 votes |
public ApplicationActionBarAdvisor ( final IActionBarConfigurer configurer ) { super ( configurer ); }
Example #29
Source File: ApplicationWorkbenchWindowAdvisor.java From neoscada with Eclipse Public License 1.0 | 4 votes |
public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) { return new ApplicationActionBarAdvisor(configurer); }
Example #30
Source File: ApplicationActionBarAdvisor.java From neoscada with Eclipse Public License 1.0 | 4 votes |
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { super(configurer); }