Пример #1
0
  /**
   * Creates the change for the move action. The change can be a simple change (the move itslef) or
   * a more complex change (including references update and includes in the file itself) depending
   * on the user selection (update references checkbox)
   *
   * @param pm - progress monitor
   * @param rootChange
   * @return the root change after the additions
   * @throws OperationCanceledException
   */
  public Change createChange(IProgressMonitor pm, CompositeChange rootChange)
      throws CoreException, OperationCanceledException {
    fMainDestinationPath = fProcessor.getDestination().getFullPath();
    fProcessor.getSourceSelection();

    if (!fProcessor.getUpdateReferences()) {
      return createSimpleMoveChange(pm, rootChange);
    }
    return createReferenceUpdatingMoveChange(pm, rootChange);
  }