creating a image from a diagram file [message #91717] |
Thu, 11 January 2007 15:53  |
Eclipse User |
|
|
|
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 #92245 is a reply to message #91929] |
Fri, 12 January 2007 14:07  |
Eclipse User |
|
|
|
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
>>
|
|
|
Powered by
FUDForum. Page generated in 0.24476 seconds