Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Hello CopyToImageUtil!
Hello CopyToImageUtil! [message #229603] Tue, 12 May 2009 13:04
No real name is currently offline No real nameFriend
Messages: 1
Registered: July 2009
Junior Member
I'm trying to write a plugin to export all diagrams of an UML model to
image files. I.e. automate the task of selecting "File - Save As Image
File.." for each diagram.

I understand that CopyToImageUtil.copyToImage() can be used for this. The
problem is that usage of this method requires a good understanding of GMF,
specifically how to instansiate the method parameters of type Diagram,
IPath, IProgressMonitor and PreferencesHint.

What I'm looking for is a way to implement a method with two parameters:
Parameter 1: Specifies a model in the project explorer
Parameter 2: Specifies the directory where to create the files

Can this be achieved as a second step after succefully completed a Hello
world! plugin? Or, do I have have to aquire GMF skills first?

Of course, any tips and pointers are vey much appreciated.
Previous Topic:show single list of nodes in property view
Next Topic:Deleting a node that has source and target connection
Goto Forum:
  


Current Time: Fri Apr 26 04:18:41 GMT 2024

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

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

Back to the top