Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Eugenia] Using Phantom Nodes
[Eugenia] Using Phantom Nodes [message #754963] Sat, 05 November 2011 21:33 Go to next message
Snakebyte Missing name is currently offline Snakebyte Missing name
Messages: 130
Registered: November 2011
Senior Member
Hello,

i got a problem using Phantom Nodes in my Models.

Here is the experimental Code from my .emf file.

@namespace(uri="filesystemtest", prefix="filesystemtest")
@gmf(foo="bar")
package filesystem;

@gmf.diagram(foo="bar")
class Filesystem {
    val Drive[*] drives;
}
@gmf.node(label="name")
class Drive {
  @gmf.link(label="containsFolder")
  val Folder[*] contentFolder;
  attr String name;
}
@gmf.node(label="name",phantom ="true")
class Folder {
    @gmf.link(label="containsFile")
    val File[*] contentFile;
    attr String name;
}

@gmf.node(label = "name",phantom="true")
class File {
    attr String name;
}



I think its really simple for now. All i want to achieve a tree-like structure for the example on the web pages.
But it doesnt work. The generated code always got 3 errors.
One in :

DriveCanonicalEditPolicy.java and
FileCanonicalEditPolicy.java and
FolderCanonicalEditPolicy.java

The curious thing is, i got the same error when i try to run the example from eclipse sites.
(sorry it is my first post and the forum tells me i cant use links until the fifth post)

Is there anything im doing wrong ?

Greetings
Snakebyte



Re: [Eugenia] Using Phantom Nodes [message #754983 is a reply to message #754963] Sun, 06 November 2011 11:39 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-Dominguez
Messages: 309
Registered: January 2010
Senior Member
Hi Snakebyte,

That's odd. I've just generated an editor from your .emf snippet and it works for me, with no compile errors at all.

I'd suggest that you remove all the generated code and try again, using the "Eugenia > Generate GMF editor" context menu entry from your .emf file. Sometimes, if you have been tweaking the .emf file again and again, the code generation process will not clean up some obsolete code and it will not compile. It's happened to me a few times.

Cheers,
Antonio
Re: [Eugenia] Using Phantom Nodes [message #754984 is a reply to message #754983] Sun, 06 November 2011 11:47 Go to previous messageGo to next message
Snakebyte Missing name is currently offline Snakebyte Missing name
Messages: 130
Registered: November 2011
Senior Member
Hi Antonio,

thanks for your answer.
I already realized the issue you mentioned.
Because of that, i already create a complete new model from the .emf file. Generating all from the beginning everytime.
I even copy the code, created a complete new project, und rerun the generation.

But the issue is the same.

Any other suggestions ?
Can that be anything about versioning of GMF/EMF/Eclipse/Eugenia ?

Greetings
Re: [Eugenia] Using Phantom Nodes [message #756239 is a reply to message #754984] Fri, 11 November 2011 15:59 Go to previous messageGo to next message
Snakebyte Missing name is currently offline Snakebyte Missing name
Messages: 130
Registered: November 2011
Senior Member
No sugestions ?
Re: [Eugenia] Using Phantom Nodes [message #756338 is a reply to message #756239] Sat, 12 November 2011 08:25 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi,

Given that it works fine for Antonio, I could only suggest trying this
in a fresh Eclipse/GMF/Epsilon installation assembled following the
instructions available here: http://www.eclipse.org/gmt/epsilon/download/

Cheers,
Dimitris

On 11/11/2011 15:59, Snakebyte wrote:
> No sugestions ?
Re: [Eugenia] Using Phantom Nodes [message #758319 is a reply to message #756338] Tue, 22 November 2011 17:39 Go to previous message
Snakebyte Missing name is currently offline Snakebyte Missing name
Messages: 130
Registered: November 2011
Senior Member
Thanks for your suggestions.
When im installing a fresh new eclipse und plugins it works.
Seems to be anything about versioning.
Previous Topic:[EVL] Quick fixes are not found
Next Topic:[Eugenia] Changing Icons / Canvas
Goto Forum:
  


Current Time: Thu Oct 30 16:59:05 GMT 2014

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

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