use of com.archimatetool.editor.views.tree.commands.SortFolderCommand in project archi by archimatetool.
the class SortFolderAction method run.
@Override
public void run() {
Object selected = getSelection().getFirstElement();
if (selected instanceof IFolder) {
IFolder folder = (IFolder) selected;
Command cmd = new SortFolderCommand(folder);
CommandStack commandStack = (CommandStack) folder.getAdapter(CommandStack.class);
commandStack.execute(cmd);
}
}
Aggregations