org.eclipse.core.commands.operations.AbstractOperation Java Examples

The following examples show how to use org.eclipse.core.commands.operations.AbstractOperation. 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: DynamicWorkingSetUpdaterPDETest.java    From eclipse-extras with Eclipse Public License 1.0 5 votes vote down vote up
private IProject renameProjectTo( IProject project, String name ) throws ExecutionException {
  IProject result = project.getWorkspace().getRoot().getProject( name );
  IPath path = result.getFullPath();
  AbstractOperation operation = new MoveResourcesOperation( project, path, "Rename project" );
  operation.execute( new NullProgressMonitor(), null );
  renamedProjects.add( result );
  return result;
}