|
||||||||||
| 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.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider |
|---|
adapterFactory, labelProviderListeners |
| Constructor Summary | |
|---|---|
TransactionalAdapterFactoryLabelProvider(TransactionalEditingDomain domain,
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 Object |
run(RunnableWithResult 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, notifyChanged, removeListener, setAdapterFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionalAdapterFactoryLabelProvider(TransactionalEditingDomain domain,
AdapterFactory adapterFactory)
domain - my editing domainadapterFactory - the adapter factory| Method Detail |
|---|
protected Object run(RunnableWithResult run)
run - the runnable to run
null on interrupt
public Image getColumnImage(Object object,
int columnIndex)
getColumnImage in interface ITableLabelProvidergetColumnImage in class AdapterFactoryLabelProvider
public String getColumnText(Object object,
int columnIndex)
getColumnText in interface ITableLabelProvidergetColumnText in class AdapterFactoryLabelProviderprotected Image getDefaultImage(Object object)
getDefaultImage in class AdapterFactoryLabelProviderpublic Image getImage(Object object)
getImage in interface ILabelProvidergetImage in class AdapterFactoryLabelProviderprotected Image getImageFromObject(Object object)
getImageFromObject in class AdapterFactoryLabelProviderpublic String getText(Object object)
getText in interface ILabelProvidergetText in class AdapterFactoryLabelProvider
public boolean isLabelProperty(Object object,
String id)
isLabelProperty in interface IBaseLabelProviderisLabelProperty in class 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 | |||||||||