mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Test fixes for intermittent key binding options failure
This commit is contained in:
parent
066b285446
commit
26dc7b62b7
2 changed files with 5 additions and 3 deletions
|
@ -514,9 +514,11 @@ public class KeyBindingUtilsTest extends AbstractGhidraHeadedIntegrationTest {
|
|||
|
||||
private void selectRowForAction(DockingActionIf action) throws Exception {
|
||||
String actionName = action.getName();
|
||||
String owner = action.getOwnerDescription();
|
||||
|
||||
for (int i = 0; i < model.getRowCount(); i++) {
|
||||
if (actionName.equals(model.getValueAt(i, 0))) {
|
||||
if (actionName.equals(model.getValueAt(i, 0)) &&
|
||||
owner.equals(model.getValueAt(i, 2))) {
|
||||
final int idx = i;
|
||||
SwingUtilities.invokeAndWait(() -> {
|
||||
table.setRowSelectionInterval(idx, idx);
|
||||
|
|
|
@ -44,7 +44,7 @@ class FileChooserActionManager {
|
|||
}
|
||||
|
||||
private void createActions() {
|
||||
renameAction = new DockingAction("Rename", OWNER) {
|
||||
renameAction = new DockingAction("Rename", OWNER, false) {
|
||||
|
||||
@Override
|
||||
public void actionPerformed(ActionContext context) {
|
||||
|
@ -87,7 +87,7 @@ class FileChooserActionManager {
|
|||
renameAction.markHelpUnnecessary();
|
||||
chooser.addAction(renameAction);
|
||||
|
||||
removeRecentAction = new DockingAction("Remove Recent", OWNER) {
|
||||
removeRecentAction = new DockingAction("Remove Recent", OWNER, false) {
|
||||
|
||||
@Override
|
||||
public void actionPerformed(ActionContext context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue