diff options
author | Kevin Barnes | 2004-05-10 19:42:40 +0000 |
---|---|---|
committer | Kevin Barnes | 2004-05-10 19:42:40 +0000 |
commit | aa0a3ac37ad1b433ebd9c602adc7ce9619756366 (patch) | |
tree | b75fd524cfd9115e650ec18570dd8820c88af541 | |
parent | d13cf0ceed90765f7a42ae961e4feb8fdf47ef92 (diff) | |
download | eclipse.platform.debug-aa0a3ac37ad1b433ebd9c602adc7ce9619756366.tar.gz eclipse.platform.debug-aa0a3ac37ad1b433ebd9c602adc7ce9619756366.tar.xz eclipse.platform.debug-aa0a3ac37ad1b433ebd9c602adc7ce9619756366.zip |
Bug 61336 - Compile errors prompt should use a warning dialog
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/CompileErrorPromptStatusHandler.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/CompileErrorPromptStatusHandler.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/CompileErrorPromptStatusHandler.java index 6be80d8e3..d298933fa 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/CompileErrorPromptStatusHandler.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/CompileErrorPromptStatusHandler.java @@ -18,6 +18,7 @@ import org.eclipse.debug.internal.ui.DebugUIPlugin; import org.eclipse.debug.internal.ui.IInternalDebugUIConstants; import org.eclipse.debug.ui.IDebugUIConstants; import org.eclipse.jface.dialogs.IDialogConstants; +import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.dialogs.MessageDialogWithToggle; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.swt.widgets.Shell; @@ -48,8 +49,12 @@ public class CompileErrorPromptStatusHandler implements IStatusHandler { return new Boolean(true); } } - - MessageDialogWithToggle dialog = MessageDialogWithToggle.openOkCancelConfirm(shell, title, message, null, false, store, IInternalDebugUIConstants.PREF_CONTINUE_WITH_COMPILE_ERROR); + + MessageDialogWithToggle dialog = new MessageDialogWithToggle(shell, title, null, message, MessageDialog.WARNING, + new String[] { IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL}, 1, null, false); + dialog.setPrefKey(IInternalDebugUIConstants.PREF_CONTINUE_WITH_COMPILE_ERROR); + dialog.setPrefStore(store); + dialog.open(); int returnValue = dialog.getReturnCode(); if (returnValue == IDialogConstants.OK_ID) { |