EMF Outline-View in GMF editor [message #208539] |
Tue, 14 October 2008 09:15  |
Eclipse User |
|
|
|
Hey Guys,
is it possible the outline-view of the EMF editor to integrate in the GMF
editor?
I need a detail completion, please.
My intention is:
Not all elements in the ecore-model should be visible in the DiagramEditor.
For example:
I create a consumer with some providing software.
The software element has some descriptions (e.g. business for price and
payment). But this elements of descriptions and these childs should be
invisible.
My idea is to show an outline-view to create and to edit this elements and
these childs.
Ecore-Model (all references are containment):
+ Root
+ consumer [0..*] : Consumer
+ Consumer
+ useSoftware [1..*] : Software
+ provideSoftware [1..*] : Software
+ ...
+ Software -> Descritpion
+ Name [1] : EString
+ ...
+ Description
+ businessDescription [1..*] : Business
+ ratingDescription [1..*] : Rating
+ ...
+ Business
+ prices [1..*] : Price
+ payment [1] : EnumPayment
+ Rating
+ expertRating [0..*] : EString
+ userRating [0..*] : EString
+ Price
+ amount [1] : EFloat
+ currency [1] : EnumCurrency
+ EnumPayment
+ Cash
+ CreditCard
+ ...
+ EnumCurrency
+ Euro
+ Dollar
+ ...
Thanks,
Sebastian
|
|
|
Re: EMF Outline-View in GMF editor [message #208557 is a reply to message #208539] |
Tue, 14 October 2008 10:44   |
Eclipse User |
|
|
|
Originally posted by: tobk42.gmx.de
Hi Sebastian,
concerning the outline view itself, you should have a look on the thread
"emf tree in outline view", using the combined outline view from
EcoreTools for this [1]. Integrating this into your GMF editor should be
really simple, however, I'm not sure if this still works in GMF 2.1.
Concerning the filtering of the elements to be shown: You can use the
EMF genmodel file to determine which elements (child elements and
attributes) to show and which to hide.
Regards,
Tobias
[1] http://wiki.eclipse.org/EcoreTools_New_Noteworthy#Outline_Vi ew
Sebastian Schneider schrieb:
> Hey Guys,
>
> is it possible the outline-view of the EMF editor to integrate in the
> GMF editor?
>
> I need a detail completion, please.
>
> My intention is:
>
> Not all elements in the ecore-model should be visible in the DiagramEditor.
>
> For example:
> I create a consumer with some providing software.
> The software element has some descriptions (e.g. business for price and
> payment). But this elements of descriptions and these childs should be
> invisible.
>
> My idea is to show an outline-view to create and to edit this elements
> and these childs.
>
> Ecore-Model (all references are containment):
>
> + Root
> + consumer [0..*] : Consumer
>
> + Consumer
> + useSoftware [1..*] : Software
> + provideSoftware [1..*] : Software
> + ...
>
> + Software -> Descritpion
> + Name [1] : EString
> + ...
>
> + Description
> + businessDescription [1..*] : Business
> + ratingDescription [1..*] : Rating
> + ...
>
> + Business
> + prices [1..*] : Price
> + payment [1] : EnumPayment
>
> + Rating
> + expertRating [0..*] : EString
> + userRating [0..*] : EString
>
> + Price
> + amount [1] : EFloat
> + currency [1] : EnumCurrency
>
> + EnumPayment
> + Cash
> + CreditCard
> + ...
>
> + EnumCurrency
> + Euro
> + Dollar
> + ...
>
> Thanks,
> Sebastian
>
|
|
|
Re: EMF Outline-View in GMF editor [message #208610 is a reply to message #208557] |
Wed, 15 October 2008 03:06   |
Eclipse User |
|
|
|
Hi Tobias,
thanks for the link.
But I can't it use, because I have a restriction of application and
plug-in version:
Eclipse 3.3.2
GMF 2.0.2
EMF 2.3.2
GEF 3.3.2
...
Have you another idea?
BTW, is the EcoreTools also available for EMF editor? Just I guess not the
ecore-outline but the generated model-editor.
Regards,
Sebastian
Tobias wrote:
> Hi Sebastian,
> concerning the outline view itself, you should have a look on the thread
> "emf tree in outline view", using the combined outline view from
> EcoreTools for this [1]. Integrating this into your GMF editor should be
> really simple, however, I'm not sure if this still works in GMF 2.1.
> Concerning the filtering of the elements to be shown: You can use the
> EMF genmodel file to determine which elements (child elements and
> attributes) to show and which to hide.
> Regards,
> Tobias
> [1] http://wiki.eclipse.org/EcoreTools_New_Noteworthy#Outline_Vi ew
|
|
|
|
|
|
|
|
|
|
Re: EMF Outline-View in GMF editor [message #220423 is a reply to message #208857] |
Tue, 03 March 2009 04:39  |
Eclipse User |
|
|
|
Hi Enrico,
I'm interested in your modified solution too. Could you please send me
the plugins you mentioned too?
Greetings
Adrian
Enrico Schnepel schrieb:
> Hello Sebastian,
>
> I have modified the solution to support both create methods and delete,
> copy and paste as well as drag'n'drop to change the ordering within a
> list. Currently I don't have the time to create a patch new against the
> CVS, but I could send you the plugins as they are.
>
> Regards
>
> Enrico Schnepel
>
> Sebastian Schneider schrieb:
>> Hi,
>>
>> how can I modify the "createEMFMenu" method?
>>
>> I need Create Child, Create Sibling and Delete.
>>
>> Thanks,
>> Sebastian
>>
|
|
|
Powered by
FUDForum. Page generated in 0.06369 seconds