Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Pazderski2019-05-12 18:20:19 +0000
committerPaul Pazderski2019-05-12 19:02:42 +0000
commit3b426f81e380107a9a1e4bbf46407ac9924de12b (patch)
treede7b0185d897a62908e993605732f6459280ddb7
parentefe4a8a7d5a626356b0eb3500b584ab58922b387 (diff)
downloadeclipse.platform.debug-3b426f81e380107a9a1e4bbf46407ac9924de12b.tar.gz
eclipse.platform.debug-3b426f81e380107a9a1e4bbf46407ac9924de12b.tar.xz
eclipse.platform.debug-3b426f81e380107a9a1e4bbf46407ac9924de12b.zip
Bug 344349 - [breakpoints] Delete undo doesn't work when multi-selectI20190513-1800I20190512-1800
group and breakpoints Do/Undo-Operation fails if breakpoints are deleted twice. Change-Id: Ifa617309f2b822a13cc4f766b2cc2b050d71da3b Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RemoveBreakpointAction.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RemoveBreakpointAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RemoveBreakpointAction.java
index 96a63a02d..7195fd293 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RemoveBreakpointAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RemoveBreakpointAction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -17,6 +17,8 @@ package org.eclipse.debug.internal.ui.actions.breakpoints;
import java.util.ArrayList;
import java.util.Iterator;
+import java.util.LinkedHashSet;
+import java.util.Set;
import org.eclipse.core.resources.IWorkspaceRunnable;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -60,7 +62,7 @@ public class RemoveBreakpointAction extends AbstractSelectionActionDelegate {
IWorkspaceRunnable runnable= new IWorkspaceRunnable() {
@Override
public void run(IProgressMonitor monitor) {
- ArrayList<IBreakpoint> breakpointsToDelete = new ArrayList<>();
+ Set<IBreakpoint> breakpointsToDelete = new LinkedHashSet<>();
ArrayList<IWorkingSet> groupsToDelete = new ArrayList<>();
boolean deleteAll = false;
boolean deleteContainer = false;

Back to the top