Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Double-click to open diagram failing
Double-click to open diagram failing [message #1226130] Tue, 31 December 2013 15:14 Go to next message
Nigel Daniels is currently offline Nigel Daniels
Messages: 28
Registered: May 2011
Junior Member
I've been developing a GMF based RCP application and have found my
navigator no longer opens the diagram when I double click on it. Can
anyone advice where I can start looking to diagnose what's up?

Thanks for any pointers.

Nigel
Re: Double-click to open diagram failing [message #1231394 is a reply to message #1226130] Tue, 14 January 2014 10:09 Go to previous messageGo to next message
Dan Tololoi is currently offline Dan Tololoi
Messages: 33
Registered: September 2012
Location: Iasi, Romania
Member

Hi Nigel,

Please place a breakpoint in the generated diagram code ( from the .gmfgen)

xxx.diagram.part -> xxxDiagramEditor class

in the method
private ISelection getNavigatorSelection()
and continue executing step by step.
In this way you can continue to see why the opening is not working, either Diagram problem or something else.

Hope this helps.

[Updated on: Tue, 14 January 2014 10:10]

Report message to a moderator

Re: Double-click to open diagram failing [message #1231411 is a reply to message #1231394] Tue, 14 January 2014 11:05 Go to previous messageGo to next message
Dan Tololoi is currently offline Dan Tololoi
Messages: 33
Registered: September 2012
Location: Iasi, Romania
Member

Another hint would be to validate the gmfgen.
Re: Double-click to open diagram failing [message #1232455 is a reply to message #1231411] Thu, 16 January 2014 20:04 Go to previous message
Nigel Daniels is currently offline Nigel Daniels
Messages: 28
Registered: May 2011
Junior Member
Hi Dan, thanks for getting back to me. I've tried both approaches. I
validated the gmfgen and it validated. I then regened the code. The
problem seems to be that the method getNavigatorSelection is not being
generated in the class xxx.part.xxDiagramEditor.java.

Is there somewhere else in the toolchain, e.g in the ecore file or
gmfmap that I need to look at?

Nigel
Previous Topic:I can create a graph editor [GMF] with graphiti instead of GEF??
Next Topic:GMF Diagram Properties Error
Goto Forum:
  


Current Time: Fri Jul 25 23:08:00 EDT 2014

Powered by FUDForum. Page generated in 0.01481 seconds