Skip to content

Commit

Permalink
Changes scope to include instance, configuration and default
Browse files Browse the repository at this point in the history
Solves bug 3499
  • Loading branch information
goglepox committed Aug 13, 2013
1 parent 2e59557 commit b628023
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -13,9 +13,9 @@
import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.preferences.ConfigurationScope;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.DefaultScope;
import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.ui.preferences.ScopedPreferenceStore;

/**
Expand All @@ -34,6 +34,9 @@ public static ScopedPreferenceStore getPreferenceStore() {
if ( store == null ) {
store = new ScopedPreferenceStore( InstanceScope.INSTANCE,
OpenToxConstants.PLUGIN_ID );
store.setSearchContexts( new IScopeContext[] { InstanceScope.INSTANCE,
ConfigurationScope.INSTANCE,
DefaultScope.INSTANCE } );
}
return store;
}
Expand Down Expand Up @@ -64,7 +67,7 @@ public static List<OpenToxService> readServicesFromExtensionPoints() {
//Read all endpoints
if (element.getName().equals("service")){

String pid=element.getAttribute("id");
// String pid=element.getAttribute("id");
String pname=element.getAttribute("name");
String purl=element.getAttribute("serviceURL");
if (purl==null) purl="";
Expand Down

0 comments on commit b628023

Please sign in to comment.