diff options
author | Curtis Windatt | 2007-06-28 18:14:25 +0000 |
---|---|---|
committer | Curtis Windatt | 2007-06-28 18:14:25 +0000 |
commit | 003081c2921eaaa3bd1f00bf4bee9c824c13cd55 (patch) | |
tree | 9b6649fc2fdb1d5f755c8be97e3b92778eac06e8 | |
parent | 66cc06c2a334d858c44e73d07689c7836173324f (diff) | |
download | eclipse.platform.debug-003081c2921eaaa3bd1f00bf4bee9c824c13cd55.tar.gz eclipse.platform.debug-003081c2921eaaa3bd1f00bf4bee9c824c13cd55.tar.xz eclipse.platform.debug-003081c2921eaaa3bd1f00bf4bee9c824c13cd55.zip |
Bug 194458 - CCE when dragging to Breakpoints View
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsViewer.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsViewer.java index dec00fb7b..3afbf40ae 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsViewer.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsViewer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2006 IBM Corporation and others. + * Copyright (c) 2000, 2007 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 @@ -254,7 +254,7 @@ public class BreakpointsViewer extends CheckboxTreeViewer { * <li>Breakpoints can be dropped into breakpoints, provided there is a droppable parent of the target breakpoint</li> * </ul> * </p> - * @param target the target foor the drop + * @param target the target for the drop * @param element the element we want to drop * @return true if the specified element can be dropped into the specified target, false otherwise * @since 3.3 @@ -264,7 +264,8 @@ public class BreakpointsViewer extends CheckboxTreeViewer { return false; } for(Iterator iter = selection.iterator(); iter.hasNext();) { - if(!checkAddableParentContainers(target, (IBreakpoint) iter.next())) { + Object currentObject = iter.next(); + if (!(currentObject instanceof IBreakpoint) || !checkAddableParentContainers(target, (IBreakpoint)currentObject)){ return false; } } |