mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
Merge remote-tracking branch 'origin/GP-427_tomnelson_focused_vertex_vs_expand'
This commit is contained in:
commit
14d4c87ef4
1 changed files with 14 additions and 1 deletions
|
@ -451,7 +451,7 @@ public class DefaultGraphDisplay implements GraphDisplay {
|
||||||
.popupMenuPath("Expand Selected Vertices")
|
.popupMenuPath("Expand Selected Vertices")
|
||||||
.popupMenuGroup("zz", "6")
|
.popupMenuGroup("zz", "6")
|
||||||
.description("Expands all selected collapsed vertices into their previous form")
|
.description("Expands all selected collapsed vertices into their previous form")
|
||||||
.onAction(c -> graphCollapser.ungroupSelectedVertices())
|
.onAction(c -> ungroupSelectedVertices())
|
||||||
.buildAndInstallLocal(componentProvider);
|
.buildAndInstallLocal(componentProvider);
|
||||||
|
|
||||||
togglePopupsAction = new ToggleActionBuilder("Display Popup Windows", ACTION_OWNER)
|
togglePopupsAction = new ToggleActionBuilder("Display Popup Windows", ACTION_OWNER)
|
||||||
|
@ -476,6 +476,19 @@ public class DefaultGraphDisplay implements GraphDisplay {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ungroup the selected vertices. If the focusedVertex is no longer
|
||||||
|
* in the graph, null it. This will happen if the focusedVertex was
|
||||||
|
* the GroupVertex
|
||||||
|
*/
|
||||||
|
private void ungroupSelectedVertices() {
|
||||||
|
graphCollapser.ungroupSelectedVertices();
|
||||||
|
if (!graph.containsVertex(focusedVertex)) {
|
||||||
|
focusedVertex = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private void clearSelection() {
|
private void clearSelection() {
|
||||||
viewer.getSelectedVertexState().clear();
|
viewer.getSelectedVertexState().clear();
|
||||||
viewer.getSelectedEdgeState().clear();
|
viewer.getSelectedEdgeState().clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue