Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problem with generating the diagram code with GMF 2.0.2 and Eclipse 3.3.2
Problem with generating the diagram code with GMF 2.0.2 and Eclipse 3.3.2 [message #195211] Wed, 02 July 2008 00:30 Go to next message
Sunil Ramaiah is currently offline Sunil RamaiahFriend
Messages: 14
Registered: July 2009
Junior Member
Hi,

I get the following expception when generating the diagram code. I am
using GMF 2.0.2 with Eclipse 3.3.2.

This exception is seen with GMF 2.1.0 with Eclipse 3.4 also.

Exception (Couldn't find operation 'isSuperTypeOf(EClass)' for
EDataType.:in xpt::editor::GenDiagram on line 35
'(EClass)gf.ecoreFeature.eType.isSuperTypeOf(eType)') while generating code

I did read a temporary solution in one of the older threads. Boris
mentioned -

Hi Tarek,


As a quick workaround, I may suggest to add to the GenDiagram.ext file the
following declaration:

private boolean isSuperTypeOf(ecore::EClassifier one, ecore::EClassifier
another) :
false
;

This is not a permanent fix, but could at least let you proceed without
waiting for us to fix this bug.

Sorry for the inconvenience and

Best regards,
Boris

Can someone let me know where I can find the GenDiagram.ext file ?

Thanks,
Sunil.
Re: Problem with generating the diagram code with GMF 2.0.2 and Eclipse 3.3.2 [message #195314 is a reply to message #195211] Wed, 02 July 2008 10:57 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Sunil,

> This exception is seen with GMF 2.1.0 with Eclipse 3.4 also.
Well, looks like this problem was not fixed yet. Can you please submitt a
bugzilla entry for it?
For now try to apply this workaround. You have to switch "dynamic templates"
on and then create GenDiagram.ext on the proper place (inside <templateDir>/xpt/editor
folder) + put corresponding functiona there.

-----------------
Alex Shatalin
Re: Problem with generating the diagram code with GMF 2.0.2 and Eclipse 3.3.2 [message #195472 is a reply to message #195314] Wed, 02 July 2008 20:19 Go to previous message
Sunil Ramaiah is currently offline Sunil RamaiahFriend
Messages: 14
Registered: July 2009
Junior Member
Thanks !

That worked for me. I will create a bugzilla entry.

Regards,
Sunil.
Previous Topic:code not generated problem
Next Topic:Problem with updating GMF
Goto Forum:
  


Current Time: Fri Apr 26 14:07:20 GMT 2024

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

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

Back to the top