Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Transaktion
Transaktion [message #164990] Tue, 11 December 2007 11:01 Go to next message
Eclipse UserFriend
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 13:34 Go to previous message
Eclipse UserFriend
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
Previous Topic:ocl validation
Next Topic:How to disable right click on figure
Goto Forum:
  


Current Time: Fri Sep 20 10:50:26 GMT 2024

Powered by FUDForum. Page generated in 0.03483 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top