|
Re: EMF Outline-View in GMF editor [message #208557 is a reply to message #208539] |
Tue, 14 October 2008 14: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 07:06 |
Sebastian Schneider Messages: 18 Registered: July 2009 |
Junior Member |
|
|
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 #208629 is a reply to message #208610] |
Wed, 15 October 2008 07:35 |
Eclipse User |
|
|
|
Originally posted by: e.schnepel.bmiag.de
Hello Sebastian,
> 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
I have used the same versions with the solution provided in the bugzilla
entry https://bugs.eclipse.org/bugs/show_bug.cgi?id=206778 . It contains
a patch against the GMF editor/generator plugins and will integrate a
model oriented outline view like the one from EcoreTools into your own
editor.
Regards,
Enrico
|
|
|
|
|
|
|
Re: EMF Outline-View in GMF editor [message #208857 is a reply to message #208833] |
Thu, 16 October 2008 12:51 |
Eclipse User |
|
|
|
Originally posted by: e.schnepel.bmiag.de
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.03472 seconds