1 12 package org.eclipse.core.resources; 13 14 import java.net.URI ; 15 import org.eclipse.core.runtime.*; 16 import org.eclipse.core.runtime.jobs.ISchedulingRule; 17 18 70 public interface IResource extends IAdaptable, ISchedulingRule { 71 72 76 77 83 public static final int FILE = 0x1; 84 85 91 public static final int FOLDER = 0x2; 92 93 99 public static final int PROJECT = 0x4; 100 101 107 public static final int ROOT = 0x8; 108 109 112 113 116 public static final int DEPTH_ZERO = 0; 117 118 121 public static final int DEPTH_ONE = 1; 122 123 127 public static final int DEPTH_INFINITE = 2; 128 129 132 133 140 public static final int FORCE = 0x1; 141 142 150 public static final int KEEP_HISTORY = 0x2; 151 152 168 public static final int ALWAYS_DELETE_PROJECT_CONTENT = 0x4; 169 170 186 public static final int NEVER_DELETE_PROJECT_CONTENT = 0x8; 187 188 196 public static final int ALLOW_MISSING_LOCAL = 0x10; 197 198 207 public static final int SHALLOW = 0x20; 208 209 217 public static final int AVOID_NATURE_CONFIG = 0x40; 218 219 228 public static final int BACKGROUND_REFRESH = 0x80; 229 230 240 public static final int REPLACE = 0x100; 241 242 249 public static final int CHECK_ANCESTORS = 0x200; 250 251 260 public static final int DERIVED = 0x400; 261 262 272 public static final int TEAM_PRIVATE = 0x800; 273 274 277 278 284 public static final int NULL_STAMP = -1; 285 286 300 public static final int NONE = 0; 301 302 355 public void accept(final IResourceProxyVisitor visitor, int memberFlags) throws CoreException; 356 357 376 public void accept(IResourceVisitor visitor) throws CoreException; 377 378 415 public void accept(IResourceVisitor visitor, int depth, boolean includePhantoms) throws CoreException; 416 417 477 public void accept(IResourceVisitor visitor, int depth, int memberFlags) throws CoreException; 478 479 488 public void clearHistory(IProgressMonitor monitor) throws CoreException; 489 490 534 public void copy(IPath destination, boolean force, IProgressMonitor monitor) throws CoreException; 535 536 658 public void copy(IPath destination, int updateFlags, IProgressMonitor monitor) throws CoreException; 659 660 699 public void copy(IProjectDescription description, boolean force, IProgressMonitor monitor) throws CoreException; 700 701 779 public void copy(IProjectDescription description, int updateFlags, IProgressMonitor monitor) throws CoreException; 780 781 796 public IMarker createMarker(String type) throws CoreException; 797 798 809 public IResourceProxy createProxy(); 810 811 845 public void delete(boolean force, IProgressMonitor monitor) throws CoreException; 846 847 952 public void delete(int updateFlags, IProgressMonitor monitor) throws CoreException; 953 954 979 public void deleteMarkers(String type, boolean includeSubtypes, int depth) throws CoreException; 980 981 993 public boolean equals(Object other); 994 995 1024 public boolean exists(); 1025 1026 1038 public IMarker findMarker(long id) throws CoreException; 1039 1040 1060 public IMarker[] findMarkers(String type, boolean includeSubtypes, int depth) throws CoreException; 1061 1062 1087 public int findMaxProblemSeverity(String type, boolean includeSubtypes, int depth) throws CoreException; 1088 1089 1107 public String getFileExtension(); 1108 1109 1135 public IPath getFullPath(); 1136 1137 1152 public long getLocalTimeStamp(); 1153 1154 1196 public IPath getLocation(); 1197 1198 1239 public URI getLocationURI(); 1240 1241 1251 public IMarker getMarker(long id); 1252 1253 1298 public long getModificationStamp(); 1299 1300 1317 public String getName(); 1318 1319 1335 public IContainer getParent(); 1336 1337 1352 public String getPersistentProperty(QualifiedName key) throws CoreException; 1353 1354 1369 public IProject getProject(); 1370 1371 1393 public IPath getProjectRelativePath(); 1394 1395 1417 public IPath getRawLocation(); 1418 1419 1440 public URI getRawLocationURI(); 1441 1442 1475 public ResourceAttributes getResourceAttributes(); 1476 1477 1492 public Object getSessionProperty(QualifiedName key) throws CoreException; 1493 1494 1517 public int getType(); 1518 1519 1528 public IWorkspace getWorkspace(); 1529 1530 1541 public boolean isAccessible(); 1542 1543 1552 public boolean isDerived(); 1553 1554 1574 public boolean isLocal(int depth); 1575 1576 1590 public boolean isLinked(); 1591 1592 1620 public boolean isLinked(int options); 1621 1622 1646 public boolean isPhantom(); 1647 1648 1655 public boolean isReadOnly(); 1656 1657 1691 public boolean isSynchronized(int depth); 1692 1693 1702 public boolean isTeamPrivateMember(); 1703 1704 1754 public void move(IPath destination, boolean force, IProgressMonitor monitor) throws CoreException; 1755 1756 1884 public void move(IPath destination, int updateFlags, IProgressMonitor monitor) throws CoreException; 1885 1886 1932 public void move(IProjectDescription description, boolean force, boolean keepHistory, IProgressMonitor monitor) throws CoreException; 1933 1934 2052 public void move(IProjectDescription description, int updateFlags, IProgressMonitor monitor) throws CoreException; 2053 2054 2091 public void refreshLocal(int depth, IProgressMonitor monitor) throws CoreException; 2092 2093 2125 public void revertModificationStamp(long value) throws CoreException; 2126 2127 2172 public void setDerived(boolean isDerived) throws CoreException; 2173 2174 2205 public void setLocal(boolean flag, int depth, IProgressMonitor monitor) throws CoreException; 2206 2207 2227 public long setLocalTimeStamp(long value) throws CoreException; 2228 2229 2260 public void setPersistentProperty(QualifiedName key, String value) throws CoreException; 2261 2262 2269 public void setReadOnly(boolean readOnly); 2270 2271 2298 void setResourceAttributes(ResourceAttributes attributes) throws CoreException; 2299 2300 2330 public void setSessionProperty(QualifiedName key, Object value) throws CoreException; 2331 2332 2367 public void setTeamPrivateMember(boolean isTeamPrivate) throws CoreException; 2368 2369 2399 public void touch(IProgressMonitor monitor) throws CoreException; 2400} 2401 | Popular Tags |