Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Any plan on multiple page editor?
Any plan on multiple page editor? [message #156725] Tue, 23 October 2007 03:43 Go to next message
Eclipse UserFriend
Originally posted by: heinz.haeberle.smart-gmbh.de

There is a old posting about that topic and I wonder if anything has
changed since then.
Or maybe there some new ideas about that.

< http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg03099.html>
Re: Any plan on multiple page editor? [message #156757 is a reply to message #156725] Tue, 23 October 2007 05:16 Go to previous messageGo to next message
Eclipse UserFriend
Hello Heinz,

> There is a old posting about that topic and I wonder if anything has
> changed since then. Or maybe there some new ideas about that.
Well, I've implemented my editor. :-) Now I can try to provide you with some
hints so you can point me to the place where are you now and problems you
are facing.

In addition there is an article "Integrating EMF and GMF generated editors"
proposed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=189399. This article
is about integration of EMF and GMF editors but in general it uses EMF-generated
multipage editor to place additional "diagram" page there. So, I think you
can find some tricks there as well. I suppose this article to be changed
in near future, so you can watch corresponding request.

-----------------
Alex Shatalin
Re: Any plan on multiple page editor? [message #156781 is a reply to message #156757] Tue, 23 October 2007 08:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: NOSPAM.xyz.com

Hi, I am dealing with the same task.
Would you please share with us your experiences
about what is better: single or multiple
TransactionalEditingDomain s / ResourceSet s for
each page in the MPE?


"Alex Shatalin" <vano@borland.com> wrote in message
news:3c3172e6196238c9e37d3f294678@news.eclipse.org...
> Hello Heinz,
>
>> There is a old posting about that topic and I wonder if anything has
>> changed since then. Or maybe there some new ideas about that.
> Well, I've implemented my editor. :-) Now I can try to provide you with
> some hints so you can point me to the place where are you now and problems
> you are facing.
> In addition there is an article "Integrating EMF and GMF generated
> editors" proposed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=189399.
> This article is about integration of EMF and GMF editors but in general it
> uses EMF-generated multipage editor to place additional "diagram" page
> there. So, I think you can find some tricks there as well. I suppose this
> article to be changed in near future, so you can watch corresponding
> request.
>
> -----------------
> Alex Shatalin
>
>
Re: Any plan on multiple page editor? [message #156789 is a reply to message #156781] Tue, 23 October 2007 08:52 Go to previous messageGo to next message
Eclipse UserFriend
Hello Theo,

> about what is better: single or multiple
> TransactionalEditingDomain s / ResourceSet s for
Single one. Otherwise you have to take care on synchronizing different EditingDomians/ResourceSets
contents in the scope of same editor (editing buffer).

My suggestion is: Always use one EditignDomain/ResourceSet instance for one
editor instance (even if this editor is multipage).

If you are opening several instances of the same editor/different editors
– use own EditingDomain for each instance too. If these editors are modifying
same underlying model – then you have to take care on synchronization (partly
done by GMF-generated code).

-----------------
Alex Shatalin
Re: Any plan on multiple page editor? [message #157571 is a reply to message #156789] Tue, 30 October 2007 05:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Alex Shatalin a écrit :
> Hello Theo,
>
>> about what is better: single or multiple
>> TransactionalEditingDomain s / ResourceSet s for
> Single one. Otherwise you have to take care on synchronizing different
> EditingDomians/ResourceSets contents in the scope of same editor
> (editing buffer).
>
> My suggestion is: Always use one EditignDomain/ResourceSet instance for
> one editor instance (even if this editor is multipage).
> If you are opening several instances of the same editor/different
> editors – use own EditingDomain for each instance too. If these editors
> are modifying same underlying model – then you have to take care on
> synchronization (partly done by GMF-generated code).
>
> -----------------
> Alex Shatalin
>
>
Does it exist an example to do this task ?
I'd like to use GMF2 for a development but a multi page (tabbed) editor
is absolutely needed.

Thanks for your help...
Regards,

Benjamin.
Re: Any plan on multiple page editor? [message #157579 is a reply to message #156789] Tue, 30 October 2007 05:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Alex Shatalin a écrit :
> Hello Theo,
>
>> about what is better: single or multiple
>> TransactionalEditingDomain s / ResourceSet s for
> Single one. Otherwise you have to take care on synchronizing different
> EditingDomians/ResourceSets contents in the scope of same editor
> (editing buffer).
>
> My suggestion is: Always use one EditignDomain/ResourceSet instance for
> one editor instance (even if this editor is multipage).
> If you are opening several instances of the same editor/different
> editors – use own EditingDomain for each instance too. If these editors
> are modifying same underlying model – then you have to take care on
> synchronization (partly done by GMF-generated code).
>
> -----------------
> Alex Shatalin
>
>
Does it exist an example to do this task ?
I'd like to use GMF2 for a development but a multi page (tabbed) editor
is absolutely needed.

Thanks for your help...
Regards,

Benjamin.
Re: Any plan on multiple page editor? [message #157595 is a reply to message #156789] Tue, 30 October 2007 07:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Alex Shatalin wrote:
> If these editors
> are modifying same underlying model – then you have to take care on
> synchronization (partly done by GMF-generated code).

This is a real headache for me. Synchronization works "out-of-the-box"
for everything except for the feature label (ex: a Books name). Any tips
here?

> If you are opening several instances of the same editor/different
> editors – use own EditingDomain for each instance too.

Do you have any experience with copying elements between same
editor/different editors?


Best Regards,

Tomas Zijdemans
Re: Any plan on multiple page editor? [message #157764 is a reply to message #157595] Tue, 30 October 2007 15:15 Go to previous message
Eclipse UserFriend
Hello Tomas,

> This is a real headache for me. Synchronization works "out-of-the-box"
> for everything except for the feature label (ex: a Books name). Any
> tips here?
Well, try to debug generated DocumentProvider to see the reason why corresponding
property is not synchronized..

> Do you have any experience with copying elements between same
> editor/different editors?
GMF copy/paste functionality works well if your model is loaded with GMFResourceFactory
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=129533). In addition we are
going to generate copy/paste support (https://bugs.eclipse.org/bugs/show_bug.cgi?id=192238)

-----------------
Alex Shatalin
Previous Topic:Displaying GMF Properties Sheet
Next Topic:Promote Children Delete Container. ComponentEditPolicy. Command.
Goto Forum:
  


Current Time: Sat May 10 13:42:55 EDT 2025

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

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

Back to the top