Browse Source

提升就图表级别,当做新图表

master
Fangjie Hu 8 years ago
parent
commit
5df5d10bf2
  1. 2
      designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUIWithAPILevel.java
  2. 2
      designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypePane.java

2
designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUIWithAPILevel.java

@ -15,7 +15,7 @@ import com.fr.general.ComparatorUtils;
* Created by Mitisky on 16/3/7. * Created by Mitisky on 16/3/7.
*/ */
public abstract class AbstractIndependentChartUIWithAPILevel implements IndependentChartUIProvider { public abstract class AbstractIndependentChartUIWithAPILevel implements IndependentChartUIProvider {
private static final int OLD_PLUGIN_LEVEL = -2; private static final int OLD_PLUGIN_LEVEL = 3;
@Override @Override
//以前的插件没有覆写这个方法,所以始终获取到-2,比当前level低,提示更新. //以前的插件没有覆写这个方法,所以始终获取到-2,比当前level低,提示更新.

2
designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypePane.java

@ -118,8 +118,6 @@ public class ChartTypePane extends AbstractChartAttrPane{
//这一步会替换plot //这一步会替换plot
((AbstractChartTypePane) cards.get(fcb.getRelatedSelectedIndex())).updateBean(chart); ((AbstractChartTypePane) cards.get(fcb.getRelatedSelectedIndex())).updateBean(chart);
String chartID = chart.getChartID();
Plot plot = chart.getPlot(); Plot plot = chart.getPlot();
if(plot != null){ if(plot != null){

Loading…
Cancel
Save