Browse Source

update

master
Fangjie Hu 8 years ago
parent
commit
ef5d820b00
  1. 7
      designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java

7
designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java

@ -58,14 +58,10 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh
//所有图表存储器 //所有图表存储器
private static LinkedHashMap<String, IndependentChartUIProvider> chartTypeInterfaces = new LinkedHashMap<String, IndependentChartUIProvider>(); private static LinkedHashMap<String, IndependentChartUIProvider> chartTypeInterfaces = new LinkedHashMap<String, IndependentChartUIProvider>();
//插件图表存储器
private static LinkedHashMap<String, IndependentChartUIProvider> vanChartTypeInterfaces = new LinkedHashMap<String, IndependentChartUIProvider>();
public synchronized static ChartTypeInterfaceManager getInstance() { public synchronized static ChartTypeInterfaceManager getInstance() {
if (classManager == null) { if (classManager == null) {
classManager = new ChartTypeInterfaceManager(); classManager = new ChartTypeInterfaceManager();
chartTypeInterfaces.clear(); chartTypeInterfaces.clear();
vanChartTypeInterfaces.clear();
} }
return classManager; return classManager;
} }
@ -154,9 +150,6 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh
if (chartTypeInterfaces != null && !chartTypeInterfaces.containsKey(plotID)) { if (chartTypeInterfaces != null && !chartTypeInterfaces.containsKey(plotID)) {
chartTypeInterfaces.put(plotID, provider); chartTypeInterfaces.put(plotID, provider);
} }
if (vanChartTypeInterfaces != null && !vanChartTypeInterfaces.containsKey(plotID)) {
vanChartTypeInterfaces.put(plotID, provider);
}
} }
/** /**

Loading…
Cancel
Save