|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Object |
run(RunnableWithResult 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 delegate| Method Detail |
|---|
protected Object run(RunnableWithResult run)
run - the runnable to run
null on interruptpublic boolean isPropertyResettable(Object id)
isPropertyResettable in interface IPropertySource2public boolean isPropertySet(Object id)
isPropertySet in interface IPropertySourceisPropertySet in interface IPropertySource2public Object getEditableValue()
getEditableValue in interface IPropertySourcepublic IPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors in interface IPropertySourcepublic Object getPropertyValue(Object id)
getPropertyValue in interface IPropertySourcepublic 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 | |||||||||