Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


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


java.lang.Object
  extended by 

org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider
      extended by 
org.eclipse.emf.transaction.ui.provider.TransactionalAdapterFactoryLabelProvider
All Implemented Interfaces:
INotifyChangedListener, IBaseLabelProvider, ILabelProvider, ITableLabelProvider

public class TransactionalAdapterFactoryLabelProvider
extends AdapterFactoryLabelProvider

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
AdapterFactoryLabelProvider.ColorProvider, AdapterFactoryLabelProvider.FontAndColorProvider, 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, 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
<T> T
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

TransactionalAdapterFactoryLabelProvider

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

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

run

protected <T> T run(
RunnableWithResult<? extends T> run)
Runs the specified runnable in the editing domain, with interrupt handling.

Type Parameters:
T - the result type of the runnable
Parameters:
run - the runnable to run
Returns:
its result, or null on interrupt

getColumnImage

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

Specified by:
getColumnImage in interface ITableLabelProvider
Overrides:
getColumnImage in class AdapterFactoryLabelProvider

getColumnText

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

Specified by:
getColumnText in interface ITableLabelProvider
Overrides:
getColumnText in class AdapterFactoryLabelProvider

getDefaultImage

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

Overrides:
getDefaultImage in class AdapterFactoryLabelProvider

getImage

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

Specified by:
getImage in interface ILabelProvider
Overrides:
getImage in class AdapterFactoryLabelProvider

getImageFromObject

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

Overrides:
getImageFromObject in class AdapterFactoryLabelProvider

getText

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

Specified by:
getText in interface ILabelProvider
Overrides:
getText in class AdapterFactoryLabelProvider

isLabelProperty

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

Specified by:
isLabelProperty in interface IBaseLabelProvider
Overrides:
isLabelProperty in class AdapterFactoryLabelProvider

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


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire