|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
org.eclipse.emf.transaction.ui.provider.TransactionalAdapterFactoryLabelProvider
public class TransactionalAdapterFactoryLabelProvider
Automatically wraps any potential access to model objects in read transactions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider |
---|
org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider.ColorProvider, org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider.FontAndColorProvider, org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider.FontProvider |
Field Summary |
---|
Fields inherited from class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider |
---|
adapterFactory, defaultBackground, defaultFont, defaultForeground, isFireLabelUpdateNotifications, labelProviderListeners |
Constructor Summary | |
---|---|
TransactionalAdapterFactoryLabelProvider(TransactionalEditingDomain domain,
org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
Initializes me with the editing domain in which I create read transactions and that adapter factory that provides content providers. |
Method Summary | ||
---|---|---|
Image |
getColumnImage(Object object,
int columnIndex)
Extends the inherited implementation by running in a read-only transaction. |
|
String |
getColumnText(Object object,
int columnIndex)
Extends the inherited implementation by running in a read-only transaction. |
|
protected Image |
getDefaultImage(Object object)
Extends the inherited implementation by running in a read-only transaction. |
|
Image |
getImage(Object object)
Extends the inherited implementation by running in a read-only transaction. |
|
protected Image |
getImageFromObject(Object object)
Extends the inherited implementation by running in a read-only transaction. |
|
String |
getText(Object object)
Extends the inherited implementation by running in a read-only transaction. |
|
boolean |
isLabelProperty(Object object,
String id)
Extends the inherited implementation by running in a read-only transaction. |
|
protected
|
run(RunnableWithResult<? extends T> run)
Runs the specified runnable in the editing domain, with interrupt handling. |
Methods inherited from class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider |
---|
addListener, dispose, fireLabelProviderChanged, getAdapterFactory, getBackground, getBackground, getColorFromObject, getDefaultBackground, getDefaultFont, getDefaultForeground, getFont, getFont, getFontFromObject, getForeground, getForeground, isFireLabelUpdateNotifications, notifyChanged, removeListener, setAdapterFactory, setDefaultBackground, setDefaultFont, setDefaultForeground, setFireLabelUpdateNotifications |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionalAdapterFactoryLabelProvider(TransactionalEditingDomain domain, org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
domain
- my editing domainadapterFactory
- the adapter factoryMethod Detail |
---|
protected <T> T run(RunnableWithResult<? extends T> run)
T
- the result type of the runnablerun
- the runnable to run
null
on interruptpublic Image getColumnImage(Object object, int columnIndex)
getColumnImage
in interface ITableLabelProvider
getColumnImage
in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
public String getColumnText(Object object, int columnIndex)
getColumnText
in interface ITableLabelProvider
getColumnText
in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
protected Image getDefaultImage(Object object)
getDefaultImage
in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
public Image getImage(Object object)
getImage
in interface ILabelProvider
getImage
in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
protected Image getImageFromObject(Object object)
getImageFromObject
in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
public String getText(Object object)
getText
in interface ILabelProvider
getText
in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
public boolean isLabelProperty(Object object, String id)
isLabelProperty
in interface IBaseLabelProvider
isLabelProperty
in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |