org.eclipse.emf.common.EMFPlugin Java Examples
The following examples show how to use
org.eclipse.emf.common.EMFPlugin.
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: WorkingSetManagerBrokerImpl.java From n4js with Eclipse Public License 1.0 | 5 votes |
/** * Creates a new working set broker instance with the given injector and status helper arguments. The injector is * used to inject members into the available contributions. Also restores its most recent state from the preference * store. * * @param injector * the injector for initializing the contributions. * @param statusHelper * convenient way to create {@link IStatus status} instances. * */ @Inject private WorkingSetManagerBrokerImpl(final Injector injector, final StatusHelper statusHelper) { this.injector = injector; this.statusHelper = statusHelper; this.activeWorkingSetManager = new AtomicReference<>(); this.workingSetTopLevel = new AtomicBoolean(false); this.alreadyQueuedNavigatorRefresh = new AtomicBoolean(false); this.contributions = initContributions(); topLevelElementChangeListeners = newHashSet(); workingSetManagerStateChangeListeners = newHashSet(); restoreState(new NullProgressMonitor()); if (EMFPlugin.IS_ECLIPSE_RUNNING) { final String pluginId = N4JSActivator.getInstance().getBundle().getSymbolicName(); final IWorkspace workspace = ResourcesPlugin.getWorkspace(); try { workspace.addSaveParticipant(pluginId, new SaveParticipantAdapter() { @Override public void saving(final ISaveContext context) throws CoreException { saveState(new NullProgressMonitor()); } }); } catch (final CoreException e) { LOGGER.error("Error occurred while attaching save participant to workspace.", e); } } }
Example #2
Source File: HTMLTests.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Register the {@link HTMLServicesConfigurator} if needed. */ @BeforeClass public static void beforeClass() { if (!EMFPlugin.IS_ECLIPSE_RUNNING) { M2DocUtils.registerServicesConfigurator(SERVICES_CONFIGURATOR_DESCRIPTOR); } }
Example #3
Source File: HTMLTests.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Unregister the {@link HTMLServicesConfigurator} if needed. * * @throws IOException * if the template can't be closed */ @AfterClass public static void afterClass() throws IOException { AbstractTemplatesTestSuite.afterClass(); if (!EMFPlugin.IS_ECLIPSE_RUNNING) { M2DocUtils.unregisterServicesConfigurator(SERVICES_CONFIGURATOR_DESCRIPTOR); } }
Example #4
Source File: M2DocHTMLServicesTests.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Register the {@link HTMLServicesConfigurator} if needed. */ @BeforeClass public static void beforeClass() { if (!EMFPlugin.IS_ECLIPSE_RUNNING) { M2DocUtils.registerServicesConfigurator(SERVICES_CONFIGURATOR_DESCRIPTOR); } }
Example #5
Source File: M2DocHTMLServicesTests.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Unregister the {@link HTMLServicesConfigurator} if needed. * * @throws IOException * if the template can't be closed */ @AfterClass public static void afterClass() throws IOException { AbstractTemplatesTestSuite.afterClass(); if (!EMFPlugin.IS_ECLIPSE_RUNNING) { M2DocUtils.unregisterServicesConfigurator(SERVICES_CONFIGURATOR_DESCRIPTOR); } }
Example #6
Source File: ServerWithoutAuthenticationTemplateOnServer.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Stops the {@link CDOServer}. */ @AfterClass public static void stopCDOServer() { server.stop(); if (!EMFPlugin.IS_ECLIPSE_RUNNING) { M2DocUtils.unregisterServicesConfigurator(SERVICES_CONFIGURATOR_DESCRIPTOR); } }
Example #7
Source File: ServerWithoutAuthentication.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Stops the {@link CDOServer}. */ @AfterClass public static void stopCDOServer() { server.stop(); if (!EMFPlugin.IS_ECLIPSE_RUNNING) { M2DocUtils.unregisterServicesConfigurator(SERVICES_CONFIGURATOR_DESCRIPTOR); } }
Example #8
Source File: ServerWithAuthentication.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Stops the {@link CDOServer}. */ @AfterClass public static void stopCDOServer() { server.stop(); if (!EMFPlugin.IS_ECLIPSE_RUNNING) { M2DocUtils.unregisterServicesConfigurator(SERVICES_CONFIGURATOR_DESCRIPTOR); } }
Example #9
Source File: ServerWithAuthenticationTemplateOnServer.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Stops the {@link CDOServer}. */ @AfterClass public static void stopCDOServer() { server.stop(); if (!EMFPlugin.IS_ECLIPSE_RUNNING) { M2DocUtils.unregisterServicesConfigurator(SERVICES_CONFIGURATOR_DESCRIPTOR); } }
Example #10
Source File: M2DocWikiTextServicesTests.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Register the {@link WikiTextServicesConfigurator} if needed. */ @BeforeClass public static void beforeClass() { if (!EMFPlugin.IS_ECLIPSE_RUNNING) { M2DocUtils.registerServicesConfigurator(SERVICES_CONFIGURATOR_DESCRIPTOR); } }
Example #11
Source File: M2DocWikiTextServicesTests.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Unregister the {@link WikiTextServicesConfigurator} if needed. * * @throws IOException * if the template can't be closed */ @AfterClass public static void afterClass() throws IOException { AbstractTemplatesTestSuite.afterClass(); if (!EMFPlugin.IS_ECLIPSE_RUNNING) { M2DocUtils.unregisterServicesConfigurator(SERVICES_CONFIGURATOR_DESCRIPTOR); } }
Example #12
Source File: AbstractTemplatesTestSuite.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Register the {@link HTMLServicesConfigurator} if needed. */ @BeforeClass public static void beforeClass() { if (!EMFPlugin.IS_ECLIPSE_RUNNING) { M2DocUtils.registerServicesConfigurator(SERVICES_CONFIGURATOR_DESCRIPTOR); } }
Example #13
Source File: AbstractTemplatesTestSuite.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Closes the {@link DocumentTemplate} and unregister the {@link TestMemoryURIHandler}. * * @throws IOException * if the {@link DocumentTemplate} can't be closed */ @AfterClass public static void afterClass() throws IOException { documentTemplate.close(); if (!EMFPlugin.IS_ECLIPSE_RUNNING) { M2DocUtils.unregisterServicesConfigurator(SERVICES_CONFIGURATOR_DESCRIPTOR); } }
Example #14
Source File: Activator.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@Override public void start(BundleContext context) throws Exception { if (EMFPlugin.IS_ECLIPSE_RUNNING) { initializeResourceServiceProviderRegistry(context); } }