|
|
|
@ -97,25 +97,16 @@ public class ChartPropertyPane extends BaseChartPropertyPane {
|
|
|
|
|
* @param ePane 面板 |
|
|
|
|
*/ |
|
|
|
|
public void populateChartPropertyPane(ChartCollection collection, TargetComponent<?> ePane) { |
|
|
|
|
new SwingWorker<Void, Void>() { |
|
|
|
|
@Override |
|
|
|
|
protected Void doInBackground() throws Exception { |
|
|
|
|
GEOJSONHelper.getInstance(); |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
@Override |
|
|
|
|
protected void done() { |
|
|
|
|
String chartID = collection.getSelectedChartProvider(ChartProvider.class).getID(); |
|
|
|
|
updateChartEditPane(collection.getSelectedChartProvider(ChartProvider.class).getID()); |
|
|
|
|
setSupportCellData(true); |
|
|
|
|
container.setEPane(ePane); |
|
|
|
|
if (ChartTypeManager.getInstance().chartExit(chartID)) { |
|
|
|
|
chartEditPane.populate(collection); |
|
|
|
|
} else { |
|
|
|
|
GUICoreUtils.setEnabled(chartEditPane, false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}.execute(); |
|
|
|
|
String chartID = collection.getSelectedChartProvider(ChartProvider.class).getID(); |
|
|
|
|
updateChartEditPane(collection.getSelectedChartProvider(ChartProvider.class).getID()); |
|
|
|
|
setSupportCellData(true); |
|
|
|
|
this.container.setEPane(ePane); |
|
|
|
|
|
|
|
|
|
if (ChartTypeManager.getInstance().chartExit(chartID)) { |
|
|
|
|
chartEditPane.populate(collection); |
|
|
|
|
} else { |
|
|
|
|
GUICoreUtils.setEnabled(chartEditPane, false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|