Tests - updated the tool to not fire context changed events if the tool

is in the process of disposing (this causes some less talented plugins
to throw exceptions after being disposed)
This commit is contained in:
dragonmacher 2020-02-18 11:56:38 -05:00
parent 7f2ebb66af
commit 712d116de6

View file

@ -1476,6 +1476,14 @@ public abstract class PluginTool extends AbstractDockingTool {
return winMgr.getGlobalActionContext();
}
@Override
public void contextChanged(ComponentProvider provider) {
if (isDisposed) {
return;
}
super.contextChanged(provider);
}
//==================================================================================================
// Inner Classes
//==================================================================================================