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] Sat, 25 August 2012 02:57 Go to next message
C. Thompson is currently offline C. ThompsonFriend
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 19: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 07:51 Go to previous messageGo to next message
Aurelien Pupier is currently offline Aurelien PupierFriend
Messages: 621
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,
Re: How do I use DiagramGraphicalViewer.setContents(Diagram)? [message #904039 is a reply to message #903892] Mon, 27 August 2012 15:54 Go to previous messageGo to next message
C. Thompson is currently offline C. ThompsonFriend
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 16:03 Go to previous message
Aurelien Pupier is currently offline Aurelien PupierFriend
Messages: 621
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

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

regards,
Previous Topic:Adding Search capability to the palette
Next Topic:Is displaying part of GMF model possible?
Goto Forum:
  


Current Time: Fri Sep 30 17:09:11 GMT 2016

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

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