Examples of moveProject()


Examples of org.eclipse.core.resources.team.IMoveDeleteHook.moveProject()

          return false;
        //we are deleting the source project so notify.
        workspace.broadcastEvent(LifecycleEvent.newEvent(LifecycleEvent.PRE_PROJECT_MOVE, this, destination, updateFlags));
        IProjectDescription description = project.getDescription();
        description.setName(destination.getName());
        if (!hook.moveProject(tree, project, description, updateFlags, Policy.subMonitorFor(monitor, Policy.opWork / 2)))
          tree.standardMoveProject(project, description, updateFlags, Policy.subMonitorFor(monitor, Policy.opWork));
        break;
      case IResource.ROOT :
        String msg = Messages.resources_moveRoot;
        throw new ResourceException(new ResourceStatus(IResourceStatus.INVALID_VALUE, getFullPath(), msg));
View Full Code Here

Examples of org.eclipse.core.resources.team.IMoveDeleteHook.moveProject()

        IMoveDeleteHook hook = workspace.getMoveDeleteHook();
        workspace.broadcastEvent(LifecycleEvent.newEvent(LifecycleEvent.PRE_PROJECT_MOVE, this, destination, updateFlags));
        int depth = 0;
        try {
          depth = workManager.beginUnprotected();
          if (!hook.moveProject(tree, this, description, updateFlags, Policy.subMonitorFor(monitor, Policy.opWork / 2)))
            tree.standardMoveProject(this, description, updateFlags, Policy.subMonitorFor(monitor, Policy.opWork / 2));
        } finally {
          workManager.endUnprotected(depth);
        }
        // Invalidate the tree for further use by clients.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.