use of com.intellij.ide.actions.SynchronizeAction in project intellij-community by JetBrains.
the class FileSystemTreeFactoryImpl method createDefaultFileSystemActions.
public DefaultActionGroup createDefaultFileSystemActions(FileSystemTree fileSystemTree) {
DefaultActionGroup group = new DefaultActionGroup();
final ActionManager actionManager = ActionManager.getInstance();
group.add(actionManager.getAction("FileChooser.GotoHome"));
group.add(actionManager.getAction("FileChooser.GotoProject"));
group.addSeparator();
group.add(actionManager.getAction("FileChooser.NewFolder"));
group.add(actionManager.getAction("FileChooser.Delete"));
group.addSeparator();
SynchronizeAction action1 = new SynchronizeAction();
AnAction original = actionManager.getAction(IdeActions.ACTION_SYNCHRONIZE);
action1.copyFrom(original);
action1.registerCustomShortcutSet(original.getShortcutSet(), fileSystemTree.getTree());
group.add(action1);
group.addSeparator();
group.add(actionManager.getAction("FileChooser.ShowHiddens"));
return group;
}
Aggregations