1 11 package org.eclipse.core.resources; 12 13 import org.eclipse.core.internal.watson.IElementComparator; 14 import org.eclipse.core.resources.mapping.IResourceChangeDescriptionFactory; 15 import org.eclipse.core.runtime.*; 16 17 31 public interface IResourceDelta extends IAdaptable { 32 33 36 37 42 public static final int NO_CHANGE = IElementComparator.K_NO_CHANGE; 43 44 51 public static final int ADDED = 0x1; 52 53 60 public static final int REMOVED = 0x2; 61 62 68 public static final int CHANGED = 0x4; 69 70 76 public static final int ADDED_PHANTOM = 0x8; 77 78 84 public static final int REMOVED_PHANTOM = 0x10; 85 86 92 public static final int ALL_WITH_PHANTOMS = CHANGED | ADDED | REMOVED | ADDED_PHANTOM | REMOVED_PHANTOM; 93 94 97 98 103 public static final int CONTENT = 0x100; 104 105 111 public static final int MOVED_FROM = 0x1000; 112 113 119 public static final int MOVED_TO = 0x2000; 120 121 129 public static final int COPIED_FROM = 0x800; 130 138 public static final int OPEN = 0x4000; 139 140 145 public static final int TYPE = 0x8000; 146 147 153 public static final int SYNC = 0x10000; 154 155 161 public static final int MARKERS = 0x20000; 162 163 170 public static final int REPLACED = 0x40000; 171 172 177 public static final int DESCRIPTION = 0x80000; 178 179 185 public static final int ENCODING = 0x100000; 186 187 206 public void accept(IResourceDeltaVisitor visitor) throws CoreException; 207 208 231 public void accept(IResourceDeltaVisitor visitor, boolean includePhantoms) throws CoreException; 232 233 269 public void accept(IResourceDeltaVisitor visitor, int memberFlags) throws CoreException; 270 271 288 public IResourceDelta findMember(IPath path); 289 290 309 public IResourceDelta[] getAffectedChildren(); 310 311 335 public IResourceDelta[] getAffectedChildren(int kindMask); 336 337 371 public IResourceDelta[] getAffectedChildren(int kindMask, int memberFlags); 372 373 448 public int getFlags(); 449 450 459 public IPath getFullPath(); 460 461 476 public int getKind(); 477 478 484 public IMarkerDelta[] getMarkerDeltas(); 485 486 499 public IPath getMovedFromPath(); 500 501 514 public IPath getMovedToPath(); 515 516 529 public IPath getProjectRelativePath(); 530 531 551 public IResource getResource(); 552 } 553 | Popular Tags |