Method Summary |
|
public static IStructuredSelection | adaptSelection(IStructuredSelection selection, String objectClass) Adapts a selection to the given objectClass considering the Legacy resource
support. |
public static Object | getAdaptedContributorResource(Object object) Returns the adapted resource using the IContributorResourceAdapter
registered for the given object. |
public static Object | getAdaptedContributorResourceMapping(Object object) Returns the adapted resource mapping using the IContributorResourceAdapter2
registered for the given object. |
public static Object | getAdaptedResource(Object element) Adapt the given element to an IResource using the following
search order:
- using the IContributorResourceAdapter registered for the given element, or
- directly asking the element if it adapts.
|
public static Object | getAdaptedResourceMapping(Object element) Adapt the given element to an ResourceMapping using the following
search order:
- using the IContributorResourceAdapter2 registered for the given element, or
- directly asking the element if it adapts.
|
public static Object | getAdapter(Object element, String objectClass) Adapts an object to a specified objectClass considering the Legacy resource
support. |
public static Class | getDefaultContributorResourceAdapterClass() Returns DefaultContributorResourceAdapter.class or
null if the class is not available. |
public static Class | getFileClass() Returns IFile.class or null if the
class is not available. |
public static Class | getIContributorResourceAdapter2Class() Returns IContributorResourceAdapter2.class or
null if the class is not available. |
public static Class | getIContributorResourceAdapterClass() Returns IContributorResourceAdapter.class or
null if the class is not available. |
public static Class | getResourceClass() Returns IResource.class or null if the
class is not available. |
public static Class | getResourceMappingClass() Returns ResourceMapping.class or null if the
class is not available. |
public static boolean | isResourceMappingType(String objectClassName) Returns true if the provided type name is an
"org.eclipse.core.resources.mapping.ResourceMapping" , and false otherwise. |
public static boolean | isResourceType(String objectClassName) Returns true if the provided type name is an
IResource , and false otherwise. |