use of com.sldeditor.create.NewSLDPanel in project sldeditor by robward-scisys.
the class SLDEditor method chooseNewSLD.
/**
* Choose new sld.
*/
@Override
public void chooseNewSLD() {
NewSLDPanel panel = new NewSLDPanel();
List<SLDDataInterface> newSLDList = panel.showDialog(Controller.getInstance().getFrame());
if (newSLDList != null) {
SelectedFiles selectedFiles = new SelectedFiles();
selectedFiles.setSldData(newSLDList);
if (loadSLDString(selectedFiles)) {
uiMgr.populateUI(1);
}
}
}
Aggregations