...
Code Block |
---|
public class Activator implements BundleActivator { public void start(BundleContext context) throws Exception { ServiceReference ref = context.getServiceReference(PreferencesService.class.getName()); if (ref != null) { PreferencesService service = (PreferencesService) context.getService(ref); //... } } //.. |
To access the system routeroot
Code Block |
---|
Preferences systemRoot = service.getSystemPreferences(); |
...