Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Load a diagram in editor from its name
Load a diagram in editor from its name [message #142548] Fri, 13 July 2007 04:11 Go to next message
Eclipse UserFriend
Originally posted by: Halimatou.Pouye-Diaw.thomson.net

Hi, everybody

Is it possible with GMF to retrieve and load (open in editor) a diagram
only from its name? I tried it with createNewDiagramFile of EditorUtil and
the openDiagram method but a new diagram is created, what is logic.
So, I think if I can retrieve the diagram file (IFile) from a diagram
name, I could open the diagram with its contents.

Does someone can help me, please?

Thank you.
Re: Load a diagram in editor from its name [message #142891 is a reply to message #142548] Mon, 16 July 2007 15:16 Go to previous messageGo to next message
Eclipse UserFriend
Hi Lima,

On Fri, 13 Jul 2007 08:11:45 +0000, Lima wrote:
> Is it possible with GMF to retrieve and load (open in editor) a diagram
> only from its name? I tried it with createNewDiagramFile of EditorUtil
> and the openDiagram method but a new diagram is created, what is logic.
> So, I think if I can retrieve the diagram file (IFile) from a diagram
> name, I could open the diagram with its contents.

I think you're looking for IDE.openEditor(...). See Javadoc here:

http://help.eclipse.org/help33/nftopic/org.eclipse.platform. doc.isv/
reference/api/org/eclipse/ui/ide/IDE.html

Cheers,
Andrew
Re: Load a diagram in editor from its name [message #142961 is a reply to message #142891] Tue, 17 July 2007 03:50 Go to previous message
Eclipse UserFriend
Originally posted by: Halimatou.Pouye-Diaw.thomson.net

Hi, Artem
Thank you very much for your reply.
You help me to solve my problem.

Best regards.
Previous Topic:XSD support in GMF
Next Topic:Connected nodes on compartments
Goto Forum:
  


Current Time: Wed Jul 16 15:05:34 EDT 2025

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

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

Back to the top