|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.carma.ui.adapter.ResourceUtils
public class ResourceUtils
Helper class for working with CARMA reference objects
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
| Method Summary | |
|---|---|
static CARMAResource |
getCarmaResource(java.lang.Object resource)
Helper method to map the given object to a CARMA resource. |
static ICARMAResourceReference |
getCarmaResourceReference(java.lang.Object resource)
Locates the CARMA resource reference for the given object |
static java.util.Collection<ICARMAResourceReference> |
getCarmaResourceReferences(java.util.Collection<?> resources)
Converts the list of objects to a list of CARMA resource references |
static java.util.Collection<ICARMAResourceReference> |
getCarmaResourceReferences(java.lang.Object[] resources)
Converts the arrat of objects to a list of CARMA resource references |
static boolean |
isManaged(java.lang.Object resource)
Determines if the given object is associated with (managed by) CARMA. |
static void |
manageReference(org.eclipse.core.runtime.IProgressMonitor monitor,
ICARMAResourceReference reference,
CARMAResource cResource)
Mark the given reference as "managed" (associated) with CARMA. |
static void |
removeMapping(org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.Object resource)
Removes the association between the resource and any CARMA resource referenced by the resource. |
static ICARMAResourceReference |
storeMapping(org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.Object resource,
CARMAResource cResource)
Stores the association between the object and the CARMA resource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COPYRIGHT
| Method Detail |
|---|
public static CARMAResource getCarmaResource(java.lang.Object resource)
resource - resource to find the associated CARMA resource for.
public static ICARMAResourceReference getCarmaResourceReference(java.lang.Object resource)
resource - the object to find the CARMA resource reference for
public static java.util.Collection<ICARMAResourceReference> getCarmaResourceReferences(java.util.Collection<?> resources)
resources - the list of objects to locate references for
getCarmaResourceReference(Object)public static java.util.Collection<ICARMAResourceReference> getCarmaResourceReferences(java.lang.Object[] resources)
resources - array of objects to locate references for
getCarmaResourceReferences(Collection)
public static ICARMAResourceReference storeMapping(org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.Object resource,
CARMAResource cResource)
throws org.eclipse.core.runtime.CoreException
monitor - monitor for the operationresource - the object to associate to a CARMA resourcecResource - the CARMA resource to associate to
org.eclipse.core.runtime.CoreException - the association could not be stored.
public static void manageReference(org.eclipse.core.runtime.IProgressMonitor monitor,
ICARMAResourceReference reference,
CARMAResource cResource)
throws org.eclipse.core.runtime.CoreException
monitor - monitor for the operationreference - the reference to mark as managedcResource - the resource to associate with the reference
org.eclipse.core.runtime.CoreException - the management operation could not be completedICARMAResourceReference.manage(IProgressMonitor)
public static void removeMapping(org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.Object resource)
throws org.eclipse.core.runtime.CoreException
monitor - monitor for the operationresource - the resource to remove the mapping from
org.eclipse.core.runtime.CoreException - the operation could not be completed.public static boolean isManaged(java.lang.Object resource)
resource - the object to determine the association status of
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||