Package org.eclipse.ltk.core.refactoring.participants

Examples of org.eclipse.ltk.core.refactoring.participants.MoveArguments


      // build full target path
      int segments = currentDirLinkTarget.getLocation().matchingFirstSegments(newTarget);
      newTarget = newTarget.append(currentDirLinkTarget.getLocation().removeFirstSegments(segments + 1));
      return newTarget;
    }else if(info.getArguments() instanceof MoveArguments){
      MoveArguments moveArguments = (MoveArguments) info.getArguments();
      IContainer currentDirLinkTarget = WGADesignStructureHelper.resolveDirLink(info.getFile());
      if(moveArguments.getDestination() instanceof IContainer){
        IContainer destinationContainer = (IContainer)moveArguments.getDestination();
       
        IPath newTarget = destinationContainer.getLocation().append(info.getElement().getName());   
       
        int segments = currentDirLinkTarget.getLocation().matchingFirstSegments(((IFolder)info.getElement()).getLocation());       
       
View Full Code Here

TOP

Related Classes of org.eclipse.ltk.core.refactoring.participants.MoveArguments

Copyright © 2018 www.massapicom. 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.