Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » get a handle to the document provider
get a handle to the document provider [message #531120] Mon, 03 May 2010 15:14 Go to next message
Eclipse UserFriend
I have a sample project
When I modify the diagram the following method gets called:

doSaveDocument(IProgressMonitor monitor, Object element, IDocument document, boolean overwrite)

This code will save the model objects into a specified file using XMI.
I want to use my own xml file to save the model objects.
So I said may be if I have access to the above method I can then process document to get contents and then write them into my xml file.

The problem is that I couldn't have access to this method since it is generated ? how to do that through extensions ?

Thanks,
Re: get a handle to the document provider [message #531137 is a reply to message #531120] Mon, 03 May 2010 16:26 Go to previous message
Eclipse UserFriend
I can reword my request as follow:

How to get access to the the FileDocumentProvider ?
Previous Topic:[Resolved] Diagram To Image
Next Topic:C++ Code Generation from gmf diagram
Goto Forum:
  


Current Time: Fri Nov 07 19:18:45 EST 2025

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

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

Back to the top