summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2008-08-08 05:30:38 (EDT)
committerCarsten Drossel2008-08-08 05:30:38 (EDT)
commit55d7f2f698ff06487ecbd668873c61334d39edbc (patch)
tree7eb7d24a726b1f31a3e13944763cdbb02361c3ae
parente84e598cb42b2c28c975e85dd0444fb66368f865 (diff)
downloadorg.eclipse.riena-55d7f2f698ff06487ecbd668873c61334d39edbc.zip
org.eclipse.riena-55d7f2f698ff06487ecbd668873c61334d39edbc.tar.gz
org.eclipse.riena-55d7f2f698ff06487ecbd668873c61334d39edbc.tar.bz2
using default values for overridable and overriding services rather than arbitrary numbers
-rw-r--r--org.eclipse.riena.navigation/src/org/eclipse/riena/internal/navigation/Activator.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/org.eclipse.riena.navigation/src/org/eclipse/riena/internal/navigation/Activator.java b/org.eclipse.riena.navigation/src/org/eclipse/riena/internal/navigation/Activator.java
index 0ce7557..d58dee7 100644
--- a/org.eclipse.riena.navigation/src/org/eclipse/riena/internal/navigation/Activator.java
+++ b/org.eclipse.riena.navigation/src/org/eclipse/riena/internal/navigation/Activator.java
@@ -10,14 +10,11 @@
*******************************************************************************/
package org.eclipse.riena.internal.navigation;
-import java.util.Dictionary;
-import java.util.Hashtable;
-
import org.eclipse.riena.core.RienaPlugin;
+import org.eclipse.riena.core.service.ServiceDescriptor;
import org.eclipse.riena.navigation.IPresentationProviderService;
import org.eclipse.riena.navigation.model.PresentationProviderService;
import org.osgi.framework.BundleContext;
-import org.osgi.framework.Constants;
/**
* The activator class controls the plug-in life cycle
@@ -48,10 +45,9 @@ public class Activator extends RienaPlugin {
Activator.plugin = this;
service = new PresentationProviderService();
- Dictionary<String, Object> dict = new Hashtable<String, Object>();
- dict.put(Constants.SERVICE_RANKING, Integer.valueOf(-100));
- context.registerService(IPresentationProviderService.class.getName(), service, dict);
+ context.registerService(IPresentationProviderService.class.getName(), service, ServiceDescriptor
+ .newDefaultServiceProperties());
}
/*