Package org.eclipse.emf.compare.provider
Class AdapterFactoryUtil
- java.lang.Object
-
- org.eclipse.emf.compare.provider.AdapterFactoryUtil
-
@Deprecated public final class AdapterFactoryUtil extends Object
Deprecated.UseAdapterFactoryItemDelegatorinstead.Some utility methods to work withAdapterFactory.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ObjectgetImage(AdapterFactory adapterFactory, Object object)Deprecated.Returns the image of the givenobjectby adapting it toIItemLabelProviderand asking for itsimage.static ObjectgetStyledText(AdapterFactory adapterFactory, Object object)Deprecated.Returns the StyledText for the given object and the given adapter factory.static StringgetText(AdapterFactory adapterFactory, Object object)Deprecated.
-
-
-
Method Detail
-
getText
public static String getText(AdapterFactory adapterFactory, Object object)
Deprecated.Returns the text of the givenobjectby adapting it toIItemLabelProviderand asking for itstext. Returns null ifobjectis null.- Parameters:
adapterFactory- the adapter factory to adapt fromobject- the object from which we want a text- Returns:
- the text, or null if object is null.
- Throws:
NullPointerException- ifadapterFactoryis null.
-
getImage
public static Object getImage(AdapterFactory adapterFactory, Object object)
Deprecated.Returns the image of the givenobjectby adapting it toIItemLabelProviderand asking for itsimage. Returns null ifobjectis null.- Parameters:
adapterFactory- the adapter factory to adapt fromobject- the object from which we want a image- Returns:
- the image, or null if object is null.
- Throws:
NullPointerException- ifadapterFactoryis null.
-
getStyledText
public static Object getStyledText(AdapterFactory adapterFactory, Object object)
Deprecated.Returns the StyledText for the given object and the given adapter factory.- Parameters:
adapterFactory- the given adapter factory.object- the given object.- Returns:
- the StyledText as an Object.
- Since:
- 4.0
-
-