GT-3485 Removed Secondary "default" action context to prevent actions

from triggering unexpectedly
This commit is contained in:
ghidravore 2020-01-23 11:49:58 -05:00
parent db7803144a
commit 26d7d0da5f
33 changed files with 128 additions and 288 deletions

View file

@ -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