Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How do I use DiagramGraphicalViewer.setContents(Diagram)?
How do I use DiagramGraphicalViewer.setContents(Diagram)? [message #903720] Fri, 24 August 2012 22:57 Go to next message
C. Thompson is currently offline C. Thompson
Messages: 23
Registered: May 2012
Location: Vancouver, BC
Junior Member
I want to display a GMF diagram, with the file format "*.ecorediag" in Eclipse in a View.

How can display the diagram in a minimalist way?

*Update: want to load from *.ecorediag not *.ecore

[Updated on: Mon, 27 August 2012 15:20]

Report message to a moderator

Re: How do I use DiagramGraphicalViewer.setContents(Diagram)? [message #903892 is a reply to message #903720] Mon, 27 August 2012 03:51 Go to previous messageGo to next message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 556
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

What do you mean by a "minimalist way"? Just have an image without interaction?
In this case, you can create an Image of your diagram using an OffscreenEditpart and display it in the view.

Regards,


Aurélien Pupier - BonitaSoft S.A.
My blog
My company Eclipse-related blog
Re: How do I use DiagramGraphicalViewer.setContents(Diagram)? [message #904039 is a reply to message #903892] Mon, 27 August 2012 11:54 Go to previous messageGo to next message
C. Thompson is currently offline C. Thompson
Messages: 23
Registered: May 2012
Location: Vancouver, BC
Junior Member
Are there any tutorials of how to use an OffscreenEditPart?
Re: How do I use DiagramGraphicalViewer.setContents(Diagram)? [message #904043 is a reply to message #904039] Mon, 27 August 2012 12:03 Go to previous message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 556
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

I don't know. The entry point is "OffscreenEditPartFactory.getInstance()"

regards,


Aurélien Pupier - BonitaSoft S.A.
My blog
My company Eclipse-related blog
Previous Topic:Adding Search capability to the palette
Next Topic:Is displaying part of GMF model possible?
Goto Forum:
  


Current Time: Tue Jul 29 02:46:37 EDT 2014

Powered by FUDForum. Page generated in 0.02073 seconds