Skip to main content



      Home
Home » Archived » Sapphire » How to create File from Model?
icon1.gif  How to create File from Model? [message #1057867] Thu, 09 May 2013 08:28 Go to next message
Eclipse UserFriend
Hello Again Smile

I have an Editor for MyXML. I instantiated a new Model using:
MyXML.TYPE.instantiate( new RootXmlResource( new XmlResourceStore( new File(path) )) );


I filled the model with some data, and now want to print it to a new MyXML file, so I can open it later with my editor.

How can I pretty print the Model?
Re: How to create File from Model? [message #1057912 is a reply to message #1057867] Thu, 09 May 2013 14:26 Go to previous messageGo to next message
Eclipse UserFriend
To save the model, use the following invocation:

model.resource().save()


- Konstantin
Re: How to create File from Model? [message #1058128 is a reply to message #1057912] Sun, 12 May 2013 03:27 Go to previous message
Eclipse UserFriend
Thnx, that's exactly what I needed Smile
Previous Topic:Instructions on exporting sapphire plugin
Next Topic:Advise for the use of Sapphire with present schema file
Goto Forum:
  


Current Time: Mon Jul 07 04:26:10 EDT 2025

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

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

Back to the top