mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-514 - fixes 'hidden vertices are not also hidden in satellite view'
This commit is contained in:
parent
e1e9dc0f8f
commit
19b582e3c9
1 changed files with 4 additions and 1 deletions
|
@ -618,6 +618,9 @@ public class DefaultGraphDisplay implements GraphDisplay {
|
||||||
satellite.getRenderContext().setVertexFillPaintFunction(Colors::getColor);
|
satellite.getRenderContext().setVertexFillPaintFunction(Colors::getColor);
|
||||||
satellite.scaleToLayout();
|
satellite.scaleToLayout();
|
||||||
satellite.getRenderContext().setVertexLabelFunction(n -> null);
|
satellite.getRenderContext().setVertexLabelFunction(n -> null);
|
||||||
|
// always get the current predicate from the main view and test with it,
|
||||||
|
satellite.getRenderContext()
|
||||||
|
.setVertexIncludePredicate(v -> viewer.getRenderContext().getVertexIncludePredicate().test(v));
|
||||||
satellite.getComponent().setBorder(BorderFactory.createEtchedBorder());
|
satellite.getComponent().setBorder(BorderFactory.createEtchedBorder());
|
||||||
parentViewer.getComponent().addComponentListener(new ComponentAdapter() {
|
parentViewer.getComponent().addComponentListener(new ComponentAdapter() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -820,7 +823,7 @@ public class DefaultGraphDisplay implements GraphDisplay {
|
||||||
viewer.getRenderContext()
|
viewer.getRenderContext()
|
||||||
.setVertexIncludePredicate(
|
.setVertexIncludePredicate(
|
||||||
v -> v.getAttributeMap().values().stream().noneMatch(selected::contains));
|
v -> v.getAttributeMap().values().stream().noneMatch(selected::contains));
|
||||||
viewer.repaint();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
edgeFilters = AttributeFilters.builder()
|
edgeFilters = AttributeFilters.builder()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue