From 7a549e700acf694c38d5a89e5533b990822f34ff Mon Sep 17 00:00:00 2001 From: Michael Rennie Date: Mon, 16 May 2011 18:42:53 +0000 Subject: [r342] Bug 345759 - While stepping over a long-running operation another thread can steal selection in Debug view. --- .../debug/internal/ui/viewers/update/DefaultSelectionPolicy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug') diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/DefaultSelectionPolicy.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/DefaultSelectionPolicy.java index 5c3f31528..d71a27114 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/DefaultSelectionPolicy.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/DefaultSelectionPolicy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2007 IBM Corporation and others. + * Copyright (c) 2005, 2011 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 @@ -98,7 +98,7 @@ public class DefaultSelectionPolicy implements IModelSelectionPolicy { protected boolean isSticky(Object element) { if (element instanceof IStackFrame) { IStackFrame frame = (IStackFrame) element; - return frame.isSuspended(); + return frame.isSuspended() || frame.isStepping(); } return false; } -- cgit v1.2.3