Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to create a picture without opening the editor
How to create a picture without opening the editor [message #134734] Tue, 12 June 2007 03:19 Go to next message
Eclipse UserFriend
Originally posted by: tyhoho.gmail.com

Hi there,
Does anyone have idea about how to create a picture without opening the
editor?
I use the EMF createResouce and can only get the model file correctly,but
I don't know how to create the diagram file. The diagram file derived from
the model file is not right,it can noly display node,some of the edges are
missing.

Thanks for any hints.

Tina
Re: How to create a picture without opening the editor [message #134815 is a reply to message #134734] Tue, 12 June 2007 04:13 Go to previous messageGo to next message
Eclipse UserFriend
If you start with diagram file uri for #createResource(), that would give
you a diagram instance.
Then, use org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUt il to
render it as a picture.

Artem

"Tina Chen" <tyhoho@gmail.com> wrote in message
news:e11847cc11a8cca3cda838071768024f$1@www.eclipse.org...
> Hi there,
> Does anyone have idea about how to create a picture without opening the
> editor? I use the EMF createResouce and can only get the model file
> correctly,but I don't know how to create the diagram file. The diagram
> file derived from the model file is not right,it can noly display
> node,some of the edges are missing.
>
> Thanks for any hints.
>
> Tina
>
Re: How to create the diagram file without opening the editor [message #134978 is a reply to message #134815] Tue, 12 June 2007 08:41 Go to previous message
Eclipse UserFriend
Originally posted by: tyhoho.gmail.com

Hi Artem,

Thanks for your response!
I don't mean to derive a picture from the diagram file.
I want to create a diagram file programmatically without opening the
editor.
sorry that I used the word "picture".
Tina.


Artem Tikhomirov wrote:

> If you start with diagram file uri for #createResource(), that would give
> you a diagram instance.
> Then, use org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUt il to
> render it as a picture.

> Artem
Previous Topic:forcing save in TransactionalCommand
Next Topic:(Corrected)How to create the diagram file without opening the editor
Goto Forum:
  


Current Time: Tue Jun 10 11:44:10 EDT 2025

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

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

Back to the top