Browse Source

Merge pull request #536 in BA/design from ~XIAOHU/design:master to master

* commit '2dbf4f8268c519c88fb81e356bd9353d7c8a16c8':
  update
  update
  兼容老的插件
  update
  兼容插件
master
superman 8 years ago
parent
commit
2fbe070522
  1. 14
      designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java

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

@ -163,7 +163,7 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh
Map.Entry entry = (Map.Entry) iterator.next();
String priority = (String) entry.getKey();
String imagePath = getIconPath(priority, plotID);
if (!StringUtils.isEmpty(imagePath)) {
if (StringUtils.isNotEmpty(imagePath)) {
return imagePath;
}
}
@ -273,10 +273,20 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh
*/
public String getTitle4PopupWindow(String priority, String plotID){
if (chartTypeInterfaces != null && chartTypeInterfaces.containsKey(priority) && chartTypeInterfaces.get(priority).containsKey(plotID)){
HashMap<String, IndependentChartUIProvider> chartUIList = chartTypeInterfaces.get(priority);
IndependentChartUIProvider provider = chartTypeInterfaces.get(priority).get(plotID);
return provider.getPlotTypePane().title4PopupWindow();
}
//兼容老的插件
if (chartTypeInterfaces != null) {
Iterator iterator = chartTypeInterfaces.entrySet().iterator();
while (iterator.hasNext()) {
Map.Entry entry = (Map.Entry) iterator.next();
String defaultPriority = (String) entry.getKey();
if (chartTypeInterfaces.get(defaultPriority).containsKey(plotID)) {
return chartTypeInterfaces.get(defaultPriority).get(plotID).getPlotTypePane().title4PopupWindow();
}
}
}
return new String();
}

Loading…
Cancel
Save