Package org.eclipse.ui.ide.undo

Examples of org.eclipse.ui.ide.undo.ResourceDescription


      saveCUnitIfNeeded(unit, new SubProgressMonitor(pm, 1));
      // element.delete(false, new SubProgressMonitor(pm, 1));

      IResource resource = unit.getResource();
      if (resource != null) {
        ResourceDescription resourceDescription = ResourceDescription
            .fromResource(resource);
        element.delete(false, new SubProgressMonitor(pm, 1));
        resourceDescription.recordStateFromHistory(resource,
            new SubProgressMonitor(pm, 1));
        return new UndoDeleteResourceChange(resourceDescription);
      } else {
        element.delete(false, pm);
      }
View Full Code Here


    DynamicValidationStateChange result = (DynamicValidationStateChange) super
        .perform(new SubProgressMonitor(pm, count));

    for (int i = 0; i < fPackageDeletes.size(); i++) {
      IResource resource = (IResource) fPackageDeletes.get(i);
      ResourceDescription resourceDescription = packageDeleteDescriptions[i];
      resourceDescription.recordStateFromHistory(resource,
          new SubProgressMonitor(pm, 1));
      result.add(new UndoDeleteResourceChange(resourceDescription));
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.ide.undo.ResourceDescription

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.