Browse Source

PFC-607 插件安装删除更新不重启支持

解决SandboxCollection,不关闭插件就无法GC相关对象的问题。改成了在内部类中只保存一个ID,不引用具体的对象。
master
juhaoyu 7 years ago
parent
commit
19303658da
  1. 20
      designer_base/src/com/fr/design/DesignerEnvManager.java

20
designer_base/src/com/fr/design/DesignerEnvManager.java

@ -152,17 +152,19 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
designerEnvManager.setCurEnvName(name);
}
}
GeneralContext.addEnvChangedListener(new EnvChangedListener() {
@Override
public void envChanged() {
designerEnvManager.setCurrentDirectoryPrefix(FILEFactory.ENV_PREFIX);
designerEnvManager.setDialogCurrentDirectory(ProjectConstants.REPORTLETS_NAME);
}
});
}
GeneralContext.addEnvChangedListener(new EnvChangedListener() {
@Override
public void envChanged() {
designerEnvManager.setCurrentDirectoryPrefix(FILEFactory.ENV_PREFIX);
designerEnvManager.setDialogCurrentDirectory(ProjectConstants.REPORTLETS_NAME);
}
});
return designerEnvManager;
}

Loading…
Cancel
Save