Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2009-11-02 19:56:03 +0000
committerMichael Rennie2009-11-02 19:56:03 +0000
commit2a226a2e19f622e8dce62118c7f2feea691171d7 (patch)
tree5de05ae91898d30b6d129646bddc58f350efa8ff
parent7120d00e704a5cdca53d1d11ca188be47dc0f8fc (diff)
downloadeclipse.platform.debug-2a226a2e19f622e8dce62118c7f2feea691171d7.tar.gz
eclipse.platform.debug-2a226a2e19f622e8dce62118c7f2feea691171d7.tar.xz
eclipse.platform.debug-2a226a2e19f622e8dce62118c7f2feea691171d7.zip
Bug 293805 - [breakpoints] ToggleBreakpointsAction calls IToggleBreakpointAdapter.canToggle*() methods too often.
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ToggleBreakpointAction.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ToggleBreakpointAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ToggleBreakpointAction.java
index 33c5a97f8..d67ffa51f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ToggleBreakpointAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ToggleBreakpointAction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2008 IBM Corporation and others.
+ * Copyright (c) 2005, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -184,8 +184,8 @@ public class ToggleBreakpointAction extends Action implements IUpdate {
return;
}
}
- if (adapter.canToggleLineBreakpoints(fPart, selection) |
- adapter.canToggleWatchpoints(fPart, selection) |
+ if (adapter.canToggleLineBreakpoints(fPart, selection) ||
+ adapter.canToggleWatchpoints(fPart, selection) ||
adapter.canToggleMethodBreakpoints(fPart, selection))
{
setEnabled(true);

Back to the top