Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2001-09-21 17:33:03 +0000
committerDarin Swanson2001-09-21 17:33:03 +0000
commit3b91d326e8f742151754fdcb11bb5f5b888feadb (patch)
treec316a75f2a1c0f5026e7c1b7945882b2ad2cf26c
parentac361cc5d3049980361b1dd705fdf6911e7648c0 (diff)
downloadeclipse.platform.debug-3b91d326e8f742151754fdcb11bb5f5b888feadb.tar.gz
eclipse.platform.debug-3b91d326e8f742151754fdcb11bb5f5b888feadb.tar.xz
eclipse.platform.debug-3b91d326e8f742151754fdcb11bb5f5b888feadb.zip
Cleanup and de-nlsing
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPreferencePage.java31
1 files changed, 18 insertions, 13 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPreferencePage.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPreferencePage.java
index 90de2af3c..0476fff75 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPreferencePage.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPreferencePage.java
@@ -5,18 +5,21 @@ package org.eclipse.debug.internal.ui;
* All Rights Reserved.
*/
-import org.eclipse.debug.ui.IDebugUIConstants; import org.eclipse.jface.preference.*; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; import org.eclipse.ui.help.WorkbenchHelp;
+import org.eclipse.debug.ui.IDebugUIConstants;
+import org.eclipse.jface.preference.BooleanFieldEditor;
+import org.eclipse.jface.preference.FieldEditorPreferencePage;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.eclipse.ui.help.WorkbenchHelp;
/*
* The page for setting the default debugger preferences.
*/
public class DebugPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage, IDebugPreferenceConstants {
- private static final String PREFIX= "debug_preferences.";
- private static final String DEBUG= PREFIX + "debug";
- private static final String RUN= PREFIX + "run";
- private static final String C_OPEN= PREFIX + "console_open";
-
public DebugPreferencePage() {
super(GRID);
@@ -35,13 +38,9 @@ public class DebugPreferencePage extends FieldEditorPreferencePage implements IW
* @see FieldEditorPreferencePage#createFieldEditors
*/
protected void createFieldEditors() {
- BooleanFieldEditor debug= new BooleanFieldEditor(IDebugUIConstants.PREF_AUTO_SHOW_DEBUG_VIEW, DebugUIUtils.getResourceString(DEBUG), SWT.NONE, getFieldEditorParent());
- BooleanFieldEditor run= new BooleanFieldEditor(IDebugUIConstants.PREF_AUTO_SHOW_PROCESS_VIEW, DebugUIUtils.getResourceString(RUN), SWT.NONE, getFieldEditorParent());
- BooleanFieldEditor consoleOpen= new BooleanFieldEditor(CONSOLE_OPEN, DebugUIUtils.getResourceString(C_OPEN), SWT.NONE, getFieldEditorParent());
-
- addField(debug);
- addField(run);
- addField(consoleOpen);
+ addField(new BooleanFieldEditor(IDebugUIConstants.PREF_AUTO_SHOW_DEBUG_VIEW, "Show Debug Perspective when a program is launched in de&bug mode", SWT.NONE, getFieldEditorParent()));
+ addField(new BooleanFieldEditor(IDebugUIConstants.PREF_AUTO_SHOW_PROCESS_VIEW, "Show Debug Perspective when a program is launched in &run mode", SWT.NONE, getFieldEditorParent()));
+ addField(new BooleanFieldEditor(CONSOLE_OPEN, "Show &Console View when there is program output", SWT.NONE, getFieldEditorParent()));
}
/**
@@ -49,5 +48,11 @@ public class DebugPreferencePage extends FieldEditorPreferencePage implements IW
*/
public void init(IWorkbench workbench) {
}
+
+ public static void initDefaults(IPreferenceStore store) {
+ store.setDefault(IDebugUIConstants.PREF_AUTO_SHOW_DEBUG_VIEW, true);
+ store.setDefault(IDebugUIConstants.PREF_AUTO_SHOW_PROCESS_VIEW, true);
+ store.setDefault(IDebugPreferenceConstants.CONSOLE_OPEN, true);
+ }
}

Back to the top