Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » creating a image from a diagram file
creating a image from a diagram file [message #91717] Thu, 11 January 2007 15:53 Go to next message
Eclipse UserFriend
Originally posted by: martin.tauber.t-online.de

I would like to create an image file from a given .diagram file. This
means I don't have the diagram open in an editor. The java application
should jast read the .diagram file and the write it as a gif to disk. I
found the CopyToImageUtil class, but how do I fill the DiagramEditPart
parameter?

Thanks
Martin
Re: creating a image from a diagram file [message #91757 is a reply to message #91717] Thu, 11 January 2007 16:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

There's another method in that class that uses only the Diagram object.

On Thu, 11 Jan 2007 21:53:56 +0100, Martin Tauber wrote:

> I would like to create an image file from a given .diagram file. This
> means I don't have the diagram open in an editor. The java application
> should jast read the .diagram file and the write it as a gif to disk. I
> found the CopyToImageUtil class, but how do I fill the DiagramEditPart
> parameter?
>
> Thanks
> Martin
Re: creating a image from a diagram file [message #91929 is a reply to message #91757] Fri, 12 January 2007 06:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.tauber.t-online.de

Hi

and how do I fill the Diagram object with my .diagram file?

Regards
Martin

Vlad Ciubotariu schrieb:
> There's another method in that class that uses only the Diagram object.
>
> On Thu, 11 Jan 2007 21:53:56 +0100, Martin Tauber wrote:
>
>> I would like to create an image file from a given .diagram file. This
>> means I don't have the diagram open in an editor. The java application
>> should jast read the .diagram file and the write it as a gif to disk. I
>> found the CopyToImageUtil class, but how do I fill the DiagramEditPart
>> parameter?
>>
>> Thanks
>> Martin
>
Re: creating a image from a diagram file [message #92245 is a reply to message #91929] Fri, 12 January 2007 14:07 Go to previous message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

Look in the generated XXXEditorUtil for starting.

I guess you need to create an Editing domain and create two resources for
your diagram file and its model file.

Resource.getContents() for the diagram resource should give you the
diagram.

I haven't done myself, but if it works, please confirm it.

vlad

On Fri, 12 Jan 2007 12:33:39 +0100, Martin Tauber wrote:

> Hi
>
> and how do I fill the Diagram object with my .diagram file?
>
> Regards
> Martin
>
> Vlad Ciubotariu schrieb:
>> There's another method in that class that uses only the Diagram object.
>>
>> On Thu, 11 Jan 2007 21:53:56 +0100, Martin Tauber wrote:
>>
>>> I would like to create an image file from a given .diagram file. This
>>> means I don't have the diagram open in an editor. The java application
>>> should jast read the .diagram file and the write it as a gif to disk. I
>>> found the CopyToImageUtil class, but how do I fill the DiagramEditPart
>>> parameter?
>>>
>>> Thanks
>>> Martin
>>
Previous Topic:Getting M3 error, elements don't appear on Canvas
Next Topic:Final/Stable Release of GMF-sdk-2.0
Goto Forum:
  


Current Time: Fri Jul 18 00:45:13 EDT 2025

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

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

Back to the top