Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/PlatformHelper.java')
-rw-r--r--framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/PlatformHelper.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/PlatformHelper.java b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/PlatformHelper.java
index 1e0e4dcee..450bcc4fb 100644
--- a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/PlatformHelper.java
+++ b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/PlatformHelper.java
@@ -41,12 +41,13 @@ public class PlatformHelper {
if (c != null) {
Bundle[] bundles = c.getBundles();
Bundle coreRuntime = null;
- for (int i = 0; i < bundles.length; i++)
- if (bundles[i].getSymbolicName().equals("org.eclipse.core.runtime")) { //$NON-NLS-1$
- coreRuntime = bundles[i];
+ for (Bundle bundle : bundles) {
+ if (bundle.getSymbolicName().equals("org.eclipse.core.runtime")) { //$NON-NLS-1$
+ coreRuntime = bundle;
platformClass = coreRuntime.loadClass("org.eclipse.core.runtime.Platform"); //$NON-NLS-1$
break;
}
+ }
}
} catch (Exception e) {
// Platform not available...just leave platformClass == null and

Back to the top