more string builders 1

This commit is contained in:
honfika@gmail.com
2015-05-20 15:01:58 +02:00
parent 0670f0e36f
commit 18592b7a72
21 changed files with 357 additions and 294 deletions

View File

@@ -157,20 +157,20 @@ public class ExportDialog extends AppDialog {
}
private void saveConfig() {
String cfg = "";
StringBuilder cfg = new StringBuilder();
for (int i = 0; i < optionNames.length; i++) {
int selIndex = combos[i].getSelectedIndex();
Class c = optionClasses[i];
Object vals[] = c.getEnumConstants();
String key = optionNames[i] + "." + vals[selIndex].toString().toLowerCase();
if (i > 0) {
cfg += ",";
cfg.append(",");
}
cfg += key;
cfg.append(key);
}
Configuration.lastSelectedExportZoom.set(Double.parseDouble(zoomTextField.getText()) / 100);
Configuration.lastSelectedExportFormats.set(cfg);
Configuration.lastSelectedExportFormats.set(cfg.toString());
}
public ExportDialog(List<TreeItem> exportables) {