Skip to main content



      Home
Home » Archived » Visual Editor (VE) » serializing to XML form
serializing to XML form [message #96991] Fri, 08 July 2005 06:45 Go to next message
Eclipse UserFriend
Originally posted by: rush2rahul.hotmail.com

Hi

What is the quickest way to serialize the design diagram to the xml
format? I am using 1.0.2.1.

thx
Rahul.
Re: serializing to XML form [message #97013 is a reply to message #96991] Fri, 08 July 2005 09:38 Go to previous message
Eclipse UserFriend
Rahul Gudla wrote:
> Hi
>
> What is the quickest way to serialize the design diagram to the xml
> format? I am using 1.0.2.1.
>
> thx
> Rahul.

You can searlized the VE model to .xmi by saving the (EMF Resource) model.
In VE 1.1 we save the model into a cache, so that the next time the file
is opened we can load the model directly with out the need to wait for a reParse.

See VEModelCacheUtility.doSaveCache(), The EMF level in 1.0 should work in a similar manner.

File f = ...
FileOutputStream os = new FileOutputStream(f);
(emf)Resource.save(os, options);
os.close();
Re: serializing to XML form [message #609011 is a reply to message #96991] Fri, 08 July 2005 09:38 Go to previous message
Eclipse UserFriend
Rahul Gudla wrote:
> Hi
>
> What is the quickest way to serialize the design diagram to the xml
> format? I am using 1.0.2.1.
>
> thx
> Rahul.

You can searlized the VE model to .xmi by saving the (EMF Resource) model.
In VE 1.1 we save the model into a cache, so that the next time the file
is opened we can load the model directly with out the need to wait for a reParse.

See VEModelCacheUtility.doSaveCache(), The EMF level in 1.0 should work in a similar manner.

File f = ...
FileOutputStream os = new FileOutputStream(f);
(emf)Resource.save(os, options);
os.close();
Previous Topic:Image Flicker Problem
Next Topic:VE properties tab is empty
Goto Forum:
  


Current Time: Sat Jun 21 19:51:10 EDT 2025

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

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

Back to the top