Questions and thought about Shared editing domain [message #240133] |
Tue, 04 December 2007 17:56 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03420 seconds