Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Nesting doesnt work(When I generate my GMF editor, nesting doesnt work)
Nesting doesnt work [message #1751613] Wed, 11 January 2017 22:35 Go to next message
Lainis 20 is currently offline Lainis 20Friend
Messages: 26
Registered: November 2016
Junior Member
Hi,

I'm trying to make a GMF editor of Archimate, I need to nest all elements inside Group element and nest an element inside itself (Contract). But none of these works.

Attahed the ecore which generated the GMF project

Do I need to modify some of edit parts classes code? or modify my ecore file?
If so, can you please help me with an example

Thanks
  • Attachment: myecore.xml
    (Size: 59.98KB, Downloaded 52 times)

[Updated on: Thu, 12 January 2017 18:45]

Report message to a moderator

Re: Nesting doesnt work [message #1751659 is a reply to message #1751613] Thu, 12 January 2017 10:35 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 475
Registered: January 2010
Senior Member
It's a bit hard to work with the Ecore file this way - could you change your post to use a file attachment, or paste the Emfatic source instead?
Re: Nesting doesnt work [message #1751666 is a reply to message #1751659] Thu, 12 January 2017 11:17 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1590
Registered: July 2009
Location: York, UK
Senior Member

Hi,

In case you haven't come across Archi [1], you may want to have a look at it (it's also Eclipse/EMF-based) before deciding whether you wish to develop an Archimate editor from scratch.

Cheers,
Dimitris

[1] http://www.archimatetool.com/
Re: Nesting doesnt work [message #1751711 is a reply to message #1751666] Thu, 12 January 2017 18:47 Go to previous messageGo to next message
Lainis 20 is currently offline Lainis 20Friend
Messages: 26
Registered: November 2016
Junior Member
Hi Dimitris,

Thanks for the advice, but I'm doing this Archimate editor because I need to modify some elements and add others.
Re: Nesting doesnt work [message #1751779 is a reply to message #1751659] Fri, 13 January 2017 18:27 Go to previous messageGo to next message
Lainis 20 is currently offline Lainis 20Friend
Messages: 26
Registered: November 2016
Junior Member
Hi Antonio,

I change the ecore file to the attached one in the first message.
Thanks for help
Re: Nesting doesnt work [message #1751806 is a reply to message #1751779] Sat, 14 January 2017 12:04 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1590
Registered: July 2009
Location: York, UK
Senior Member

Hi,

In my setup I'm hitting the "65535 bytes limit" issue [1] which produces a compile-time error, so I can't get the editor to run at all. Which version of Eclipse/GMF/Epsilon are you using?

Cheers,
Dimitris

[1] https://www.eclipse.org/forums/index.php?t=msg&th=164384&goto=521187&#msg_521187
Re: Nesting doesnt work [message #1751828 is a reply to message #1751806] Sun, 15 January 2017 14:27 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 475
Registered: January 2010
Senior Member
I tried renaming it to ".ecore" and generating the editor as well. It works well, but it also fails with the 65535 bytes limit issue that Dimitris mentioned. Did you happen to tweak the .gmfgen or .genmodel models in some way?
Re: Nesting doesnt work [message #1751834 is a reply to message #1751806] Mon, 16 January 2017 01:18 Go to previous messageGo to next message
Lainis 20 is currently offline Lainis 20Friend
Messages: 26
Registered: November 2016
Junior Member
Hi Dimitris,

I attached my ecore simplified. Thanks for help. I divide the methods with these mistake.
My eclipse version is Luna SR2 4.4.2
My GMF version 3.2.1.201409171321
My epsilon version is 1.3.0.201602270002
  • Attachment: mypecore.xml
    (Size: 18.24KB, Downloaded 60 times)
Re: Nesting doesnt work [message #1751835 is a reply to message #1751828] Mon, 16 January 2017 01:21 Go to previous messageGo to next message
Lainis 20 is currently offline Lainis 20Friend
Messages: 26
Registered: November 2016
Junior Member
Hi Antonio, I do not know how to tweak the .gmfgen. Do you have a link of an example I can look at. Thanks
Re: Nesting doesnt work [message #1751855 is a reply to message #1751835] Mon, 16 January 2017 10:08 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 475
Registered: January 2010
Senior Member
Hi Lainis,

I was asking about the .gmfgen since it seemed you had managed to generate code for the original .ecore while Dimitris and I could not.

The editor works fine with the simplified .ecore: I have placed a Contract inside a Group, and then nested a Contract inside the first one. I only had to rename the file to .ecore and then right-click and use "Eugenia -> Generate GMF editor". Is there some problem with this editor?

No problem,
Antonio
Re: Nesting doesnt work [message #1752308 is a reply to message #1751855] Fri, 20 January 2017 20:12 Go to previous messageGo to next message
Lainis 20 is currently offline Lainis 20Friend
Messages: 26
Registered: November 2016
Junior Member
Hi Antonio, the problem was that I modified the Palette Factory and it works like having a kind of instance of the element without the relations.

But I'm having trouble with another ecore because there are some elements that do not appear in the palette when I generate the editor.
I really appreciate if you can help me with this.


I attached my ecore.

The elements that do not appear on the palette are Group, Location, StrategyElement, BusinessElement...

Thanks,
  • Attachment: ecore.xml
    (Size: 20.94KB, Downloaded 41 times)

[Updated on: Fri, 20 January 2017 20:27]

Report message to a moderator

Re: Nesting doesnt work [message #1752786 is a reply to message #1752308] Fri, 27 January 2017 10:08 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 475
Registered: January 2010
Senior Member
Sorry for the delay - it's exam marking season Smile. You have marked those EClasses as abstract in your .ecore (meaning you don't want to actually instantiate them). Therefore, Eugenia did not produce any tooling to create instances of them.
Previous Topic:Getting all objects with EGL
Next Topic:[EVL][EOL] Method not found
Goto Forum:
  


Current Time: Wed Sep 26 12:20:42 GMT 2018

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

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

Back to the top