1 11 package org.eclipse.jdt.internal.debug.core; 12 13 import org.eclipse.core.runtime.Preferences; 14 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; 15 import org.eclipse.jdt.debug.core.IJavaBreakpoint; 16 import org.eclipse.jdt.debug.core.JDIDebugModel; 17 18 public class JDIDebugPluginPreferenceInitializer extends AbstractPreferenceInitializer { 19 20 public JDIDebugPluginPreferenceInitializer() { 21 super(); 22 } 23 24 27 public void initializeDefaultPreferences() { 28 Preferences prefs = JDIDebugPlugin.getDefault().getPluginPreferences(); 29 prefs.setDefault(JDIDebugModel.PREF_REQUEST_TIMEOUT, JDIDebugModel.DEF_REQUEST_TIMEOUT); 30 prefs.setDefault(JDIDebugModel.PREF_HCR_WITH_COMPILATION_ERRORS, true); 31 prefs.setDefault(JDIDebugModel.PREF_SUSPEND_FOR_BREAKPOINTS_DURING_EVALUATION, true); 32 prefs.setDefault(JDIDebugPlugin.PREF_DEFAULT_BREAKPOINT_SUSPEND_POLICY, IJavaBreakpoint.SUSPEND_THREAD); 33 prefs.setDefault(JDIDebugPlugin.PREF_SHOW_REFERENCES_IN_VAR_VIEW, false); 34 prefs.setDefault(JDIDebugPlugin.PREF_ALL_REFERENCES_MAX_COUNT, 100); 35 prefs.setDefault(JDIDebugPlugin.PREF_ALL_INSTANCES_MAX_COUNT, 100); 36 prefs.addPropertyChangeListener(JDIDebugPlugin.getDefault()); 37 } 38 } 39 | Popular Tags |