|
|
@ -559,11 +559,14 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void mount(PluginSingleInjection injection) { |
|
|
|
public void mount(PluginSingleInjection injection) { |
|
|
|
|
|
|
|
|
|
|
|
if (isIndependentChartUIProvider(injection)) { |
|
|
|
if (isChartTypeUIProvider(injection)) { |
|
|
|
|
|
|
|
String id = injection.getAttribute("chartID"); |
|
|
|
|
|
|
|
if (StringUtils.isEmpty(id)) { |
|
|
|
|
|
|
|
id = injection.getAttribute("plotID"); |
|
|
|
|
|
|
|
} |
|
|
|
String priority = injection.getAttribute("priority", DEFAULT_PRIORITY); |
|
|
|
String priority = injection.getAttribute("priority", DEFAULT_PRIORITY); |
|
|
|
String plotID = injection.getAttribute("plotID"); |
|
|
|
|
|
|
|
ChartTypeUIProvider instance = (ChartTypeUIProvider) injection.getObject(); |
|
|
|
ChartTypeUIProvider instance = (ChartTypeUIProvider) injection.getObject(); |
|
|
|
addChartTypeInterface(priority, plotID, instance); |
|
|
|
addChartTypeInterface(priority, id, instance); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -571,10 +574,13 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void demount(PluginSingleInjection injection) { |
|
|
|
public void demount(PluginSingleInjection injection) { |
|
|
|
|
|
|
|
|
|
|
|
if (isIndependentChartUIProvider(injection)) { |
|
|
|
if (isChartTypeUIProvider(injection)) { |
|
|
|
String priority = injection.getAttribute("priority", DEFAULT_PRIORITY); |
|
|
|
String priority = injection.getAttribute("priority", DEFAULT_PRIORITY); |
|
|
|
String plotID = injection.getAttribute("plotID"); |
|
|
|
String id = injection.getAttribute("chartID"); |
|
|
|
removeChartTypeInterface(priority, plotID); |
|
|
|
if (StringUtils.isEmpty(id)) { |
|
|
|
|
|
|
|
id = injection.getAttribute("plotID"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
removeChartTypeInterface(priority, id); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -589,9 +595,9 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private boolean isIndependentChartUIProvider(PluginSingleInjection injection) { |
|
|
|
private boolean isChartTypeUIProvider(PluginSingleInjection injection) { |
|
|
|
|
|
|
|
|
|
|
|
return !(injection == null || injection.getObject() == null) && ChartTypeUIProvider.XML_TAG.equals(injection.getName()) && injection.getObject() instanceof ChartTypeUIProvider; |
|
|
|
return !(injection == null || injection.getObject() == null) && (ChartTypeUIProvider.XML_TAG.equals(injection.getName()) || ChartTypeUIProvider.OLD_TAG.equals(injection.getName())) && injection.getObject() instanceof ChartTypeUIProvider; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|