org.eclipse.ui.actions.MoveResourceAction Java Examples

The following examples show how to use org.eclipse.ui.actions.MoveResourceAction. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RefactorActionGroup.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
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);
}
 
Example #2
Source File: RefactorActionGroup.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
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);
}
 
Example #3
Source File: MoveXdsResourceHandler.java    From xds-ide with Eclipse Public License 1.0 4 votes vote down vote up
public MoveXdsResourceHandler () {
    super();
    setAction(new MoveResourceAction(shellProvider));
}