mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-4466 consolidated focus handling between ComponentProvider and DockableComponent
This commit is contained in:
parent
c131adc670
commit
495dc4df66
8 changed files with 41 additions and 84 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue