org.eclipse.cdt.internal.ui.util
Class Resources

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.util.Resources

public class Resources
extends java.lang.Object


Method Summary
static org.eclipse.core.runtime.IStatus checkInSync(org.eclipse.core.resources.IResource resource)
          Checks if the given resource is in sync with the underlying file system.
static org.eclipse.core.runtime.IStatus checkInSync(org.eclipse.core.resources.IResource[] resources)
          Checks if the given resources are in sync with the underlying file system.
static java.lang.String[] getLocationOSStrings(org.eclipse.core.resources.IResource[] resources)
           
static org.eclipse.core.runtime.IStatus makeCommittable(org.eclipse.core.resources.IResource[] resources, java.lang.Object context)
          Makes the given resources committable.
static org.eclipse.core.runtime.IStatus makeCommittable(org.eclipse.core.resources.IResource resource, java.lang.Object context)
          Makes the given resource committable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkInSync

public static org.eclipse.core.runtime.IStatus checkInSync(org.eclipse.core.resources.IResource resource)
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() returns true then the resource is in sync

checkInSync

public static org.eclipse.core.runtime.IStatus checkInSync(org.eclipse.core.resources.IResource[] resources)
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() returns true then the resources are in sync

makeCommittable

public static org.eclipse.core.runtime.IStatus makeCommittable(org.eclipse.core.resources.IResource resource,
                                                               java.lang.Object context)
Makes the given resource committable. Committable means that it is writeable and that its content hasn't changed by calling validateEdit for the given resource on IWorkspace.

Parameters:
resource - the resource to be checked
context - the context passed to validateEdit
Returns:
status describing the method's result. If status.isOK() returns true then the resources are committable.
See Also:
IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object)

makeCommittable

public static org.eclipse.core.runtime.IStatus makeCommittable(org.eclipse.core.resources.IResource[] resources,
                                                               java.lang.Object context)
Makes the given resources committable. Committable means that all resources are writeable and that the content of the resources hasn't changed by calling validateEdit for a given file on IWorkspace.

Parameters:
resources - the resources to be checked
context - the context passed to validateEdit
Returns:
IStatus status describing the method's result. If status. isOK() returns true then the add resources are committable
See Also:
IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object)

getLocationOSStrings

public static java.lang.String[] getLocationOSStrings(org.eclipse.core.resources.IResource[] resources)