Commit d8d09f61 authored by Andrey Filippov's avatar Andrey Filippov
Browse files

cleaned up leftover debug

parent e29014c9
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -99,10 +99,6 @@ public abstract class Option {
            value = store.getString(key);
            setValue(value);
        } 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
	        	List<String> context = OptionsUtils.getStoreContext(contextID,store);
	        	String patt=contextID+"_[^_]*"+key.substring( key.indexOf("_",contextID.length()+1));
+0 −9
Original line number Diff line number Diff line
@@ -219,25 +219,16 @@ public class OptionsCore {
    }

    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);
        doStoreContextOptions(context, store);
    }

    public static void doStoreContextOptions(Context context) {
    	if ("cocotb".equals(context.getName())){
    		System.out.println("doStoreContextOptions('cocotb')");
    	}
        IPreferenceStore store = VerilogPlugin.getDefault().getPreferenceStore();
        doStoreContextOptions(context, 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();
        if (list.isEmpty())