Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to find all gmf diagrams inside a project
How to find all gmf diagrams inside a project [message #196096] Tue, 08 July 2008 15:04 Go to next message
Eclipse UserFriend
Originally posted by: mike.gmail.com

Hello,


Usual scenario is that when we use Print in gmf diagram it gives an option
to print all the open diagram files for that instance.I want to use the
print functionality in a way that I can print all the diagram files in my
project with a single click with out opening all one by one. When I went
through the "EnhancedPrintActionHelper" and "DiagramPrinterUtil" classes I
could understand that the diagramnames of only those ones which are open
in the workspace are read and used for printing.

If I could get all the diagram names present in the module/project I will
be able to override some of the gmf internal classes and try to print all
the diagrams with a single click

Is there any other method to solve this issue? If not does any be able to
help me how to read the diagramnames of all diagrams present in
module/project?

Hope to hear from someone.

Thanks in advance.

Mike
Re: How to find all gmf diagrams inside a project [message #196166 is a reply to message #196096] Wed, 09 July 2008 07:09 Go to previous messageGo to next message
gaurav dubey is currently offline gaurav dubeyFriend
Messages: 45
Registered: July 2009
Member
Hello mike,
I am doing the same thing like when i select a project in
project explorer i have to list all the diagram resource in a tree, For
this one way is to take project as IProject and after that fetch all
resources of the project via project.members, and check every resource
whether it is diagram resource or not, I think with this way u find all
diagram resources in the project. If it is useful for u, and u face any
problem then tell me, I will provide u a sample snippet for that.


chears

Gaurav

mike wrote:

> Hello,


> Usual scenario is that when we use Print in gmf diagram it gives an option
> to print all the open diagram files for that instance.I want to use the
> print functionality in a way that I can print all the diagram files in my
> project with a single click with out opening all one by one. When I went
> through the "EnhancedPrintActionHelper" and "DiagramPrinterUtil" classes I
> could understand that the diagramnames of only those ones which are open
> in the workspace are read and used for printing.

> If I could get all the diagram names present in the module/project I will
> be able to override some of the gmf internal classes and try to print all
> the diagrams with a single click

> Is there any other method to solve this issue? If not does any be able to
> help me how to read the diagramnames of all diagrams present in
> module/project?

> Hope to hear from someone.

> Thanks in advance.

> Mike
Re: How to find all gmf diagrams inside a project [message #196227 is a reply to message #196166] Wed, 09 July 2008 09:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mike.gmail.com

Hello Gaurav,

Thanks for the quick response. I would really appreciate if you can give
me a snippet. Mean time I will try this a shot.

Thanks,

Mike
Re: How to find all gmf diagrams inside a project [message #197118 is a reply to message #196227] Tue, 15 July 2008 14:08 Go to previous message
Eclipse UserFriend
Originally posted by: mike.gmail.com

Hello Gaurav,

No luck so far. Can you give me a snippet you have? I cannot open all the
diagram files as it would increase the system load a lot.

Thanks,

Mike
Previous Topic:Tool mapping
Next Topic:Indefinite Child Referentiation
Goto Forum:
  


Current Time: Fri Apr 19 14:47:20 GMT 2024

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

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

Back to the top