Bug 123496 [IDE] Use operation validation API for IDE actions
We should use the Resources/Core operation validation API in the IDE actions for manipulating resources.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/MoveProjectAction.java
ProjectLocationMoveDialog dialog = new ProjectLocationMoveDialog(shell,
				project);
		dialog.setTitle(IDEWorkbenchMessages.MoveProjectAction_moveTitle);
		dialog.open();
		return dialog.getResult();
	}
	/**
	 * Implementation of method defined on <code>IAction</code>.
	 */
	public void run() {
		errorStatus = null;
		IProject project = (IProject) getSelectedResources().get(0);
		
		Object[] destinationPaths = queryDestinationParameters(project);
		if (destinationPaths == null)
			return;
		String projectName = (String) destinationPaths[0];
		IPath newLocation = new Path((String) destinationPaths[1]);
		boolean completed = performMove(project, projectName, newLocation);
		if (!completed) 
			return; 
		
		if (errorStatus != null) {
			ErrorDialog
					.openError(this.shell, PROBLEMS_TITLE, null, errorStatus);
			errorStatus = null;
		}
	}
}