解决SandboxCollection,不关闭插件就无法GC相关对象的问题。改成了在内部类中只保存一个ID,不引用具体的对象。
@ -152,7 +152,6 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
designerEnvManager.setCurEnvName(name);
}
GeneralContext.addEnvChangedListener(new EnvChangedListener() {
@Override
@ -163,6 +162,9 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
});
return designerEnvManager;