From fc2c5df4132bdfd53ec286b34202ac86da8bab53 Mon Sep 17 00:00:00 2001 From: "patrick.pdb" Date: Mon, 17 Jun 2024 15:14:32 -0400 Subject: [PATCH] '#2163 restore filters implementation for GraphAnalisys. --- .../java/iped/app/graph/FilterSelectedEdges.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/iped-app/src/main/java/iped/app/graph/FilterSelectedEdges.java b/iped-app/src/main/java/iped/app/graph/FilterSelectedEdges.java index e591894968..1472a5ff4d 100644 --- a/iped-app/src/main/java/iped/app/graph/FilterSelectedEdges.java +++ b/iped-app/src/main/java/iped/app/graph/FilterSelectedEdges.java @@ -199,6 +199,18 @@ public void clearFilter() { public void setGraph(Graph graph) { this.graph = graph; } + + @Override + public void restoreDefinedFilters(List filtersToRestore) { + for (Iterator iterator = filtersToRestore.iterator(); iterator.hasNext();) { + IFilter iFilter = (IFilter) iterator.next(); + if (iFilter instanceof EdgeFilter) { + EdgeFilter efilter = (EdgeFilter) iFilter; + this.graph = efilter.graph; + this.selectedEdges = efilter.selectedEdges; + } + } + } } class EdgeFilter implements IResultSetFilter {