mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GT-3485 Removed Secondary "default" action context to prevent actions
from triggering unexpectedly
This commit is contained in:
parent
db7803144a
commit
26d7d0da5f
33 changed files with 128 additions and 288 deletions
|
@ -353,23 +353,6 @@ public class DockingWindowManager implements PropertyChangeListener, Placeholder
|
|||
defaultProvider = provider;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns this tool's notion of the current action context, which is based upon the active
|
||||
* {@link ComponentProvider}. If there is not active provider, then a generic context will
|
||||
* be returned.
|
||||
*
|
||||
* @return the context
|
||||
*/
|
||||
public ActionContext getGlobalContext() {
|
||||
if (defaultProvider != null) {
|
||||
ActionContext actionContext = defaultProvider.getActionContext(null);
|
||||
if (actionContext != null) {
|
||||
return actionContext;
|
||||
}
|
||||
}
|
||||
return new ActionContext();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the window which contains the specified Provider's component.
|
||||
* @param provider component provider
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue