|
|
@ -150,17 +150,19 @@ public class VanChartHyperLinkPane extends VanChartUIListControlPane { |
|
|
|
|
|
|
|
|
|
|
|
//安装平台内打开插件时,添加相应按钮
|
|
|
|
//安装平台内打开插件时,添加相应按钮
|
|
|
|
Set<HyperlinkProvider> providers = ExtraDesignClassManager.getInstance().getArray(HyperlinkProvider.XML_TAG); |
|
|
|
Set<HyperlinkProvider> providers = ExtraDesignClassManager.getInstance().getArray(HyperlinkProvider.XML_TAG); |
|
|
|
for (HyperlinkProvider provider : providers) { |
|
|
|
|
|
|
|
NameableCreator nc = provider.createHyperlinkCreator(); |
|
|
|
|
|
|
|
paneMap.put(nc.getHyperlink(), nc.getUpdatePane()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
java.util.List<UIMenuNameableCreator> list = refreshList(paneMap); |
|
|
|
java.util.List<UIMenuNameableCreator> list = refreshList(paneMap); |
|
|
|
NameObjectCreator[] creators = new NameObjectCreator[list.size()]; |
|
|
|
int size = list.size(); |
|
|
|
for (int i = 0; list != null && i < list.size(); i++) { |
|
|
|
NameObjectCreator[] creators = new NameObjectCreator[size + providers.size()]; |
|
|
|
|
|
|
|
for (int i = 0; i < size; i++) { |
|
|
|
UIMenuNameableCreator uiMenuNameableCreator = list.get(i); |
|
|
|
UIMenuNameableCreator uiMenuNameableCreator = list.get(i); |
|
|
|
creators[i] = new NameObjectCreator(uiMenuNameableCreator.getName(), uiMenuNameableCreator.getObj().getClass(), uiMenuNameableCreator.getPaneClazz()); |
|
|
|
creators[i] = new NameObjectCreator(uiMenuNameableCreator.getName(), uiMenuNameableCreator.getObj().getClass(), uiMenuNameableCreator.getPaneClazz()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
for (HyperlinkProvider provider : providers) { |
|
|
|
|
|
|
|
NameableCreator creator = provider.createHyperlinkCreator(); |
|
|
|
|
|
|
|
if (creator != null) { |
|
|
|
|
|
|
|
creators[size] = new NameObjectCreator(creator.menuName(), creator.getHyperlink(), creator.getUpdatePane()); |
|
|
|
|
|
|
|
size++; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
refreshNameableCreator(creators); |
|
|
|
refreshNameableCreator(creators); |
|
|
|