mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[log] Fix DelegateGraphFacade when applying filters.
This commit is contained in:
@@ -190,18 +190,25 @@ public class DelegateGraphFacade implements GraphFacade {
|
||||
|
||||
@Override
|
||||
public void setVisibleBranches(@Nullable Collection<Integer> heads) {
|
||||
if (heads == null)
|
||||
boolean needUpdate;
|
||||
if (heads == null) {
|
||||
needUpdate = myHeads != null;
|
||||
myHeads = null;
|
||||
else
|
||||
} else {
|
||||
needUpdate = true;
|
||||
myHeads = new HashSet<Integer>(heads);
|
||||
|
||||
updateVisibleGraph();
|
||||
}
|
||||
if (needUpdate)
|
||||
updateVisibleGraph();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFilter(@Nullable Condition<Integer> visibilityPredicate) {
|
||||
boolean needUpdate = !(visibilityPredicate == myVisibilityPredicate);
|
||||
|
||||
myVisibilityPredicate = visibilityPredicate;
|
||||
updateVisibleGraph();
|
||||
if (needUpdate)
|
||||
updateVisibleGraph();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user