[Eugenia] Using Phantom Nodes [message #754963] |
Sat, 05 November 2011 17:33  |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05263 seconds