|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider
org.eclipse.emf.transaction.ui.provider.TransactionalAdapterFactoryContentProvider
Automatically wraps any potential access to model objects in read transactions.
Note that this is not necessary in the case of the
AdapterFactoryContentProvider.notifyChanged(Notification)
method because this will always be called in a transaction context.
Nested Class Summary |
---|
Nested classes inherited from class org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider |
---|
org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider.ViewerRefresh |
Field Summary |
---|
Fields inherited from class org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider |
---|
adapterFactory, viewer, viewerRefresh |
Constructor Summary | |
---|---|
TransactionalAdapterFactoryContentProvider(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 | |
---|---|
protected org.eclipse.ui.views.properties.IPropertySource |
createPropertySource(java.lang.Object object,
org.eclipse.emf.edit.provider.IItemPropertySource itemPropertySource)
Extends the inherited implementation by running in a read-only transaction. |
java.lang.Object[] |
getChildren(java.lang.Object object)
Extends the inherited implementation by running in a read-only transaction. |
java.lang.Object[] |
getElements(java.lang.Object object)
Extends the inherited implementation by running in a read-only transaction. |
java.lang.Object |
getParent(java.lang.Object object)
Extends the inherited implementation by running in a read-only transaction. |
org.eclipse.ui.views.properties.IPropertySource |
getPropertySource(java.lang.Object object)
Extends the inherited implementation by running in a read-only transaction. |
boolean |
hasChildren(java.lang.Object object)
Extends the inherited implementation by running in a read-only transaction. |
void |
inputChanged(org.eclipse.jface.viewers.Viewer vwr,
java.lang.Object oldInput,
java.lang.Object newInput)
Extends the inherited implementation by running in a read-only transaction. |
protected java.lang.Object |
run(RunnableWithResult run)
Runs the specified runnable in the editing domain, with interrupt handling. |
protected org.eclipse.ui.views.properties.IPropertySource |
wrap(org.eclipse.ui.views.properties.IPropertySource propertySource)
Wraps a property source in a transactional property source. |
Methods inherited from class org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider |
---|
dispose, getAdapterFactory, notifyChanged, setAdapterFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransactionalAdapterFactoryContentProvider(TransactionalEditingDomain domain, org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
domain
- my editing domainadapterFactory
- the adapter factoryMethod Detail |
protected java.lang.Object run(RunnableWithResult run)
run
- the runnable to run
null
on interruptprotected org.eclipse.ui.views.properties.IPropertySource createPropertySource(java.lang.Object object, org.eclipse.emf.edit.provider.IItemPropertySource itemPropertySource)
public java.lang.Object[] getChildren(java.lang.Object object)
public java.lang.Object[] getElements(java.lang.Object object)
public java.lang.Object getParent(java.lang.Object object)
public org.eclipse.ui.views.properties.IPropertySource getPropertySource(java.lang.Object object)
public boolean hasChildren(java.lang.Object object)
public void inputChanged(org.eclipse.jface.viewers.Viewer vwr, java.lang.Object oldInput, java.lang.Object newInput)
protected org.eclipse.ui.views.properties.IPropertySource wrap(org.eclipse.ui.views.properties.IPropertySource propertySource)
propertySource
- the property source to wrap
|
Copyright 2002, 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |