Transaktion [message #164990] |
Tue, 11 December 2007 06:01  |
Eclipse User |
|
|
|
Originally posted by: juergen.sterr.brain-child.de
Hallo!
If I use the set & get methods from Model impl I have get a transaktion
error.
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
DbModelPackage.TEXT_FIELD__SIZE, oldSize, size, !oldSizeESet));
I delete this and it works.
How I can use a transaktion ?
Thanks
Jürgen
|
|
|
Re: Transaktion [message #165053 is a reply to message #164990] |
Tue, 11 December 2007 08:34  |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Jürgen,
Don't delete that eNotify(...) call. Doing so will surely break any
applications that use your model.
To get started with transactions, see the documentation (in the Eclipse
Helper Viewer) that is included in the EMF Transaction and GMF SDKs. For a
GMF context, see, particularly, the
Programmer's Guide / Working with EMF Operations
topic in the "EMF Model Transaction Developer Guide" and the
Programmer's Guide / Runtime / Command Framework
topic in the "Graphical Modeling Framework (GMF) Developer Guide".
HTH,
Christian
Jürgen Sterr wrote:
> Hallo!
>
>
> If I use the set & get methods from Model impl I have get a transaktion
> error.
>
> if (eNotificationRequired())
> eNotify(new ENotificationImpl(this, Notification.SET,
> DbModelPackage.TEXT_FIELD__SIZE, oldSize, size, !oldSizeESet));
>
> I delete this and it works.
>
>
> How I can use a transaktion ?
>
>
> Thanks
> Jürgen
|
|
|
Powered by
FUDForum. Page generated in 0.02674 seconds