Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to specify file format
How to specify file format [message #65607] Wed, 19 February 2003 09:42 Go to next message
Eclipse UserFriend
Originally posted by: celine.mortelette.atosorigin.com

In order to build a graph, the user has to create a file with xxx extension
like test.xxx
How can I specify the file format ? I want it to be an xml file for example
....

Thanks for any answer.
Re: How to specify file format [message #65957 is a reply to message #65607] Fri, 21 February 2003 11:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: beneyal.hotmaul.com

Céline Mortelette wrote:

> In order to build a graph, the user has to create a file with xxx extension
> like test.xxx
> How can I specify the file format ? I want it to be an xml file for example
> ....

> Thanks for any answer.


Hi
You don't have to specify the file format. After saving your graph into
the file in an XML format (by using a PrintWriter object for example), you
can use any XML reader (like Sun's SAX for example) to read your saved XML
tags.
Re: How to specify file format [message #66048 is a reply to message #65957] Fri, 21 February 2003 16:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: celine.mortelette.atosorigin.com

Ok but how can I associate a graph element to an XML tag ?!
I don't find where I can do that in org.eclipse.gef.examples.logic example
....

Can you help me ?

Thanks

"Eyal" <beneyal@hotmaul.com> a
Re: How to specify file format [message #66128 is a reply to message #66048] Fri, 21 February 2003 18:47 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Mapping a graph element (Figure, I assume) to an XML tag is the job of you
application. Specifically, your EditPart serves as a "mini" content
provider/label provider, if you are familiar with JFace.

GEF is model neutral, so we can't begin to know how to map the model into
figures.

"C
Previous Topic:Background Color for a Label
Next Topic:M5, GEF and Mac OS X
Goto Forum:
  


Current Time: Sat Aug 17 22:26:05 GMT 2024

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

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

Back to the top