Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Questions and thought about Shared editing domain
Questions and thought about Shared editing domain [message #240133] Tue, 04 December 2007 17:56 Go to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Hi all :)

1. Would anyone be willing to make a cheatcheet for shared editing domains?

2. Point 10 in
http://wiki.eclipse.org/GMF_Tips#Sharing_single_EditingDomai n_instance_across_several_diagrams,
states:

10. Only one metamodelType could be registered for each EClass in scope
of one EditingDomain. During this step you have to replace by
specializationType declaration all the metamodelType declarations inside
plugin.xml for diagram2 duplicating metamodelType declarations inside
plugin.xml for diagram1 (having the same eclass attribute). Following
part of plugin.xml:

What does this mean exactly? I need a teaspoon and some explanation.

3. Point 8 states:

TransactionalEditingDomain editingDomain;
editingDomain =
TransactionalEditingDomain.Registry.INSTANCE.getEditingDomai n( "org.eclipse.gmf.ecore.editor.EditingDomain");

shouldn't this rather be:

TransactionalEditingDomain editingDomain =
TransactionalEditingDomain.Registry.INSTANCE.getEditingDomai n( "SharedEditingDomain");

This made my code working.

Any thoughts on this? (or on the topic in general, ex: will it be easier
in gmf 2.1??


Cheers,

Tomas Zijdemans
Re: Questions and thought about Shared editing domain [message #240141 is a reply to message #240133] Tue, 04 December 2007 18:02 Go to previous message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Sorry, this was meant for GMF.


Cheers,

Tomas Zijdemans


Tomas Zijdemans wrote:
> Hi all :)
>
> 1. Would anyone be willing to make a cheatcheet for shared editing domains?
>
> 2. Point 10 in
> http://wiki.eclipse.org/GMF_Tips#Sharing_single_EditingDomai n_instance_across_several_diagrams,
> states:
>
> 10. Only one metamodelType could be registered for each EClass in scope
> of one EditingDomain. During this step you have to replace by
> specializationType declaration all the metamodelType declarations inside
> plugin.xml for diagram2 duplicating metamodelType declarations inside
> plugin.xml for diagram1 (having the same eclass attribute). Following
> part of plugin.xml:
>
> What does this mean exactly? I need a teaspoon and some explanation.
>
> 3. Point 8 states:
>
> TransactionalEditingDomain editingDomain;
> editingDomain =
> TransactionalEditingDomain.Registry.INSTANCE.getEditingDomai n( "org.eclipse.gmf.ecore.editor.EditingDomain");
>
>
> shouldn't this rather be:
>
> TransactionalEditingDomain editingDomain =
> TransactionalEditingDomain.Registry.INSTANCE.getEditingDomai n( "SharedEditingDomain");
>
>
> This made my code working.
>
> Any thoughts on this? (or on the topic in general, ex: will it be easier
> in gmf 2.1??
>
>
> Cheers,
>
> Tomas Zijdemans
Previous Topic:Re: draw3d in gef
Next Topic:SWT Widget inside Figure
Goto Forum:
  


Current Time: Fri Apr 26 01:25:42 GMT 2024

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

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

Back to the top