File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
plugins/org.eclipse.emf.common/src/org/eclipse/emf/common Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,13 @@ 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" );
88- result = Platform .isRunning ();
85+ if (Platform .isRunning ())
86+ {
87+ // With this we make sure, that we are really in a proper Eclipse Environment with everything we need.
88+ // Some supplements pretend that the Platform is running, but don't provide a ExtensionRegistry.
89+ FrameworkUtil .getBundle (EMFPlugin .class ).loadClass ("org.eclipse.core.runtime.IRegistryChangeListener" );
90+ result = true ;
91+ }
8992 }
9093 catch (Throwable exception )
9194 {
You can’t perform that action at this time.
0 commit comments