|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWorkbenchResourceHelperBase
org.eclipse.stp.core.infrastructure.emf.WorkbenchResourceHelper
public class WorkbenchResourceHelper
Constructor Summary | |
---|---|
WorkbenchResourceHelper()
|
Method Summary | |
---|---|
static void |
cacheSynchronizationStamp(ReferencedResource refResource)
Method cacheSynchronizationStamp. |
static long |
computeModificationStamp(ReferencedResource resource)
|
static EMFWorkbenchContextBase |
createEMFContext(IProject aProject,
IEMFContextContributor contributor)
Return a new or existing context base on aProject . |
static void |
deleteResource(Resource aResource)
Delete |
static IFile |
getFile(ReferencedResource res)
Return the underlying IFile for the resource if one exists. |
static Resource |
getOrCreateResource(URI uri,
ResourceSet set)
Get or load a cached Resource or create one if it is not found. |
static IFile |
getPlatformFile(URI uri)
Return the IFile for the uri within the Workspace. |
static IProject |
getProject(Resource res)
|
static long |
getSynchronizationStamp(ReferencedResource res)
|
static void |
initializeFileAdapterFactory()
This is an internal method to be used by the plugin only |
static boolean |
isConsistent(ReferencedResource res)
|
static boolean |
isReferencedResource(Resource aResource)
|
static boolean |
saveResourceToFile(Resource aResource,
IFile aFile)
Deprecated. This api is no longer required. You should create a resource with the absolute path (platform:/resource/...). Upon save, the file will be saved to this location. |
static boolean |
saveResourceToFile(Resource aResource,
IFile aFile,
java.util.Map saveOptions)
Deprecated. This api is no longer required. You should create a resource with the absolute path (platform:/resource/...). Upon save, the file will be saved to this location. |
static void |
setSynhronizationStamp(ReferencedResource res,
long stamp)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkbenchResourceHelper()
Method Detail |
---|
public static void initializeFileAdapterFactory()
public static IFile getFile(ReferencedResource res)
public static long getSynchronizationStamp(ReferencedResource res)
public static void setSynhronizationStamp(ReferencedResource res, long stamp)
public static boolean isConsistent(ReferencedResource res)
public static void cacheSynchronizationStamp(ReferencedResource refResource)
r
- public static boolean isReferencedResource(Resource aResource)
public static long computeModificationStamp(ReferencedResource resource)
public static Resource getOrCreateResource(URI uri, ResourceSet set) throws WrappedException
WrappedException
public static IProject getProject(Resource res)
public static IFile getPlatformFile(URI uri)
uri
within the Workspace. This URI
is assumed to be absolute in the following format: platform:/resource/....
public static boolean saveResourceToFile(Resource aResource, IFile aFile) throws java.lang.Exception
aResource
within the IProject that it is currently residing but you do not want to
save it in the default output location. You should not use this api to
save a Resource to an existing file.
java.lang.Exception
public static boolean saveResourceToFile(Resource aResource, IFile aFile, java.util.Map saveOptions) throws java.lang.Exception
aResource
within the IProject that it is currently residing but you do not want to
save it in the default output location. You should not use this api to
save a Resource to an existing file.
java.lang.Exception
public static void deleteResource(Resource aResource) throws CoreException
CoreException
public static EMFWorkbenchContextBase createEMFContext(IProject aProject, IEMFContextContributor contributor)
aProject
. Allow
the contributor
to contribute to the new or existing nature
prior to returning.
aProject
- contributor
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |