|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.transaction.ui.provider.TransactionalPropertySource
public class TransactionalPropertySource
A property source wrapper that calls its delegate in transactions of the appropriate kind. Note that transactions are not actually required for methods that do not access model objects.
Constructor Summary | |
---|---|
TransactionalPropertySource(TransactionalEditingDomain domain,
IPropertySource propertySource)
Initializes me with the editing domain in which I create transactions, and the property source that I delegate to. |
Method Summary | ||
---|---|---|
Object |
getEditableValue()
Delegates the my wrapped property source in the appropriate transaction. |
|
IPropertyDescriptor[] |
getPropertyDescriptors()
Delegates the my wrapped property source in the appropriate transaction. |
|
Object |
getPropertyValue(Object id)
Delegates the my wrapped property source in the appropriate transaction. |
|
boolean |
isPropertyResettable(Object id)
Delegates the my wrapped property source in the appropriate transaction. |
|
boolean |
isPropertySet(Object id)
Delegates the my wrapped property source in the appropriate transaction. |
|
void |
resetPropertyValue(Object id)
Delegates the my wrapped property source in the appropriate transaction. |
|
protected
|
run(RunnableWithResult<? extends T> run)
Runs the specified runnable in the editing domain, with interrupt handling. |
|
void |
setPropertyValue(Object id,
Object value)
Delegates directly to the wrapper property source, because it will use a command to perform the modification (which implicitly creates a read/write transaction). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionalPropertySource(TransactionalEditingDomain domain, IPropertySource propertySource)
domain
- my editing domainpropertySource
- my delegateMethod Detail |
---|
protected <T> T run(RunnableWithResult<? extends T> run)
T
- the result type of the runnablerun
- the runnable to run
null
on interruptpublic boolean isPropertyResettable(Object id)
isPropertyResettable
in interface IPropertySource2
public boolean isPropertySet(Object id)
isPropertySet
in interface IPropertySource
isPropertySet
in interface IPropertySource2
public Object getEditableValue()
getEditableValue
in interface IPropertySource
public IPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors
in interface IPropertySource
public Object getPropertyValue(Object id)
getPropertyValue
in interface IPropertySource
public void resetPropertyValue(Object id)
resetPropertyValue
in interface IPropertySource
public void setPropertyValue(Object id, Object value)
setPropertyValue
in interface IPropertySource
|
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 |