use of org.csstudio.display.builder.editor.undo.UnGroupWidgetsAction in project org.csstudio.display.builder by kasemir.
the class RemoveGroupAction method run.
@Override
public void run() {
editor.getWidgetSelectionHandler().clear();
// Group's children list will be empty, create copy to select la
final List<Widget> widgets = new ArrayList<>(group.runtimeChildren().getValue());
final UndoableActionManager undo = editor.getUndoableActionManager();
undo.execute(new UnGroupWidgetsAction(group));
editor.getWidgetSelectionHandler().setSelection(widgets);
}
Aggregations