Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Broken code generation
Broken code generation [message #197742] Thu, 17 July 2008 13:35 Go to next message
Eclipse UserFriend
Originally posted by: knakov.scopeset.de

Hi,

I have troubles generating code. It seems that the code generator breaks
the source even when generating it from scratch. One of the files in my
generated diagram editor has syntax errors after the code generation.
The layout in the generated source is completely broken, but there seem
to be only one error. Here is the wrong code which is generated by the
code generator out of my .gmfgen file:

public org.eclipse.gef.EditPolicy getPrimaryDragEditPolicy() {
return new ();
}

The problem appears even in the latest gmf 2.1. All the model files seem
to validate. Perhaps I have did something wrong with the .gmfmap, but
since I see no errors during validation, I can't find what it is.

Thanks in advance,
Kalin
Re: Broken code generation [message #197766 is a reply to message #197742] Thu, 17 July 2008 15:04 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Kalin,

To correct this problem open .gmfgen model, locate GenNode having empty "primaryDragEditPolicyQualifiedClassName"
property and fill this property with the appropriate class name or remove
this attribute from .gmfgraph file at all - looks like due to some reasons
(e.g. editing .gmfgen model via UI) this property was set to empty string
(primaryDragEditPolicyQualifiedClassName="") in used .gmfgen file.

-----------------
Alex Shatalin
Previous Topic:composite figure
Next Topic:[Announce] GMF 2.1.1 M200807171205 is available
Goto Forum:
  


Current Time: Thu Apr 25 15:13:24 GMT 2024

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

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

Back to the top