Search in sources :

Example 1 with MoveResourceAction

use of org.eclipse.ui.actions.MoveResourceAction in project translationstudio8 by heartsome.

the class RefactorActionGroup method makeActions.

protected void makeActions() {
    IShellProvider sp = new IShellProvider() {

        public Shell getShell() {
            return shell;
        }
    };
    moveAction = new MoveResourceAction(sp);
    moveAction.setText(WorkbenchNavigatorMessages.actions_RefactorActionGroup_moveAction);
    moveAction.setActionDefinitionId(IWorkbenchCommandConstants.FILE_MOVE);
    renameAction = new RenameResourceAndCloseEditorAction(sp, tree);
    renameAction.setText(WorkbenchNavigatorMessages.actions_RefactorActionGroup_renameAction);
    renameAction.setActionDefinitionId(IWorkbenchCommandConstants.FILE_RENAME);
}
Also used : IShellProvider(org.eclipse.jface.window.IShellProvider) MoveResourceAction(org.eclipse.ui.actions.MoveResourceAction)

Aggregations

IShellProvider (org.eclipse.jface.window.IShellProvider)1 MoveResourceAction (org.eclipse.ui.actions.MoveResourceAction)1