Skip to content

Commit

Permalink
8288480: IGV: toolbar action is not applied to the focused graph
Browse files Browse the repository at this point in the history
Reviewed-by: chagedorn, thartmann
  • Loading branch information
robcasloz committed Jun 20, 2022
1 parent 02da5f9 commit f62b2bd
Showing 1 changed file with 1 addition and 8 deletions.
Expand Up @@ -433,14 +433,7 @@ public FilterChain getFilterChain() {
}

public static EditorTopComponent getActive() {
Set<? extends Mode> modes = WindowManager.getDefault().getModes();
for (Mode m : modes) {
TopComponent tc = m.getSelectedTopComponent();
if (tc instanceof EditorTopComponent) {
return (EditorTopComponent) tc;
}
}
return null;
return (EditorTopComponent) EditorTopComponent.getRegistry().getActivated();
}

/** This method is called from within the constructor to
Expand Down

0 comments on commit f62b2bd

Please sign in to comment.