public class Resources extends Object
| Modifier and Type | Method and Description |
|---|---|
static IStatus |
checkInSync(IResource resource)
Checks if the given resource is in sync with the underlying file system.
|
static IStatus |
checkInSync(IResource[] resources)
Checks if the given resources are in sync with the underlying file
system.
|
static boolean |
containsOnlyNonProjects(IResource[] resources) |
static boolean |
containsOnlyProjects(IResource[] resources) |
static boolean |
isReadOnly(IResource resource) |
static IStatus |
makeCommittable(IResource[] resources,
Object context)
Makes the given resources committable.
|
static IStatus |
makeCommittable(IResource resource,
Object context)
Makes the given resource committable.
|
public static IStatus checkInSync(IResource resource)
resource - the resource to be checkedstatus.
isOK() returns true then the resource is in syncpublic static IStatus checkInSync(IResource[] resources)
resources - the resources to be checkedstatus.
isOK() returns true then the resources are in syncpublic static IStatus makeCommittable(IResource resource, Object context)
validateEdit for the given resource on IWorkspace.resource - the resource to be checkedcontext - the context passed to validateEditstatus.isOK() returns true then the resources are committable.IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object)public static IStatus makeCommittable(IResource[] resources, Object context)
validateEdit for a given file on
IWorkspace.resources - the resources to be checkedcontext - the context passed to validateEditstatus.
isOK() returns true then the add resources are
committableIWorkspace.validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object)public static boolean isReadOnly(IResource resource)
public static boolean containsOnlyNonProjects(IResource[] resources)
public static boolean containsOnlyProjects(IResource[] resources)
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.