Commit d8d09f61 authored by Andrey Filippov's avatar Andrey Filippov

cleaned up leftover debug

parent e29014c9
...@@ -99,10 +99,6 @@ public abstract class Option { ...@@ -99,10 +99,6 @@ public abstract class Option {
value = store.getString(key); value = store.getString(key);
setValue(value); setValue(value);
} else { } else {
// Trying to get with different index
//See TODO: 07/01/2016 in OptionUtils
// public static List<String> getStoreContext( final String contextID
// if (contextID.equals("cocotb")) {
if (!key.startsWith(OptionsUtils.KEY_CONTENT)){ // Otherwise will be infinite loop if (!key.startsWith(OptionsUtils.KEY_CONTENT)){ // Otherwise will be infinite loop
List<String> context = OptionsUtils.getStoreContext(contextID,store); List<String> context = OptionsUtils.getStoreContext(contextID,store);
String patt=contextID+"_[^_]*"+key.substring( key.indexOf("_",contextID.length()+1)); String patt=contextID+"_[^_]*"+key.substring( key.indexOf("_",contextID.length()+1));
......
...@@ -219,25 +219,16 @@ public class OptionsCore { ...@@ -219,25 +219,16 @@ public class OptionsCore {
} }
public static void doStoreContextOptions(Context context, IProject project) { public static void doStoreContextOptions(Context context, IProject project) {
if ("cocotb".equals(context.getName())){
System.out.println("doStoreContextOptions('cocotb'), project="+project);
}
IPreferenceStore store = getPreferenceStore(context, project); IPreferenceStore store = getPreferenceStore(context, project);
doStoreContextOptions(context, store); doStoreContextOptions(context, store);
} }
public static void doStoreContextOptions(Context context) { public static void doStoreContextOptions(Context context) {
if ("cocotb".equals(context.getName())){
System.out.println("doStoreContextOptions('cocotb')");
}
IPreferenceStore store = VerilogPlugin.getDefault().getPreferenceStore(); IPreferenceStore store = VerilogPlugin.getDefault().getPreferenceStore();
doStoreContextOptions(context, store); doStoreContextOptions(context, store);
} }
public static void doStoreContextOptions(Context context, IPreferenceStore store) { public static void doStoreContextOptions(Context context, IPreferenceStore store) {
if ("cocotb".equals(context.getName())){
System.out.println("static doStoreContextOptions('cocotb')");
}
List<Parameter> list = context.getParams(); List<Parameter> list = context.getParams();
if (list.isEmpty()) if (list.isEmpty())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment