Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2005-12-09 17:38:40 +0000
committerMichael Rennie2005-12-09 17:38:40 +0000
commitf32e2eec4d4a5c8ab38f1c7244d8ad296d028e12 (patch)
treeb32208128cca646eceb5c4ac9aeccf303352310d /org.eclipse.debug.ui/ui/org/eclipse/debug
parente8ecece5e43f6bc3b33deb2695e55205ce9837f3 (diff)
downloadeclipse.platform.debug-f32e2eec4d4a5c8ab38f1c7244d8ad296d028e12.tar.gz
eclipse.platform.debug-f32e2eec4d4a5c8ab38f1c7244d8ad296d028e12.tar.xz
eclipse.platform.debug-f32e2eec4d4a5c8ab38f1c7244d8ad296d028e12.zip
updates to migrate settings on the launching pref page
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.java8
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.properties8
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/LaunchingPreferencePage.java129
3 files changed, 84 insertions, 61 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.java
index 9db28d00e..613ceaf5f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.java
@@ -129,4 +129,12 @@ public class DebugPreferencesMessages extends NLS {
public static String LaunchingPreferencePage_31;
+ public static String LaunchingPreferencePage_32;
+
+ public static String LaunchingPreferencePage_33;
+
+ public static String LaunchingPreferencePage_34;
+
+ public static String LaunchingPreferencePage_35;
+
} \ No newline at end of file
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.properties
index 3a44b2383..70eedc184 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.properties
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.properties
@@ -62,12 +62,16 @@ LaunchingPreferencePage_20=General Settings for Launching
LaunchingPreferencePage_21=Continue launch if project contains errors
LaunchingPreferencePage_22=Al&ways
LaunchingPreferencePage_23=Pr&ompt
-LaunchingPreferencePage_26=Launch configurations can be made aware of the projects that they launch, to set this mapping launch configurations must be migrated.
-LaunchingPreferencePage_27=Migrate la&unch configurations...
+LaunchingPreferencePage_26=Search for, select, and upgrade launch configurations to be compatible with current tooling.
+LaunchingPreferencePage_27=Mi&grate...
LaunchingPreferencePage_28=Select Launch Configurations
LaunchingPreferencePage_29=No Candidates
LaunchingPreferencePage_30=None of the available launch configurations require migration.
LaunchingPreferencePage_31=Migrating launch configurations
+LaunchingPreferencePage_32=Launch Configuration Filtering
+LaunchingPreferencePage_33=&Filter out configurations for unavailable projects.
+LaunchingPreferencePage_34=Sho&w configurations for current project(s) only.
+LaunchingPreferencePage_35=Migration
ProcessPropertyPage_Command_Line__1=Command Line:
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/LaunchingPreferencePage.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/LaunchingPreferencePage.java
index 3a431df2f..d2418c831 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/LaunchingPreferencePage.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/LaunchingPreferencePage.java
@@ -41,6 +41,7 @@ import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
@@ -52,7 +53,9 @@ import org.eclipse.ui.model.WorkbenchContentProvider;
* A preference page for configuring launching preferences.
*/
public class LaunchingPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
-
+ /**
+ * to monitor the proress of the migration process
+ */
private ProgressMonitorPart fMonitor;
/**
@@ -100,12 +103,76 @@ public class LaunchingPreferencePage extends FieldEditorPreferencePage implement
parent,
true));
createLaunchHistoryEditor(parent);
- createSpacer(parent, 1);
- createMigrationEditor(parent);
createSpacer(parent, 2);
+ createMigrationEditor(parent);
+ createSpacer(parent, 1);
+ fMonitor = new ProgressMonitorPart(parent, new GridLayout());
}
/**
+ * Creates the launch history section of the page
+ */
+ private void createLaunchHistoryEditor(Composite parent) {
+ final IntegerFieldEditor editor = new IntegerFieldEditor(IDebugUIConstants.PREF_MAX_HISTORY_SIZE, DebugPreferencesMessages.DebugPreferencePage_10, parent);
+ int historyMax = IDebugPreferenceConstants.MAX_LAUNCH_HISTORY_SIZE;
+ editor.setTextLimit(Integer.toString(historyMax).length());
+ editor.setErrorMessage(MessageFormat.format(DebugPreferencesMessages.DebugPreferencePage_11, new Object[] { new Integer(1), new Integer(historyMax)}));
+ editor.setValidateStrategy(StringFieldEditor.VALIDATE_ON_KEY_STROKE);
+ editor.setValidRange(1, historyMax);
+ editor.setPropertyChangeListener(new IPropertyChangeListener() {
+ public void propertyChange(PropertyChangeEvent event) {
+ if (event.getProperty().equals(FieldEditor.IS_VALID))
+ setValid(editor.isValid());
+ }
+ });
+ addField(editor);
+ }
+
+ /**
+ * Create the section that handles migration
+ *
+ * @since 3.2
+ */
+ private void createMigrationEditor(Composite parent) {
+ Group group = new Group(parent, SWT.NONE);
+ group.setLayout(new GridLayout(1, true));
+ GridData gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.horizontalSpan = 2;
+ group.setLayoutData(gd);
+ group.setText(DebugPreferencesMessages.LaunchingPreferencePage_35);
+ Label label = new Label(group, SWT.LEFT | SWT.WRAP);
+ gd.widthHint = 450;
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.verticalIndent = 4;
+ label.setLayoutData(gd);
+ label.setText(DebugPreferencesMessages.LaunchingPreferencePage_26);
+ Button migratenow = SWTUtil.createPushButton(group, DebugPreferencesMessages.LaunchingPreferencePage_27, null);
+ gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
+ gd.widthHint = 100;
+ gd.verticalIndent = 4;
+ migratenow.setLayoutData(gd);
+ migratenow.addSelectionListener(new SelectionListener() {
+ public void widgetDefaultSelected(SelectionEvent e) {}
+ public void widgetSelected(SelectionEvent e) {
+ handleMigrateNowSelected();
+ }
+ });
+ }
+
+ /**
+ * Creates a horozontal spacer in a composite which is as wide as the specified column span
+ * @param composite the parent to add the spacer to
+ * @param columnSpan the number of columns to add the spacer to.
+ */
+ protected void createSpacer(Composite composite, int columnSpan) {
+ Label label = new Label(composite, SWT.NONE);
+ GridData gd = new GridData();
+ gd.horizontalSpan = columnSpan;
+ label.setLayoutData(gd);
+ }
+
+
+ /**
* handles the Migrate button being clicked
*
* @since 3.2
@@ -137,62 +204,6 @@ public class LaunchingPreferencePage extends FieldEditorPreferencePage implement
}
catch (CoreException e) {DebugUIPlugin.log(e);}
}
-
-
- /**
- * Creates a horozontal spacer in a composite which is as wide as the specified column span
- * @param composite the parent to add the spacer to
- * @param columnSpan the number of columns to add the spacer to.
- */
- protected void createSpacer(Composite composite, int columnSpan) {
- Label label = new Label(composite, SWT.NONE);
- GridData gd = new GridData();
- gd.horizontalSpan = columnSpan;
- label.setLayoutData(gd);
- }
-
- /**
- * Create the section that handles migration
- *
- * @since 3.2
- */
- private void createMigrationEditor(Composite parent) {
- Label label = new Label(parent, SWT.LEFT | SWT.WRAP);
- GridData gd = new GridData();
- gd.widthHint = 450;
- gd.horizontalSpan = 2;
- label.setLayoutData(gd);
- label.setText(DebugPreferencesMessages.LaunchingPreferencePage_26);
- Button msabod = SWTUtil.createPushButton(parent, DebugPreferencesMessages.LaunchingPreferencePage_27, null);
- msabod.addSelectionListener(new SelectionListener() {
- public void widgetSelected(SelectionEvent e) {
- handleMigrateNowSelected();
- }
- public void widgetDefaultSelected(SelectionEvent e) {}
- });
- new Label(parent, SWT.NONE);
- fMonitor = new ProgressMonitorPart(parent, new GridLayout());
- }
-
-
- /**
- * Creates the launch history section of the page
- */
- private void createLaunchHistoryEditor(Composite parent) {
- final IntegerFieldEditor editor = new IntegerFieldEditor(IDebugUIConstants.PREF_MAX_HISTORY_SIZE, DebugPreferencesMessages.DebugPreferencePage_10, parent);
- int historyMax = IDebugPreferenceConstants.MAX_LAUNCH_HISTORY_SIZE;
- editor.setTextLimit(Integer.toString(historyMax).length());
- editor.setErrorMessage(MessageFormat.format(DebugPreferencesMessages.DebugPreferencePage_11, new Object[] { new Integer(1), new Integer(historyMax)}));
- editor.setValidateStrategy(StringFieldEditor.VALIDATE_ON_KEY_STROKE);
- editor.setValidRange(1, historyMax);
- editor.setPropertyChangeListener(new IPropertyChangeListener() {
- public void propertyChange(PropertyChangeEvent event) {
- if (event.getProperty().equals(FieldEditor.IS_VALID))
- setValid(editor.isValid());
- }
- });
- addField(editor);
- }
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)

Back to the top