Browse Source

chart demo image

master
fr_shine 7 years ago
parent
commit
e24156166b
  1. 15
      designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java

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

@ -70,6 +70,7 @@ import com.fr.plugin.observer.PluginEvent;
import com.fr.plugin.observer.PluginEventListener;
import com.fr.plugin.solution.closeable.CloseableContainedMap;
import com.fr.stable.ArrayUtils;
import com.fr.stable.EnvChangedListener;
import com.fr.stable.StringUtils;
import com.fr.stable.bridge.StableFactory;
import com.fr.stable.plugin.ExtraChartDesignClassManagerProvider;
@ -100,21 +101,13 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr
}
static {
GeneralContext.listenPluginRunningChanged(new PluginEventListener() {
GeneralContext.addEnvChangedListener(new EnvChangedListener() {
@Override
public void on(PluginEvent event) {
public void envChanged() {
//重新注册designModuleFactory
DesignModuleFactory.registerExtraWidgetOptions(initWidgetOption());
}
}, new PluginFilter() {
@Override
public boolean accept(PluginContext context) {
return context.contain(PluginModule.ExtraChartType);
}
});
}

Loading…
Cancel
Save