|
|
@ -74,11 +74,9 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh |
|
|
|
GeneralContext.addPluginReadListener(new PluginReadListener() { |
|
|
|
GeneralContext.addPluginReadListener(new PluginReadListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void success() { |
|
|
|
public void success() { |
|
|
|
if (chartTypeInterfaces != null) { |
|
|
|
ChartTypeInterfaceManager.getInstance().readDefault(); |
|
|
|
readDefault(); |
|
|
|
//重新注册designModuleFactory
|
|
|
|
//重新注册designModuleFactory
|
|
|
|
DesignModuleFactory.registerExtraWidgetOptions(initWidgetOption()); |
|
|
|
DesignModuleFactory.registerExtraWidgetOptions(initWidgetOption()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -101,7 +99,7 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private synchronized static void envChanged() { |
|
|
|
private synchronized static void envChanged() { |
|
|
|
chartTypeInterfaces.clear(); |
|
|
|
classManager = null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static void readDefault() { |
|
|
|
private static void readDefault() { |
|
|
@ -132,6 +130,12 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void addChartTypeInterface(IndependentChartUIProvider provider, String plotID) { |
|
|
|
|
|
|
|
if (chartTypeInterfaces != null && !chartTypeInterfaces.containsKey(plotID)) { |
|
|
|
|
|
|
|
chartTypeInterfaces.put(plotID, provider); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 增加界面接口定义 |
|
|
|
* 增加界面接口定义 |
|
|
|
* |
|
|
|
* |
|
|
@ -149,8 +153,8 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh |
|
|
|
IndependentChartUIProvider provider = (IndependentChartUIProvider) clazz.newInstance(); |
|
|
|
IndependentChartUIProvider provider = (IndependentChartUIProvider) clazz.newInstance(); |
|
|
|
if (PluginCollector.getCollector().isError(provider, IndependentChartUIProvider.CURRENT_API_LEVEL, simplify.getPluginName()) || !containsChart(plotID)) { |
|
|
|
if (PluginCollector.getCollector().isError(provider, IndependentChartUIProvider.CURRENT_API_LEVEL, simplify.getPluginName()) || !containsChart(plotID)) { |
|
|
|
PluginMessage.remindUpdate(className); |
|
|
|
PluginMessage.remindUpdate(className); |
|
|
|
} else if (!chartTypeInterfaces.containsKey(plotID)) { |
|
|
|
} else { |
|
|
|
chartTypeInterfaces.put(plotID, provider); |
|
|
|
ChartTypeInterfaceManager.getInstance().addChartTypeInterface(provider, plotID); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (ClassNotFoundException e) { |
|
|
|
} catch (ClassNotFoundException e) { |
|
|
|
FRLogger.getLogger().error("class not found:" + e.getMessage()); |
|
|
|
FRLogger.getLogger().error("class not found:" + e.getMessage()); |
|
|
|