Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes2005-07-19 18:35:31 +0000
committerKevin Barnes2005-07-19 18:35:31 +0000
commitac672e79a20ed0d544a95514c37a79590504979c (patch)
treeef36f1a78a3fe3bf814626b5a41ed28489dbb0d6 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/DebugModePromptStatusHandler.java
parentb8dfebaae6202c1423d1de77eceda28201d1b66e (diff)
downloadeclipse.platform.debug-ac672e79a20ed0d544a95514c37a79590504979c.tar.gz
eclipse.platform.debug-ac672e79a20ed0d544a95514c37a79590504979c.tar.xz
eclipse.platform.debug-ac672e79a20ed0d544a95514c37a79590504979c.zip
Bug 99753 - Debug use of new Boolean(boolean)
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/DebugModePromptStatusHandler.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/DebugModePromptStatusHandler.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/DebugModePromptStatusHandler.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/DebugModePromptStatusHandler.java
index f3117d427..cb3dd543d 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/DebugModePromptStatusHandler.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/DebugModePromptStatusHandler.java
@@ -33,7 +33,7 @@ public class DebugModePromptStatusHandler implements IStatusHandler {
if (source instanceof ILaunchConfiguration) {
ILaunchConfiguration config = (ILaunchConfiguration)source;
if (DebugUITools.isPrivate(config)) {
- return new Boolean(false);
+ return Boolean.FALSE;
}
}
@@ -42,10 +42,10 @@ public class DebugModePromptStatusHandler implements IStatusHandler {
String pref = store.getString(IInternalDebugUIConstants.PREF_RELAUNCH_IN_DEBUG_MODE);
if (pref != null) {
if (pref.equals(MessageDialogWithToggle.NEVER)) {
- return new Boolean(false);
+ return Boolean.FALSE;
} else if (pref.equals(MessageDialogWithToggle.ALWAYS)) {
relaunchInDebugMode(configuration);
- return new Boolean(true);
+ return Boolean.TRUE;
}
}
@@ -57,11 +57,11 @@ public class DebugModePromptStatusHandler implements IStatusHandler {
int buttonId = dialog.getReturnCode();
if (buttonId == IDialogConstants.YES_ID) {
relaunchInDebugMode(configuration);
- return new Boolean(true); // stops launch
+ return Boolean.TRUE; // stops launch
} else if (buttonId == IDialogConstants.NO_ID) {
- return new Boolean(false); // continue launch
+ return Boolean.FALSE; // continue launch
} else { //CANCEL
- return new Boolean(true); // stops the launch
+ return Boolean.TRUE; // stops the launch
}
}
/**

Back to the top