Search in sources :

Example 1 with SetWidgetClassAction

use of org.csstudio.display.builder.editor.undo.SetWidgetClassAction in project org.csstudio.display.builder by kasemir.

the class WidgetClassBinding method submit.

private void submit() {
    updating = true;
    final String value = jfx_node.getValue();
    undo.execute(new SetWidgetClassAction(widget_property, value));
    for (Widget w : other) {
        final WidgetClassProperty other_prop = (WidgetClassProperty) w.getProperty(widget_property.getName());
        undo.execute(new SetWidgetClassAction(other_prop, value));
    }
    updating = false;
}
Also used : SetWidgetClassAction(org.csstudio.display.builder.editor.undo.SetWidgetClassAction) Widget(org.csstudio.display.builder.model.Widget) WidgetClassProperty(org.csstudio.display.builder.model.properties.WidgetClassProperty)

Aggregations

SetWidgetClassAction (org.csstudio.display.builder.editor.undo.SetWidgetClassAction)1 Widget (org.csstudio.display.builder.model.Widget)1 WidgetClassProperty (org.csstudio.display.builder.model.properties.WidgetClassProperty)1