cashew-s-editor-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[CASHeW-s-editor-patches] To XMLs and Parser added....


From: Ravish Bhagdev
Subject: [CASHeW-s-editor-patches] To XMLs and Parser added....
Date: Wed, 23 Mar 2005 06:40:56 -0000

I'm committing the attached patch to add our toXML() support and a Parser to 
read the model back.

Changelog:

2005-03-23  Ravish Bhagdev  address@hidden

* src/nongnu/cashews/eclipse/model/Diagram.java
(makeFromStream): Added temporary fix to create an empty diagram.
(toXML()): Uncommented node.toXML() as it now exists.
* src/nongnu/cashews/eclipse/model/Diagram.java 
(toXML()): Abstract method added.
* src/nongnu/cashews/eclipse/model/XMLizable.java
New interface for toXML().
* src/nongnu/cashews/eclipse/model/DiagramParser.java
New Parser added to read the file back
* plugin.xml
Fixed.

I have added an interface XMLizable to the Model subpackage and written toXML 
instead of toStrings in all the models.  At the moment, the model is being 
saved in XML properly, plus another file called DiagramParser is added to parse 
it back and create the diagram objects back from that...what remains to be done 
is recreate commands to modify and update the model from read XML model at load 
time(patch attached)

Attachment: toXMLsAndParser.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]