Search in sources :

Example 1 with ChangeOrientationCommand

use of org.csstudio.opibuilder.commands.ChangeOrientationCommand in project yamcs-studio by yamcs.

the class ChangeOrientationAction method run.

@Override
public void run() {
    CompoundCommand compoundCommand = new CompoundCommand(orientationType.getLabel());
    for (AbstractWidgetModel widgetModel : getSelectedWidgetModels()) {
        compoundCommand.add(new ChangeOrientationCommand(widgetModel, orientationType));
    }
    execute(compoundCommand);
}
Also used : AbstractWidgetModel(org.csstudio.opibuilder.model.AbstractWidgetModel) ChangeOrientationCommand(org.csstudio.opibuilder.commands.ChangeOrientationCommand) CompoundCommand(org.eclipse.gef.commands.CompoundCommand)

Aggregations

ChangeOrientationCommand (org.csstudio.opibuilder.commands.ChangeOrientationCommand)1 AbstractWidgetModel (org.csstudio.opibuilder.model.AbstractWidgetModel)1 CompoundCommand (org.eclipse.gef.commands.CompoundCommand)1