Home » Modeling » Epsilon » [Eugenia] Deleting Tool Objects, Deleting Tool Connections
[Eugenia] Deleting Tool Objects, Deleting Tool Connections [message #757355] |
Thu, 17 November 2011 21:45 |
Snakebyte Missing name Messages: 130 Registered: November 2011 |
Senior Member |
|
|
Hello i got a Problem when using Eugenia.
I simply created a Model, which works really fine, when i dont use any modification in the ECore2GMF.eol File.
Later on i realized that i dont want these long list of objects and connections.
(Because some of them are only parent nodes and i modelled them because all nodes have the same attributes).
So i dont want the basic node called "Node" to appear in the list of objects.
So i added the following to the ECore2GMF.eol
var deletingAttribute = GmfTool!CreationTool.all.selectOne(r|r.title='Node');
delete deletingAttribute;
When i rerun the generating now, i got an error.
Could not load the GmfMap and GmfGen models.
And i can even see that the GmfMap was not created.
The same happens when i'm deleting Connections from the list, because i only want them to be modelled in the indirect way. (With the small boxes in the GUI)
Why that happens ?
Is there any way to hide object or connections from the tool palette ?
Or is there any chance to model three element like this.
I got one parent, let me call it "Dad".
Now i got two different childs let ma call them "Boy" and "Girl".
And i want to use one type of reference now, to link them to "Dad".
I dont want to use containings (Seems to be stupid in this example, but i want to be able to model Boys belonging to more than one Dad).
So how i do that ? Just to make it clear, the result should be one reference i can used for both connections.
I tryed to use super-classes...but this doesnt work either, because Boy and Girl have different attributes and containments themselves.
Thanks
[Updated on: Thu, 17 November 2011 22:08] Report message to a moderator
|
|
| | | | | | | | | | |
Re: [Eugenia] Deleting Tool Objects, Deleting Tool Connections [message #758851 is a reply to message #758107] |
Thu, 24 November 2011 17:54 |
Paulo Alexandre Messages: 17 Registered: November 2011 |
Junior Member |
|
|
Hi Dimitrius
sorry for the long time no talk...
Well, that's what I've tried.
I Created a meta model (in the previous post). After, a created a ECore2GMF.eol file containing the following code
var deletingAttribute = GmfTool!CreationTool.all.selectOne(r|r.title='Mother');
delete deletingAttribute;
My expectations was that the Node ''Mother'' in the palette was not present.
After that, using eugenia and epsilon, I created the ecore file and then the .genmodel file. So, I've tried to create the .gmfgraph, .gmftool and .gmfmap. The creation of .gmfgraph, .gmftool files were successful but for any reason the .gmfmap was not created. I know the ECore2GMF.eol is running well for two reasons: first, I wrote this simple code just to make sure it was being invoked "hello".println() and it was printed well; secondly, in the .gmftool, in the "Tool Group Objects" there was just the "Creation Tool father" (Creation Tool mother was not present).
So, Dimitrius, my initial desire is just hide an object from the Objects Palette. Until now, the way (using ECore2GMF.eol) was my only attempt.
Any help will be useful.
I really thank you for all the attention!
[Updated on: Thu, 24 November 2011 17:55] Report message to a moderator
|
|
| |
Goto Forum:
Current Time: Sat Apr 20 16:32:53 GMT 2024
Powered by FUDForum. Page generated in 0.04198 seconds
|