From 89a08912d9d8afac80b880d6fa084cdc646f2a02 Mon Sep 17 00:00:00 2001 From: zack Date: Fri, 29 Sep 2017 17:34:05 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-4841=20=E7=83=AD=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/gui/frpane/HyperlinkGroupPane.java | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/designer_base/src/com/fr/design/gui/frpane/HyperlinkGroupPane.java b/designer_base/src/com/fr/design/gui/frpane/HyperlinkGroupPane.java index 6cd9522d99..882e0ce127 100644 --- a/designer_base/src/com/fr/design/gui/frpane/HyperlinkGroupPane.java +++ b/designer_base/src/com/fr/design/gui/frpane/HyperlinkGroupPane.java @@ -3,16 +3,19 @@ package com.fr.design.gui.frpane; import com.fr.design.ExtraDesignClassManager; import com.fr.design.designer.TargetComponent; import com.fr.design.fun.HyperlinkProvider; -import com.fr.design.gui.controlpane.JListControlPane; import com.fr.design.gui.controlpane.NameableCreator; import com.fr.design.gui.controlpane.UIListControlPane; -import com.fr.design.mainframe.DesignerContext; import com.fr.design.module.DesignModuleFactory; +import com.fr.general.GeneralContext; import com.fr.general.Inter; import com.fr.general.NameObject; import com.fr.js.JavaScript; import com.fr.js.NameJavaScript; import com.fr.js.NameJavaScriptGroup; +import com.fr.plugin.context.PluginContext; +import com.fr.plugin.manage.PluginFilter; +import com.fr.plugin.observer.PluginEvent; +import com.fr.plugin.observer.PluginEventListener; import com.fr.stable.ListMap; import com.fr.stable.Nameable; @@ -33,6 +36,28 @@ public abstract class HyperlinkGroupPane extends UIListControlPane { super(); this.hyperlinkGroupPaneActionProvider = hyperlinkGroupPaneActionProvider; } + + @Override + protected void initComponentPane() { + super.initComponentPane(); + GeneralContext.listenPluginRunningChanged(new PluginEventListener() { + + @Override + public void on(PluginEvent event) { + + refreshNameableCreator(createNameableCreators()); + + } + }, new PluginFilter() { + + @Override + public boolean accept(PluginContext context) { + + return context.contain(HyperlinkProvider.XML_TAG); + } + }); + } + /** * 生成添加按钮的NameableCreator *