Package org.eclipse.emf.compare.provider
Class AdapterFactoryUtil
java.lang.Object
org.eclipse.emf.compare.provider.AdapterFactoryUtil
Deprecated.
Some utility methods to work with
AdapterFactory
.-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getImage
(AdapterFactory adapterFactory, Object object) Deprecated.Returns the image of the givenobject
by adapting it toIItemLabelProvider
and asking for itsimage
.static Object
getStyledText
(AdapterFactory adapterFactory, Object object) Deprecated.Returns the StyledText for the given object and the given adapter factory.static String
getText
(AdapterFactory adapterFactory, Object object) Deprecated.
-
Method Details
-
getText
Deprecated.Returns the text of the givenobject
by adapting it toIItemLabelProvider
and asking for itstext
. Returns null ifobject
is 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
- ifadapterFactory
is null.
-
getImage
Deprecated.Returns the image of the givenobject
by adapting it toIItemLabelProvider
and asking for itsimage
. Returns null ifobject
is 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
- ifadapterFactory
is null.
-
getStyledText
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
-
AdapterFactoryItemDelegator
instead.