Revert "Bug 550038 - Investigate if forced activation in InternalPlatform#start is still necessary"
This reverts commit 06418f56484c5eb21428ba0bed6e0ba025bf1d67.
Change-Id: Ib64157d202d1c6b7039c60b2a4de14481e02bcac
diff --git a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java
index 66c13a3..9e09f3a 100644
--- a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java
+++ b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java
@@ -629,6 +629,16 @@
initialized = true;
initializeAuthorizationHandler();
startServices();
+
+ // See if need to activate rest of the runtime plugins. Plugins are "gently" activated by touching
+ // a class from the corresponding plugin(s).
+ boolean shouldActivate = !"false".equalsIgnoreCase(context.getProperty(PROP_ACTIVATE_PLUGINS)); //$NON-NLS-1$
+ if (shouldActivate) {
+ // activate Preferences plugin by creating a class from it:
+ new org.eclipse.core.runtime.preferences.DefaultScope();
+ // activate Jobs plugin by creating a class from it:
+ org.eclipse.core.runtime.jobs.Job.getJobManager();
+ }
}
/**