Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Rolka2013-11-22 10:32:12 +0000
committerDaniel Rolka2013-11-22 10:32:12 +0000
commit74dc9cc50232ff72f375e8e606ca84d5f1bf69b6 (patch)
tree0da6ee830d8d10689febeb9253625c73497e26fa
parent648652ade0b83b487f6af93bfb0684ebe02a1e76 (diff)
downloadorg.eclipse.e4.tools-74dc9cc50232ff72f375e8e606ca84d5f1bf69b6.tar.gz
org.eclipse.e4.tools-74dc9cc50232ff72f375e8e606ca84d5f1bf69b6.tar.xz
org.eclipse.e4.tools-74dc9cc50232ff72f375e8e606ca84d5f1bf69b6.zip
Bug 422319 - [event spy] Improve support for filtering the captured
events - Addtional fix for the filters order Signed-off-by: Daniel Rolka <daniel.rolka@pl.ibm.com>
-rw-r--r--bundles/org.eclipse.e4.tools.event.spy/src/org/eclipse/e4/tools/event/spy/ui/CapturedEventFilters.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.tools.event.spy/src/org/eclipse/e4/tools/event/spy/ui/CapturedEventFilters.java b/bundles/org.eclipse.e4.tools.event.spy/src/org/eclipse/e4/tools/event/spy/ui/CapturedEventFilters.java
index d1b8bbb5..d3f3f4bb 100644
--- a/bundles/org.eclipse.e4.tools.event.spy/src/org/eclipse/e4/tools/event/spy/ui/CapturedEventFilters.java
+++ b/bundles/org.eclipse.e4.tools.event.spy/src/org/eclipse/e4/tools/event/spy/ui/CapturedEventFilters.java
@@ -12,7 +12,8 @@ package org.eclipse.e4.tools.event.spy.ui;
import java.util.ArrayList;
import java.util.Collection;
-import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.Map;
import org.eclipse.e4.tools.event.spy.model.CapturedEventFilter;
import org.eclipse.e4.tools.event.spy.model.ItemToFilter;
@@ -266,7 +267,7 @@ public class CapturedEventFilters {
}
public Collection<CapturedEventFilter> getFilters() {
- HashMap<Integer, CapturedEventFilter> result = new HashMap<Integer, CapturedEventFilter>();
+ Map<Integer, CapturedEventFilter> result = new LinkedHashMap<Integer, CapturedEventFilter>();
for (CapturedEventFilter filter: rawFilters) {
result.put(filter.hashCode(), filter);
}

Back to the top