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); }