package com.redhat.ceylon.eclipse.core.debug.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jdt.internal.debug.ui.IJDIPreferencesConstants;
import org.eclipse.jface.preference.IPreferenceStore;

import com.redhat.ceylon.eclipse.ui.CeylonPlugin;

public class CeylonDebugUIPreferenceInitializer extends AbstractPreferenceInitializer {

    public CeylonDebugUIPreferenceInitializer() {
        super();
    }

    @Override
    public void initializeDefaultPreferences() {
        IPreferenceStore store = CeylonPlugin.getInstance().getPreferenceStore();
        store.setDefault(IJDIPreferencesConstants.PREF_ACTIVE_FILTERS_LIST,
                "org.jboss.modules.*,ceylon.modules.*");
        store.setDefault(IJDIPreferencesConstants.PREF_INACTIVE_FILTERS_LIST,
                "ceylon.language.*,com.redhat.ceylon.*,java.lang.*");
    }
}

@@ -127,16 +127,74 @@
 alizer;%0A
+import org.eclipse.debug.internal.core.StepFilterManager;%0A
 import o
@@ -500,30 +500,8 @@
 () %7B
-%0A        super();%0A    
 %7D%0A%0A 
@@ -921,20 +921,93 @@
 a.lang.*%22);%0A
+        store.setDefault(StepFilterManager.PREF_USE_STEP_FILTERS, true);%0A
     %7D%0A%7D%0A

enable step filtering by default