|
|
|
@ -27,6 +27,8 @@ public class PluginClassRefreshManager {
|
|
|
|
|
private final PluginEventListener pluginAfterRunEventListener = new PluginEventListener() { |
|
|
|
|
@Override |
|
|
|
|
public void on(PluginEvent event) { |
|
|
|
|
// 重载模版之前 触发下hide
|
|
|
|
|
HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().fireTabChange(); |
|
|
|
|
// 兼容之前版本特性
|
|
|
|
|
for (String tag : context) { |
|
|
|
|
if (event.getContext().contain(tag)) { |
|
|
|
@ -51,6 +53,7 @@ public class PluginClassRefreshManager {
|
|
|
|
|
public void on(PluginEvent event) { |
|
|
|
|
PluginListenerRegistration.getInstance().listen(PluginEventType.AfterRun, pluginAfterRunEventListener); |
|
|
|
|
if (DesignerLaunchStatus.getStatus() != DesignerLaunchStatus.WORKSPACE_INIT_COMPLETE) { |
|
|
|
|
HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().fireTabChange(); |
|
|
|
|
HistoryTemplateListCache.getInstance().reloadAllEditingTemplate(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|