mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-22 02:31:57 +08:00
Merge remote-tracking branch 'origin/Ghidra_11.1'
This commit is contained in:
+6
@@ -311,6 +311,8 @@ public class ListingPanel extends JPanel implements FieldMouseListener, FieldLoc
|
||||
}
|
||||
|
||||
private void buildPanels() {
|
||||
boolean fieldPanelHasFocus = fieldPanel.hasFocus();
|
||||
|
||||
removeAll();
|
||||
add(buildLeftComponent(), BorderLayout.WEST);
|
||||
add(buildCenterComponent(), BorderLayout.CENTER);
|
||||
@@ -320,6 +322,10 @@ public class ListingPanel extends JPanel implements FieldMouseListener, FieldLoc
|
||||
}
|
||||
revalidate();
|
||||
repaint();
|
||||
|
||||
if (fieldPanelHasFocus) {
|
||||
fieldPanel.requestFocusInWindow();
|
||||
}
|
||||
}
|
||||
|
||||
private JComponent buildOverviewComponent() {
|
||||
|
||||
@@ -291,6 +291,10 @@ public class ActionChooserDialog extends DialogComponentProvider {
|
||||
SearchListEntry<DockingActionIf> value, int index, boolean isSelected,
|
||||
boolean hasFocus) {
|
||||
super.getListCellRendererComponent(list, value, index, isSelected, hasFocus);
|
||||
if (model.isDisposed()) {
|
||||
// Some UIs may call the renderer on focus lost after the dialog is closed.
|
||||
return this;
|
||||
}
|
||||
DockingActionIf action = value.value();
|
||||
String category = value.category();
|
||||
Icon icon = getIcon(action, category);
|
||||
|
||||
@@ -84,6 +84,10 @@ public class ActionsModel extends DefaultSearchListModel<DockingActionIf> {
|
||||
context = null;
|
||||
}
|
||||
|
||||
public boolean isDisposed() {
|
||||
return context == null;
|
||||
}
|
||||
|
||||
private void populateActions() {
|
||||
clearData();
|
||||
switch (displayLevel) {
|
||||
|
||||
Reference in New Issue
Block a user