Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes2006-04-07 17:44:34 -0400
committerKevin Barnes2006-04-07 17:44:34 -0400
commitad46cda8349b52109dab4b5b4da8bffcb9886353 (patch)
treea462fe0c2e83119275bc5fe7262a37bfa657a46e
parent897870e959e44feab5a6cdd161d8958e2d6c4f7f (diff)
downloadeclipse.platform.debug-ad46cda8349b52109dab4b5b4da8bffcb9886353.tar.gz
eclipse.platform.debug-ad46cda8349b52109dab4b5b4da8bffcb9886353.tar.xz
eclipse.platform.debug-ad46cda8349b52109dab4b5b4da8bffcb9886353.zip
Bug 120200 - Stepping performance deteriorates for testcase with many variables
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/context/AbstractDebugContextAction.java1
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/context/BooleanRequestMonitor.java6
2 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/context/AbstractDebugContextAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/context/AbstractDebugContextAction.java
index 86f8689f7..cbb28f56c 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/context/AbstractDebugContextAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/context/AbstractDebugContextAction.java
@@ -106,7 +106,6 @@ public abstract class AbstractDebugContextAction extends Action implements IDebu
*/
protected void updateEnableStateForContext(IStructuredSelection selection) {
int size = selection.size();
- setEnabled(false);
BooleanRequestMonitor monitor = new BooleanRequestMonitor(this, size);
Iterator itr = selection.iterator();
while (itr.hasNext()) {
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/context/BooleanRequestMonitor.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/context/BooleanRequestMonitor.java
index 05dd4d785..4823ed59e 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/context/BooleanRequestMonitor.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/context/BooleanRequestMonitor.java
@@ -49,9 +49,9 @@ public class BooleanRequestMonitor extends AbstractRequestMonitor implements IBo
public void done() {
if (isCanceled()) {
fAction.setEnabled(false);
- } else if (fNumOfVotes == fNumVoters) {
- fAction.setEnabled(true);
- }
+ } else {
+ fAction.setEnabled(fNumOfVotes == fNumVoters);
+ }
}
}

Back to the top