org.eclipse.ui.application.IWorkbenchConfigurer Java Examples
The following examples show how to use
org.eclipse.ui.application.IWorkbenchConfigurer.
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: ApplicationWorkbenchAdvisor.java From tlaplus with MIT License | 6 votes |
public void initialize(IWorkbenchConfigurer configurer) { // save the positions of windows etc... configurer.setSaveAndRestore(true); super.initialize(configurer); Bundle ideBundle = Platform.getBundle(IDE_PLUGIN); declareWorkbenchImage(configurer, ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT, PRJ_OBJ, true); declareWorkbenchImage(configurer, ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED, PRJ_OBJ_C, true); declareWorkbenchImage(configurer, ideBundle, IMG_DLGBAN_SAVEAS_DLG, SAVEAS_DLG, true); // register adapter IDE.registerAdapters(); }
Example #2
Source File: ApplicationWorkbenchAdvisor.java From gama with GNU General Public License v3.0 | 6 votes |
@Override public void initialize(final IWorkbenchConfigurer configurer) { ResourcesPlugin.getPlugin().getStateLocation(); try { super.initialize(configurer); IDE.registerAdapters(); configurer.setSaveAndRestore(true); final IDecoratorManager dm = configurer.getWorkbench().getDecoratorManager(); dm.setEnabled("org.eclipse.pde.ui.binaryProjectDecorator", false); dm.setEnabled("org.eclipse.team.svn.ui.decorator.SVNLightweightDecorator", false); dm.setEnabled("msi.gama.application.decorator", true); dm.setEnabled("org.eclipse.ui.LinkedResourceDecorator", false); dm.setEnabled("org.eclipse.ui.VirtualResourceDecorator", false); dm.setEnabled("org.eclipse.xtext.builder.nature.overlay", false); if ( Display.getCurrent() != null ) { Display.getCurrent().getThread().setUncaughtExceptionHandler(GamaExecutorService.EXCEPTION_HANDLER); } } catch (final CoreException e) { // e.printStackTrace(); } PluginActionBuilder.setAllowIdeLogging(false); }
Example #3
Source File: ApplicationWorkbenchAdvisor.java From tlaplus with MIT License | 5 votes |
private void declareWorkbenchImage(IWorkbenchConfigurer configurer, Bundle ideBundle, String symbolicName, String path, boolean shared) { URL url = ideBundle.getEntry(path); ImageDescriptor desc = ImageDescriptor.createFromURL(url); configurer.declareImage(symbolicName, desc, shared); }
Example #4
Source File: ApplicationWorkbenchAdvisor.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
@Override public void initialize(IWorkbenchConfigurer configurer) { super.initialize(configurer); // make sure we always save and restore workspace state configurer.setSaveAndRestore(true); IDE.registerAdapters(); declareWorkbenchImages(); }
Example #5
Source File: ApplicationWorkbenchAdvisor.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
@Override public void initialize(IWorkbenchConfigurer configurer) { // make sure we always save and restore workspace state configurer.setSaveAndRestore(true); IDE.registerAdapters(); declareWorkbenchImages(); }
Example #6
Source File: BonitaStudioWorkbenchAdvisor.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override public void initialize(final IWorkbenchConfigurer configurer) { super.initialize(configurer); configurer.setSaveAndRestore(true); final IContextService contextService = PlatformUI.getWorkbench().getService(IContextService.class); contextService.activateContext("org.bonitasoft.studio.context.id"); initializeIDEImages(configurer); }
Example #7
Source File: RcpWorkbenchAdvisor.java From olca-app with Mozilla Public License 2.0 | 5 votes |
@Override public void initialize(IWorkbenchConfigurer configurer) { super.initialize(configurer); configurer.setSaveAndRestore(false); if (LoggerPreference.getShowConsole()) { Console.show(); } changeWorkbenchImages(); }
Example #8
Source File: ApplicationWorkbenchAdvisor.java From neoscada with Eclipse Public License 1.0 | 4 votes |
@Override public void initialize ( final IWorkbenchConfigurer configurer ) { super.initialize ( configurer ); configurer.setSaveAndRestore ( true ); }
Example #9
Source File: ApplicationWorkbenchAdvisor.java From neoscada with Eclipse Public License 1.0 | 4 votes |
@Override public void initialize ( final IWorkbenchConfigurer configurer ) { super.initialize ( configurer ); configurer.setSaveAndRestore ( true ); }
Example #10
Source File: ApplicationWorkbenchAdvisor.java From tracecompass with Eclipse Public License 2.0 | 4 votes |
@Override public void initialize(IWorkbenchConfigurer configurer) { configurer.setSaveAndRestore(true); declareWorkbenchImages(); }
Example #11
Source File: WorkbenchAdvisorHack.java From depan with Apache License 2.0 | 4 votes |
@Override public void initialize(IWorkbenchConfigurer configurer) { configurer.setSaveAndRestore(true); declareWorkbenchImages(); }
Example #12
Source File: ApplicationWorkbenchAdvisor.java From slr-toolkit with Eclipse Public License 1.0 | 4 votes |
public void initialize(IWorkbenchConfigurer configurer) { IDE.registerAdapters(); }
Example #13
Source File: ApplicationWorkbenchAdvisor.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
@Override public void initialize(IWorkbenchConfigurer configurer) { super.initialize(configurer); configurer.setSaveAndRestore(true); }
Example #14
Source File: DesignerWorkbenchAdvisor.java From birt with Eclipse Public License 1.0 | 4 votes |
public void initialize( IWorkbenchConfigurer configurer ) { super.initialize( configurer ); configurer.setSaveAndRestore( true ); }
Example #15
Source File: BonitaStudioWorkbenchAdvisor.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
/** * Workaround to load icons for Common Navigator component in a RCP */ private void initializeIDEImages(final IWorkbenchConfigurer configurer) { IDE.registerAdapters(); declareWorkbenchImages(); }
Example #16
Source File: ApplicationWorkbenchAdvisor.java From elexis-3-core with Eclipse Public License 1.0 | 4 votes |
@Override public void initialize(final IWorkbenchConfigurer configurer){ Hub.pin.initializeDisplayPreferences(UiDesk.getDisplay()); configurer.setSaveAndRestore(true); super.initialize(configurer); }