Ghidra is a software reverse engineering (SRE) framework
Merge remote-tracking branch 'origin/patch'
ghidra1ddbfbfe1981d
diff --cc Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.javaindex f08eaea9d7,1b8c4134b1..856126f516--- a/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java+++ b/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java@@@ -467,41 -451,9 +467,41 @@@ public class DefaultGraphDisplay implem}+ /**+ * Group the selected vertices into one vertex that represents them all+ */+ private void groupSelectedVertices() {+ AttributedVertex vertex = graphCollapser.groupSelectedVertices();+ if (vertex != null) {+ askToNameGroupVertex(vertex);+ focusedVertex = vertex;+ scrollToSelected(vertex);+ }+ }++ private void askToNameGroupVertex(AttributedVertex vertex) {+ String name = vertex.getName();+ String userName = OptionDialog.showInputMultilineDialog(null, "Enter Group Vertex Text",+ "Text", name);++ updateVertexName(vertex, userName != null ? userName : name);+ }++ /**+ * 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() {- viewer.getSelectedVertexState().clear();- viewer.getSelectedEdgeState().clear();+ private void clearSelection(boolean fireEvents) {+ viewer.getSelectedVertexState().clear(fireEvents);+ viewer.getSelectedEdgeState().clear(fireEvents);}private boolean hasSelection() {