|
||||||||||
| 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 factory| Method Detail |
|---|
protected <T> T run(RunnableWithResult<? extends T> run)
T - the result type of the runnablerun - the runnable to run
null on interrupt
public Image getColumnImage(Object object,
int columnIndex)
getColumnImage in interface ITableLabelProvidergetColumnImage in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
public String getColumnText(Object object,
int columnIndex)
getColumnText in interface ITableLabelProvidergetColumnText in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProviderprotected Image getDefaultImage(Object object)
getDefaultImage in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProviderpublic Image getImage(Object object)
getImage in interface ILabelProvidergetImage in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProviderprotected Image getImageFromObject(Object object)
getImageFromObject in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProviderpublic String getText(Object object)
getText in interface ILabelProvidergetText in class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
public boolean isLabelProperty(Object object,
String id)
isLabelProperty in interface IBaseLabelProviderisLabelProperty 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 | |||||||||