GT-3485 fixed analysis actions to work on "global context"

This commit is contained in:
ghidravore 2020-01-30 13:28:32 -05:00
parent 0b121ca9b8
commit 75451921b2
7 changed files with 112 additions and 78 deletions

View file

@ -2140,6 +2140,15 @@ public class DockingWindowManager implements PropertyChangeListener, Placeholder
contextListeners.remove(listener);
}
/**
* Returns the global action context for the tool
* @return the global action context for the tool
*/
public ActionContext getGlobalActionContext() {
return defaultProvider == null ? new ActionContext()
: defaultProvider.getActionContext(null);
}
void notifyContextListeners(ComponentPlaceholder placeHolder, ActionContext actionContext) {
if (placeHolder == focusedPlaceholder) {