|
|
@ -126,7 +126,7 @@ public class ExtraDesignClassManager extends XMLFileManager implements ExtraDesi |
|
|
|
|
|
|
|
|
|
|
|
private DesignerEnvProcessor envProcessor; |
|
|
|
private DesignerEnvProcessor envProcessor; |
|
|
|
|
|
|
|
|
|
|
|
private TableDataTreePaneProcessor tableDataTreePaneProcessor; |
|
|
|
private TableDataPaneProcessor tableDataPaneProcessor; |
|
|
|
|
|
|
|
|
|
|
|
private Set<ElementUIProvider> elementUIProviders; |
|
|
|
private Set<ElementUIProvider> elementUIProviders; |
|
|
|
|
|
|
|
|
|
|
@ -136,6 +136,10 @@ public class ExtraDesignClassManager extends XMLFileManager implements ExtraDesi |
|
|
|
|
|
|
|
|
|
|
|
private WidgetDesignHandler widgetDesignHandler; |
|
|
|
private WidgetDesignHandler widgetDesignHandler; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Set<BackgroundQuickUIProvider> backgroundQuickUIProviders; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Set<BackgroundUIProvider> backgroundUIProviders; |
|
|
|
|
|
|
|
|
|
|
|
public WidgetDesignHandler getWidgetDesignHandler() { |
|
|
|
public WidgetDesignHandler getWidgetDesignHandler() { |
|
|
|
return widgetDesignHandler; |
|
|
|
return widgetDesignHandler; |
|
|
|
} |
|
|
|
} |
|
|
@ -144,13 +148,13 @@ public class ExtraDesignClassManager extends XMLFileManager implements ExtraDesi |
|
|
|
widgetDesignHandler = (WidgetDesignHandler) level; |
|
|
|
widgetDesignHandler = (WidgetDesignHandler) level; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public TableDataTreePaneProcessor getTableDataTreePaneProcessor() { |
|
|
|
public TableDataPaneProcessor getTableDataPaneProcessor() { |
|
|
|
return tableDataTreePaneProcessor; |
|
|
|
return tableDataPaneProcessor; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setTableDataSourceOPProcessor(Level level, PluginSimplify simplify) { |
|
|
|
public void setTableDataPaneProcessor(Level level, PluginSimplify simplify) { |
|
|
|
validAPILevel(level, TableDataTreePaneProcessor.CURRENT_LEVEL, simplify.getPluginName()); |
|
|
|
validAPILevel(level, TableDataPaneProcessor.CURRENT_LEVEL, simplify.getPluginName()); |
|
|
|
tableDataTreePaneProcessor = (TableDataTreePaneProcessor) level; |
|
|
|
tableDataPaneProcessor = (TableDataPaneProcessor) level; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public DesignerEnvProcessor getEnvProcessor() { |
|
|
|
public DesignerEnvProcessor getEnvProcessor() { |
|
|
@ -765,6 +769,51 @@ public class ExtraDesignClassManager extends XMLFileManager implements ExtraDesi |
|
|
|
widgetAttrProviders.add((WidgetPropertyUIProvider) level); |
|
|
|
widgetAttrProviders.add((WidgetPropertyUIProvider) level); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ExportAttrTabProvider[] getExportAttrTabProviders() { |
|
|
|
|
|
|
|
if (exportAttrTabProviders == null) { |
|
|
|
|
|
|
|
return new ExportAttrTabProvider[0]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return exportAttrTabProviders.toArray(new ExportAttrTabProvider[exportAttrTabProviders.size()]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void addExportAttrTabProvider(Level level, PluginSimplify simplify) throws Exception { |
|
|
|
|
|
|
|
if (exportAttrTabProviders == null) { |
|
|
|
|
|
|
|
exportAttrTabProviders = new HashSet<ExportAttrTabProvider>(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
validAPILevel(level, ExportAttrTabProvider.CURRENT_LEVEL, simplify.getPluginName()); |
|
|
|
|
|
|
|
exportAttrTabProviders.add((ExportAttrTabProvider) level); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public BackgroundQuickUIProvider[] getBackgroundQuickUIProviders() { |
|
|
|
|
|
|
|
if (backgroundQuickUIProviders == null) { |
|
|
|
|
|
|
|
return new BackgroundQuickUIProvider[0]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return backgroundQuickUIProviders.toArray(new BackgroundQuickUIProvider[backgroundQuickUIProviders.size()]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void addBackgroundQuickUIProvider(Level level, PluginSimplify simplify) throws Exception { |
|
|
|
|
|
|
|
if (backgroundQuickUIProviders == null) { |
|
|
|
|
|
|
|
backgroundQuickUIProviders = new HashSet<>(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
validAPILevel(level, BackgroundQuickUIProvider.CURRENT_LEVEL, simplify.getPluginName()); |
|
|
|
|
|
|
|
backgroundQuickUIProviders.add((BackgroundQuickUIProvider) level); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public BackgroundUIProvider[] getBackgroundUIProviders() { |
|
|
|
|
|
|
|
if (backgroundUIProviders == null) { |
|
|
|
|
|
|
|
return new BackgroundUIProvider[0]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return backgroundUIProviders.toArray(new BackgroundUIProvider[backgroundUIProviders.size()]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void addBackgroundUIProvider(Level level, PluginSimplify simplify) throws Exception { |
|
|
|
|
|
|
|
if (backgroundUIProviders == null) { |
|
|
|
|
|
|
|
backgroundUIProviders = new HashSet<>(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
validAPILevel(level, BackgroundUIProvider.CURRENT_LEVEL, simplify.getPluginName()); |
|
|
|
|
|
|
|
backgroundUIProviders.add((BackgroundUIProvider) level); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 文件名 |
|
|
|
* 文件名 |
|
|
|
* |
|
|
|
* |
|
|
@ -819,6 +868,8 @@ public class ExtraDesignClassManager extends XMLFileManager implements ExtraDesi |
|
|
|
readWidgetRelated(tagName, impl, simplify); |
|
|
|
readWidgetRelated(tagName, impl, simplify); |
|
|
|
//数据集, 数据连接
|
|
|
|
//数据集, 数据连接
|
|
|
|
readTableDataRelated(tagName, className, simplify); |
|
|
|
readTableDataRelated(tagName, className, simplify); |
|
|
|
|
|
|
|
// 样式相关的
|
|
|
|
|
|
|
|
readStyleRelated(tagName, impl, simplify); |
|
|
|
if (tagName.equals(ParameterWidgetOptionProvider.XML_TAG)) { |
|
|
|
if (tagName.equals(ParameterWidgetOptionProvider.XML_TAG)) { |
|
|
|
addParameterWidgetOption(impl, simplify); |
|
|
|
addParameterWidgetOption(impl, simplify); |
|
|
|
} else if (tagName.equals(PreviewProvider.MARK_STRING)) { |
|
|
|
} else if (tagName.equals(PreviewProvider.MARK_STRING)) { |
|
|
@ -853,12 +904,12 @@ public class ExtraDesignClassManager extends XMLFileManager implements ExtraDesi |
|
|
|
addSupportDesignApps(impl, simplify); |
|
|
|
addSupportDesignApps(impl, simplify); |
|
|
|
} else if (tagName.equals(DesignerEnvProcessor.XML_TAG)) { |
|
|
|
} else if (tagName.equals(DesignerEnvProcessor.XML_TAG)) { |
|
|
|
setEnvProcessor(impl, simplify); |
|
|
|
setEnvProcessor(impl, simplify); |
|
|
|
} else if (tagName.equals(TableDataTreePaneProcessor.XML_TAG)) { |
|
|
|
|
|
|
|
setTableDataSourceOPProcessor(impl, simplify); |
|
|
|
|
|
|
|
} else if (tagName.equals(ElementUIProvider.MARK_STRING)) { |
|
|
|
|
|
|
|
addElementUIProvider(impl, simplify); |
|
|
|
|
|
|
|
} else if (tagName.equals(WidgetDesignHandler.XML_TAG)) { |
|
|
|
} else if (tagName.equals(WidgetDesignHandler.XML_TAG)) { |
|
|
|
setWidgetDesignHandler(impl, simplify); |
|
|
|
setWidgetDesignHandler(impl, simplify); |
|
|
|
|
|
|
|
} else if (tagName.equals(TableDataPaneProcessor.XML_TAG)) { |
|
|
|
|
|
|
|
setTableDataPaneProcessor(impl, simplify); |
|
|
|
|
|
|
|
} else if (tagName.equals(ElementUIProvider.MARK_STRING)) { |
|
|
|
|
|
|
|
addElementUIProvider(impl, simplify); |
|
|
|
} else if (tagName.equals(WidgetPropertyUIProvider.XML_TAG)) { |
|
|
|
} else if (tagName.equals(WidgetPropertyUIProvider.XML_TAG)) { |
|
|
|
addWidgetAttrProvider(impl, simplify); |
|
|
|
addWidgetAttrProvider(impl, simplify); |
|
|
|
} else if (tagName.equals(ExportAttrTabProvider.XML_TAG)) { |
|
|
|
} else if (tagName.equals(ExportAttrTabProvider.XML_TAG)) { |
|
|
@ -871,21 +922,6 @@ public class ExtraDesignClassManager extends XMLFileManager implements ExtraDesi |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ExportAttrTabProvider[] getExportAttrTabProviders() { |
|
|
|
|
|
|
|
if (exportAttrTabProviders == null) { |
|
|
|
|
|
|
|
return new ExportAttrTabProvider[0]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return exportAttrTabProviders.toArray(new ExportAttrTabProvider[exportAttrTabProviders.size()]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void addExportAttrTabProvider(Level level, PluginSimplify simplify) throws Exception { |
|
|
|
|
|
|
|
if (exportAttrTabProviders == null) { |
|
|
|
|
|
|
|
exportAttrTabProviders = new HashSet<ExportAttrTabProvider>(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
validAPILevel(level, ExportAttrTabProvider.CURRENT_LEVEL, simplify.getPluginName()); |
|
|
|
|
|
|
|
exportAttrTabProviders.add((ExportAttrTabProvider) level); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void readTableDataRelated(String tagName, String className, PluginSimplify simplify) { |
|
|
|
private void readTableDataRelated(String tagName, String className, PluginSimplify simplify) { |
|
|
|
if (tagName.equals(TableDataCreatorProvider.XML_TAG)) { |
|
|
|
if (tagName.equals(TableDataCreatorProvider.XML_TAG)) { |
|
|
|
setTableDataCreatorProvider(className); |
|
|
|
setTableDataCreatorProvider(className); |
|
|
@ -910,6 +946,14 @@ public class ExtraDesignClassManager extends XMLFileManager implements ExtraDesi |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void readStyleRelated(String tagName, Level impl, PluginSimplify simplify) throws Exception { |
|
|
|
|
|
|
|
if (tagName.equals(BackgroundQuickUIProvider.MARK_STRING)) { |
|
|
|
|
|
|
|
addBackgroundQuickUIProvider(impl, simplify); |
|
|
|
|
|
|
|
} else if (tagName.equals(BackgroundUIProvider.MARK_STRING)) { |
|
|
|
|
|
|
|
addBackgroundUIProvider(impl, simplify); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 写xml |
|
|
|
* 写xml |
|
|
|
* |
|
|
|
* |
|
|
|