Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » EMF Outline-View in GMF editor
EMF Outline-View in GMF editor [message #208539] Tue, 14 October 2008 13:15 Go to next message
Sebastian Schneider is currently offline Sebastian SchneiderFriend
Messages: 18
Registered: July 2009
Junior Member
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 14:44 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Sebastian Schneider is currently offline Sebastian SchneiderFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #208645 is a reply to message #208629] Wed, 15 October 2008 09:46 Go to previous messageGo to next message
Sebastian Schneider is currently offline Sebastian SchneiderFriend
Messages: 18
Registered: July 2009
Junior Member
Hi Enrico,

thanks for your post.

But I don't know what I have to do to use this solution?

I have downloaded the attachment "Model oriented outline plugin" and what
can I do with the "patch" and how?

I didn't anything before.

Do you have a short example or step-by-step description?

Best regards,
Sebastian

Enrico Schnepel wrote:

> 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.
Re: EMF Outline-View in GMF editor [message #208722 is a reply to message #208645] Wed, 15 October 2008 11:28 Go to previous messageGo to next message
Sebastian Schneider is currently offline Sebastian SchneiderFriend
Messages: 18
Registered: July 2009
Junior Member
Hey Guys,

I found a good and simple example [1] provided by urs zeidler.

But why I can't edit (add, delete, ...) the elements in the treeview?

In the outline-treeview of EMF editor can I do this.

Thanks,
Sebastian

[1]
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg02849.html
Re: EMF Outline-View in GMF editor [message #208729 is a reply to message #208722] Wed, 15 October 2008 11:29 Go to previous messageGo to next message
Sebastian Schneider is currently offline Sebastian SchneiderFriend
Messages: 18
Registered: July 2009
Junior Member
Oh, wrong link:
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg13295.html
Re: EMF Outline-View in GMF editor [message #208833 is a reply to message #208629] Thu, 16 October 2008 10:28 Go to previous messageGo to next message
Sebastian Schneider is currently offline Sebastian SchneiderFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

how can I modify the "createEMFMenu" method?

I need Create Child, Create Sibling and Delete.

Thanks,
Sebastian
Re: EMF Outline-View in GMF editor [message #208857 is a reply to message #208833] Thu, 16 October 2008 12:51 Go to previous messageGo to next message
Eclipse UserFriend
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
>
Re: EMF Outline-View in GMF editor [message #208872 is a reply to message #208857] Thu, 16 October 2008 13:17 Go to previous messageGo to next message
Sebastian Schneider is currently offline Sebastian SchneiderFriend
Messages: 18
Registered: July 2009
Junior Member
Hi Enrico,

please send me this new feature, it sounds good.

If it is possible give me a short example.

Thanks,
Sebastian
Re: EMF Outline-View in GMF editor [message #220423 is a reply to message #208857] Tue, 03 March 2009 09:39 Go to previous message
Adrian Gygax is currently offline Adrian GygaxFriend
Messages: 14
Registered: July 2009
Junior Member
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
>>
Previous Topic:Custom cell editor in property sheet
Next Topic:CommandStackExceptionHandler
Goto Forum:
  


Current Time: Mon Mar 08 10:16:43 GMT 2021

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

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

Back to the top