|
|
Re: GMF editor doesn't draw nodes [message #757473 is a reply to message #757460] |
Fri, 18 November 2011 15:12 |
|
Hi Patricia,
I tried your metamodel with the latest version of Epsilon/GMF but I got similar validation errors in the .gmfgen - which I suspect are also responsible for the GMF code generator producing bad code. I've checked with the filesystem metamodel (http://eclipse.org/gmt/epsilon/doc/articles/eugenia-gmf-tutorial/) to make sure that recent changes in GMF haven't broken EuGENia and it seems to be working fine so I'm guessing the problem lies somewhere in your metamodel.
To pin down the real source of the error, I'd suggest trying slimming down your metamodel by commenting out everything else except for a few classes (including the root) and then trying to add more classes gradually until the errors start reappearing.
Cheers,
Dimitris
|
|
|
|
Re: GMF editor doesn't draw nodes [message #757502 is a reply to message #757483] |
Fri, 18 November 2011 16:34 |
Patricia Espada Messages: 47 Registered: November 2011 |
Member |
|
|
I have this simple .emf file, and I get an error regarding the polygon figure. It says that polygon cannot be resolved into a type.
@namespace(uri="kaos", prefix="kaos")
package KAOSStandard;
@gmf.diagram(foo="bar")
class KAOS {
val CompartmentNode[*] hasCompartmentNode;
val Nodes[*] hasNodes;
val Links[*] hasLinks;
}
abstract class Links {
attr String TransformationSource;
}
abstract class CompartmentNode {
attr String name;
}
@gmf.node(label="name", label.placement="external")
abstract class Nodes {
attr String name;
attr String TransformationSource;
attr String IstarActorContainer;
}
@gmf.node(color="0,191,255", border.color="0,191,255", size="80,50", figure="polygon", polygon.x="30,70,50,10", polygon.y="10,10,40,40")
class Goal extends Nodes {
attr boolean isRoot = false;
attr String formalDef;
attr String informalDef;
}
|
|
|
|
|
|
Re: GMF editor doesn't draw nodes [message #757870 is a reply to message #757502] |
Fri, 18 November 2011 17:39 |
Steffen Zschaler Messages: 266 Registered: July 2009 |
Senior Member |
|
|
I think, it is trying to find a polygon Java class implementing the figure.
Best,
Steffen
On 18/11/2011 16:35, Patr wrote:
> I have this simple .emf file, and I get an error regarding the polygon
> figure. It says that polygon cannot be resolved into a type.
>
> @namespace(uri="kaos", prefix="kaos")
> package KAOSStandard;
>
> @gmf.diagram(foo="bar")
> class KAOS {
> val CompartmentNode[*] hasCompartmentNode;
> val Nodes[*] hasNodes;
> val Links[*] hasLinks;
> }
>
> abstract class Links {
> attr String TransformationSource;
> }
>
> abstract class CompartmentNode {
> attr String name;
> }
>
> @gmf.node(label="name", label.placement="external")
> abstract class Nodes {
> attr String name;
> attr String TransformationSource;
> attr String IstarActorContainer;
> }
>
> @gmf.node(color="0,191,255", border.color="0,191,255", size="80,50",
> figure="polygon", polygon.x="30,70,50,10", polygon.y="10,10,40,40")
> class Goal extends Nodes {
> attr boolean isRoot = false;
> attr String formalDef;
> attr String informalDef;
> }
|
|
|
Powered by
FUDForum. Page generated in 0.03381 seconds