Browse Source

无JIRA任务 添加插件卸载前监听,性能插件以此进行额外的卸载任务

master
juhaoyu 8 years ago
parent
commit
2d53d781b6
  1. 2
      designer_base/src/com/fr/design/extra/PluginHelper.java

2
designer_base/src/com/fr/design/extra/PluginHelper.java

@ -319,6 +319,8 @@ public class PluginHelper {
if (plugin == null || env == null) { if (plugin == null || env == null) {
return ArrayUtils.EMPTY_STRING_ARRAY; return ArrayUtils.EMPTY_STRING_ARRAY;
} }
//卸载前监听
plugin.preUninstall();
PluginLoader.getLoader().deletePlugin(plugin); PluginLoader.getLoader().deletePlugin(plugin);
return env.deleteFileFromPluginAndLibFolder(plugin); return env.deleteFileFromPluginAndLibFolder(plugin);
} }

Loading…
Cancel
Save