Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » How to create File from Model?
icon1.gif  How to create File from Model? [message #1057867] Thu, 09 May 2013 12: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 18: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 07: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 Feb 10 21:17:51 GMT 2025

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

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

Back to the top