File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
src/utils/IdealGraphVisualizer/View/src/main/java/com/sun/hotspot/igv/view Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -148,11 +148,7 @@ public EditorTopComponent(InputGraph graph) {
148
148
setToolTipText (diagramViewModel .getGroup ().getDisplayName ());
149
149
});
150
150
151
- diagramViewModel .getGraphChangedEvent ().addListener (model -> {
152
- setDisplayName (model .getGraph ().getDisplayName ());
153
- setToolTipText (model .getGroup ().getDisplayName ());
154
- graphContent .set (Collections .singletonList (new EditorInputGraphProvider (this )), null );
155
- });
151
+ diagramViewModel .getGraphChangedEvent ().addListener (model -> graphChanged (model ));
156
152
157
153
cardLayout = new CardLayout ();
158
154
centerPanel = new JPanel ();
@@ -244,6 +240,14 @@ public void mouseMoved(MouseEvent e) {}
244
240
topPanel .add (toolbarPanel );
245
241
topPanel .add (quickSearchToolbar );
246
242
container .add (BorderLayout .NORTH , topPanel );
243
+
244
+ graphChanged (diagramViewModel );
245
+ }
246
+
247
+ private void graphChanged (DiagramViewModel model ) {
248
+ setDisplayName (model .getGraph ().getDisplayName ());
249
+ setToolTipText (model .getGroup ().getDisplayName ());
250
+ graphContent .set (Collections .singletonList (new EditorInputGraphProvider (this )), null );
247
251
}
248
252
249
253
public DiagramViewModel getModel () {
You can’t perform that action at this time.
0 commit comments