mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-19 16:40:38 -09:00
GP-4466 consolidated focus handling between ComponentProvider and DockableComponent
This commit is contained in:
@@ -133,6 +133,8 @@ public class FGProvider extends VisualGraphComponentProvider<FGVertex, FGEdge, F
|
||||
new SwingUpdateManager(250, 750, () -> setPendingLocationFromUpdateManager());
|
||||
|
||||
clipboardProvider = new FGClipboardProvider(tool, controller);
|
||||
setDefaultFocusComponent(controller.getViewComponent());
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1286,16 +1288,6 @@ public class FGProvider extends VisualGraphComponentProvider<FGVertex, FGEdge, F
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void requestFocus() {
|
||||
if (!isVisible()) {
|
||||
return; // we will popup incorrectly without this check
|
||||
}
|
||||
|
||||
controller.requestFocus();
|
||||
tool.toFront(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFocusedProvider() {
|
||||
return focusStatusDelegate.get();
|
||||
|
||||
@@ -497,10 +497,6 @@ public class FGController implements ProgramLocationListener, ProgramSelectionLi
|
||||
return functionGraphData.hasResults();
|
||||
}
|
||||
|
||||
public void requestFocus() {
|
||||
view.requestFocus();
|
||||
}
|
||||
|
||||
public void cleanup() {
|
||||
clear();
|
||||
disposeCache();
|
||||
|
||||
Reference in New Issue
Block a user