Skip to content

Commit 9a12e8b

Browse files
committed
OSGi Service as Global EPackageRegistry
1 parent d41eb32 commit 9a12e8b

File tree

4 files changed

+595
-1
lines changed

4 files changed

+595
-1
lines changed

plugins/org.eclipse.emf.common/src/org/eclipse/emf/common/EMFPlugin.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public abstract class EMFPlugin extends DelegatingResourceLocator implements Res
8282
boolean result = false;
8383
try
8484
{
85+
// With this we make sure, that we are really in a proper Eclipse Environment with everything we need.
86+
// Some supplements pretend that the Platform is running, but don't provide a ExtensionRegistry.
87+
FrameworkUtil.getBundle(EMFPlugin.class).loadClass("org.eclipse.core.runtime.IRegistryChangeListener");
8588
result = Platform.isRunning();
8689
}
8790
catch (Throwable exception)

0 commit comments

Comments
 (0)