private void initializeServices() throws ProvisionException { IProvisioningAgentProvider provider = GCActivator.getService(IProvisioningAgentProvider.class); agent = provider.createAgent(null); }
private void initializeServices() throws ProvisionException { IProvisioningAgentProvider provider = GCActivator.getService(IProvisioningAgentProvider.class); agent = provider.createAgent(null); }
private void initializeServices() throws ProvisionException { IProvisioningAgentProvider provider = GCActivator.getService(IProvisioningAgentProvider.class); agent = provider.createAgent(null); }
private void initializeServices() throws ProvisionException { IProvisioningAgentProvider provider = GCActivator.getService(IProvisioningAgentProvider.class); agent = provider.createAgent(null); }
protected boolean getBooleanPreference(String key, boolean defaultValue) { IPreferencesService prefService = GCActivator.getService(IPreferencesService.class); if (prefService == null) return defaultValue; List<IEclipsePreferences> nodes = new ArrayList<>(); // todo we should look in the instance scope as well but have to be careful that the instance location has been set nodes.add(ConfigurationScope.INSTANCE.getNode(GCActivator.ID)); nodes.add(DefaultScope.INSTANCE.getNode(GCActivator.ID)); return Boolean.parseBoolean(prefService.get(key, Boolean.toString(defaultValue), nodes.toArray(new Preferences[nodes.size()]))); }
protected boolean getBooleanPreference(String key, boolean defaultValue) { IPreferencesService prefService = GCActivator.getService(IPreferencesService.class); if (prefService == null) return defaultValue; List<IEclipsePreferences> nodes = new ArrayList<IEclipsePreferences>(); // todo we should look in the instance scope as well but have to be careful that the instance location has been set nodes.add(ConfigurationScope.INSTANCE.getNode(GCActivator.ID)); nodes.add(DefaultScope.INSTANCE.getNode(GCActivator.ID)); return Boolean.parseBoolean(prefService.get(key, Boolean.toString(defaultValue), nodes.toArray(new Preferences[nodes.size()]))); }
protected boolean getBooleanPreference(String key, boolean defaultValue) { IPreferencesService prefService = GCActivator.getService(IPreferencesService.class); if (prefService == null) return defaultValue; List<IEclipsePreferences> nodes = new ArrayList<IEclipsePreferences>(); // todo we should look in the instance scope as well but have to be careful that the instance location has been set nodes.add(new ConfigurationScope().getNode(GCActivator.ID)); nodes.add(new DefaultScope().getNode(GCActivator.ID)); return Boolean.valueOf(prefService.get(key, Boolean.toString(defaultValue), nodes.toArray(new Preferences[nodes.size()]))).booleanValue(); }
protected boolean getBooleanPreference(String key, boolean defaultValue) { IPreferencesService prefService = GCActivator.getService(IPreferencesService.class); if (prefService == null) return defaultValue; List<IEclipsePreferences> nodes = new ArrayList<IEclipsePreferences>(); // todo we should look in the instance scope as well but have to be careful that the instance location has been set nodes.add(new ConfigurationScope().getNode(GCActivator.ID)); nodes.add(new DefaultScope().getNode(GCActivator.ID)); return Boolean.valueOf(prefService.get(key, Boolean.toString(defaultValue), nodes.toArray(new Preferences[nodes.size()]))).booleanValue(); }
public void start(BundleContext inContext) throws Exception { GCActivator.context = inContext; DebugOptions debug = getService(DebugOptions.class); if (debug != null) { CoreGarbageCollector.setDebugMode(debug.getBooleanOption(DEBUG_STRING, DEFAULT_DEBUG)); } }
public void start(BundleContext inContext) throws Exception { GCActivator.context = inContext; DebugOptions debug = getService(DebugOptions.class); if (debug != null) { CoreGarbageCollector.setDebugMode(debug.getBooleanOption(DEBUG_STRING, DEFAULT_DEBUG)); } }
@Override public void start(BundleContext inContext) throws Exception { GCActivator.context = inContext; DebugOptions debug = getService(DebugOptions.class); if (debug != null) { CoreGarbageCollector.setDebugMode(debug.getBooleanOption(DEBUG_STRING, DEFAULT_DEBUG)); } }
public void start(BundleContext inContext) throws Exception { GCActivator.context = inContext; DebugOptions debug = getService(DebugOptions.class); if (debug != null) { CoreGarbageCollector.setDebugMode(debug.getBooleanOption(DEBUG_STRING, DEFAULT_DEBUG)); } }