Skip to content

Commit

Permalink
'#2163 restore filters implementation for GraphAnalisys.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdalla committed Jun 17, 2024
1 parent c2793dc commit fc2c5df
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions iped-app/src/main/java/iped/app/graph/FilterSelectedEdges.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,18 @@ public void clearFilter() {
public void setGraph(Graph graph) {
this.graph = graph;
}

@Override
public void restoreDefinedFilters(List<IFilter> 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 {
Expand Down

0 comments on commit fc2c5df

Please sign in to comment.