use of com.archimatetool.editor.tools.GenerateViewCommand in project archi by archimatetool.
the class GenerateViewAction method run.
@Override
public void run() {
List<IArchimateElement> selected = getValidSelectedObjects(getSelection());
if (!selected.isEmpty()) {
GenerateViewCommand command = new GenerateViewCommand(selected);
if (command.openDialog(Display.getCurrent().getActiveShell())) {
CommandStack commandStack = (CommandStack) ((IAdapter) selected.get(0)).getAdapter(CommandStack.class);
commandStack.execute(command);
}
}
}
Aggregations