Package org.eclipse.dltk.internal.corext.refactoring.util

Examples of org.eclipse.dltk.internal.corext.refactoring.util.TextChangeManager


              new RefactoringStatus()); // TODO: non-CU matches
          // silently dropped
          RefactoringStatus status = Checks.validateModifiesFiles(
              getAllModifiedFiles(), null);
          if (status.hasFatalError())
            fChangeManager = new TextChangeManager();
        }
        // </workaround>

        composite
            .merge(new CompositeChange(
View Full Code Here


    private TextChangeManager createChangeManager(IProgressMonitor pm,
        RefactoringStatus status) throws ModelException {
      pm.beginTask("", 1); //$NON-NLS-1$
      try {
        if (!fUpdateReferences)
          return new TextChangeManager();

        // IScriptFolder packageDest= getDestinationAsScriptFolder();
        // if (DLTKCore.DEBUG) {
        // System.err.println("TODO: ReorgPolicyFactory Add
        // MoveCuUpdateCreator support..");
        // }
        // if (packageDest != null){
        // MoveCuUpdateCreator creator= new
        // MoveCuUpdateCreator(getCus(), packageDest);
        // return creator.createChangeManager(new SubProgressMonitor(pm,
        // 1), status);
        // } else
        return new TextChangeManager();
      } finally {
        pm.done();
      }
    }
View Full Code Here

      fDeleteModifications = new DeleteModifications();
      fDeleteModifications.delete(fResources);
      fDeleteModifications.delete(fScriptElements);
      List packageDeletes = fDeleteModifications.postProcess();

      TextChangeManager manager = new TextChangeManager();
      fDeleteChange = DeleteChangeCreator.createDeleteChange(manager,
          fResources, fScriptElements, getProcessorName(),
          packageDeletes);

      ResourceChangeChecker checker = (ResourceChangeChecker) context
          .getChecker(ResourceChangeChecker.class);
      IResourceChangeDescriptionFactory deltaFactory = checker
          .getDeltaFactory();
      fDeleteModifications.buildDelta(deltaFactory);
      IFile[] files = getBuildpathFiles();
      for (int i = 0; i < files.length; i++) {
        deltaFactory.change(files[i]);
      }
      files = ResourceUtil.getFiles(manager.getAllSourceModules());
      for (int i = 0; i < files.length; i++) {
        deltaFactory.change(files[i]);
      }
      return result;
    } catch (OperationCanceledException e) {
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.internal.corext.refactoring.util.TextChangeManager

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.