Class Resources
java.lang.Object
org.eclipse.ltk.core.refactoring.resource.Resources
- Since:
- 3.9
-
Method Summary
Modifier and TypeMethodDescriptionstatic IStatuscheckInSync(IResource resource) Checks if the given resource is in sync with the underlying file system.static IStatuscheckInSync(IResource[] resources) Checks if the given resources are in sync with the underlying file system.static booleancontainsOnlyNonProjects(IResource[] resources) static booleancontainsOnlyProjects(IResource[] resources) static booleanisReadOnly(IResource resource) static IStatusmakeCommittable(IResource[] resources, Object context) Makes the given resources committable.static IStatusmakeCommittable(IResource resource, Object context) Makes the given resource committable.
-
Method Details
-
checkInSync
Checks if the given resource is in sync with the underlying file system.- Parameters:
resource- the resource to be checked- Returns:
- IStatus status describing the check's result. If
status. isOK()returnstruethen the resource is in sync
-
checkInSync
Checks if the given resources are in sync with the underlying file system.- Parameters:
resources- the resources to be checked- Returns:
- IStatus status describing the check's result. If
status. isOK()returnstruethen the resources are in sync
-
makeCommittable
Makes the given resource committable. Committable means that it is writeable and that its content hasn't changed by callingvalidateEditfor the given resource onIWorkspace.- Parameters:
resource- the resource to be checkedcontext- the context passed tovalidateEdit- Returns:
- status describing the method's result. If
status.isOK()returnstruethen the resources are committable. - See Also:
-
makeCommittable
Makes the given resources committable. Committable means that all resources are writeable and that the content of the resources hasn't changed by callingvalidateEditfor a given file onIWorkspace.- Parameters:
resources- the resources to be checkedcontext- the context passed tovalidateEdit- Returns:
- IStatus status describing the method's result. If
status. isOK()returnstruethen the add resources are committable - See Also:
-
isReadOnly
-
containsOnlyNonProjects
-
containsOnlyProjects
-