org.eclipse.emf.transaction.ui.provider
Class TransactionalAdapterFactoryLabelProvider

java.lang.Object
  extended byorg.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
      extended byorg.eclipse.emf.transaction.ui.provider.TransactionalAdapterFactoryLabelProvider
All Implemented Interfaces:
org.eclipse.jface.viewers.IBaseLabelProvider, org.eclipse.jface.viewers.ILabelProvider, org.eclipse.emf.edit.provider.INotifyChangedListener, org.eclipse.jface.viewers.ITableLabelProvider

public class TransactionalAdapterFactoryLabelProvider
extends org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider

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, 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
 org.eclipse.swt.graphics.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  org.eclipse.swt.graphics.Image getDefaultImage(Object object)
          Extends the inherited implementation by running in a read-only transaction.
 org.eclipse.swt.graphics.Image getImage(Object object)
          Extends the inherited implementation by running in a read-only transaction.
protected  org.eclipse.swt.graphics.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

TransactionalAdapterFactoryLabelProvider

public 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.

Parameters:
domain - my editing domain
adapterFactory - the adapter factory
Method Detail

run

protected Object run(RunnableWithResult run)
Runs the specified runnable in the editing domain, with interrupt handling.

Parameters:
run - the runnable to run
Returns:
its result, or null on interrupt

getColumnImage

public org.eclipse.swt.graphics.Image getColumnImage(Object object,
                                                     int columnIndex)
Extends the inherited implementation by running in a read-only transaction.


getColumnText

public String getColumnText(Object object,
                            int columnIndex)
Extends the inherited implementation by running in a read-only transaction.


getDefaultImage

protected org.eclipse.swt.graphics.Image getDefaultImage(Object object)
Extends the inherited implementation by running in a read-only transaction.


getImage

public org.eclipse.swt.graphics.Image getImage(Object object)
Extends the inherited implementation by running in a read-only transaction.


getImageFromObject

protected org.eclipse.swt.graphics.Image getImageFromObject(Object object)
Extends the inherited implementation by running in a read-only transaction.


getText

public String getText(Object object)
Extends the inherited implementation by running in a read-only transaction.


isLabelProperty

public boolean isLabelProperty(Object object,
                               String id)
Extends the inherited implementation by running in a read-only transaction.


Copyright 2002, 2006 IBM Corporation and others.
All Rights Reserved.