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
Hazem ELRAFFIEE is currently offline Hazem ELRAFFIEEFriend
Messages: 61
Registered: September 2012
Member
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
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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
Hazem ELRAFFIEE is currently offline Hazem ELRAFFIEEFriend
Messages: 61
Registered: September 2012
Member
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: Tue Mar 19 02:57:50 GMT 2024

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

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

Back to the top