|
|
Re: Databinding & Transactional Editing Domain [message #730959 is a reply to message #730946] |
Thu, 29 September 2011 15:26 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Matteo,
Are you using EMFEditObservables? That will certainly be necessary to
get this working, but I saw this question about using EMFEditObservables
verses EMFObservables in the WindowBuilder forum yesterday and that's
not currently supported. You might look into using EEF...
On 29/09/2011 8:18 AM, Matteo wrote:
> Hi,
>
> I'm creating an application that needs a transactional editing domain
> (leverages XText & Graphiti). In this application I need to create
> some data-entry page, allowing the user to inspect and change parts of
> the model. I would like to use the databinding functionality to link
> the JFace GUI elements with the underlying model. Since I'm not an
> expert in this field, I used the WindowBuilder wizards. Everything
> works correctly if the element is not inserted in any Resource (e.g.,
> in those wizards that provide the user with the ability to create new
> elements). However, as soon as the element is inserted in a resource
> (directly or by containment relationships) everything stop working and
> the following exception is thrown:
>
> java.lang.IllegalStateException: Cannot modify resource set without a
> write transaction children=[Status ERROR: org.eclipse.core.databinding
> code=0 An error occurred while setting the value.
> java.lang.IllegalStateException: Cannot modify resource set without a
> write transaction]
>
> For this reason, it seems to me that my basic databinding does not use
> any transactional editing domain... does anybody have successfully
> created a databinding with a transactional resource?
>
> Thanks for any help!
>
> --
> Matteo
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03301 seconds