mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 18:46:37 +08:00
Fixed docking action key bindings in dialogs
This commit is contained in:
+5
-3
@@ -4,9 +4,9 @@
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -25,6 +25,7 @@ import javax.swing.JTextField;
|
||||
|
||||
import org.junit.*;
|
||||
|
||||
import docking.ActionContext;
|
||||
import docking.action.DockingActionIf;
|
||||
import docking.action.ToggleDockingAction;
|
||||
import docking.menu.ActionState;
|
||||
@@ -118,7 +119,8 @@ public class SampleGraphPluginTest extends AbstractGhidraHeadedIntegrationTest {
|
||||
|
||||
ToggleDockingAction showFilterAction =
|
||||
(ToggleDockingAction) getAction(plugin, SampleGraphProvider.SHOW_FILTER_ACTION_NAME);
|
||||
setToggleActionSelected(showFilterAction, provider.getActionContext(null), true);
|
||||
ActionContext context = createActionContext(provider);
|
||||
setToggleActionSelected(showFilterAction, context, true);
|
||||
|
||||
Component filterPanel =
|
||||
findComponentByName(provider.getComponent(), "sample.graph.filter.panel");
|
||||
|
||||
Reference in New Issue
Block a user