core/com.nokia.carbide.cpp/src/com/nokia/carbide/cpp/ProductPlugin.java
changeset 1373 512ef0799e33
parent 1220 af71d0898edf
child 1377 40401ea8b1fd
--- a/core/com.nokia.carbide.cpp/src/com/nokia/carbide/cpp/ProductPlugin.java	Wed May 19 10:09:01 2010 -0500
+++ b/core/com.nokia.carbide.cpp/src/com/nokia/carbide/cpp/ProductPlugin.java	Wed May 19 14:34:54 2010 -0500
@@ -16,6 +16,10 @@
 */
 package com.nokia.carbide.cpp;
 
+import java.util.Collections;
+import java.util.Hashtable;
+import java.util.Map;
+
 import org.eclipse.ui.plugin.*;
 import org.eclipse.equinox.p2.ui.Policy;
 import org.eclipse.jface.resource.ImageDescriptor;
@@ -46,7 +50,8 @@
 		super.start(context);
 		Policy policy = new Policy();
 		policy.setRestartPolicy(Policy.RESTART_POLICY_PROMPT);
-		policyRegistration = context.registerService(Policy.class.getName(), policy, null);
+		Map<String, Integer> map = Collections.singletonMap("service.ranking", 100);
+		policyRegistration = context.registerService(Policy.class.getName(), policy, new Hashtable<Object, Object>(map));
 	}
 
 	/**