}
public void fillTransformerPresetCmb() {
Object selItem = transformerPresetCmb.getSelectedItem();
transformerPresetCmb.removeAllItems();
Transformer transformer = scriptProcessor.getTransformer();
if (transformer != null) {
if (transformer.getPresets().size() > 0) {
transformerPresetCmb.addItem("(restore defaults)");
}
for (Preset preset : transformer.getPresets()) {
transformerPresetCmb.addItem(preset.getName());
}
}
if (selItem != null) {
transformerPresetCmb.setSelectedItem(selItem);