Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Meta-Data XML or Java
Meta-Data XML or Java [message #104479] Wed, 31 August 2005 03:55 Go to next message
Eclipse UserFriend
Originally posted by: nightblue99.yahoo.com

Hi;

Why Visual editor saves the design content in Java source file? Is
possible to use any other meta-data to save the design? and how?

Thanks;
Re: Meta-Data XML or Java [message #104569 is a reply to message #104479] Wed, 31 August 2005 17:05 Go to previous message
Eclipse UserFriend
nightblue wrote:
>
> Hi;
>
> Why Visual editor saves the design content in Java source file? Is
> possible to use any other meta-data to save the design? and how?
>
> Thanks;
>

Actually VE translates the source to an EMF model by reverse parsing the code, and modeling only visual relevant items.
After the first open, VE will save a cached version of the emf model as XMI:

<Workspace>.metadata\.plugins\org.eclipse.core.resources\.projects\ <projectName>\org.eclipse.ve.java.core\.cache\emfmodel\<FileName >
You can opened it up with IE (or anything that knows how to render XML) and take a peek.

VE tries to use this cache when the file is reOpened to speed up revers parsing.
See VEModelCacheUtility.doSaveCache() of how it is saved.
Re: Meta-Data XML or Java [message #610464 is a reply to message #104479] Wed, 31 August 2005 17:05 Go to previous message
Eclipse UserFriend
nightblue wrote:
>
> Hi;
>
> Why Visual editor saves the design content in Java source file? Is
> possible to use any other meta-data to save the design? and how?
>
> Thanks;
>

Actually VE translates the source to an EMF model by reverse parsing the code, and modeling only visual relevant items.
After the first open, VE will save a cached version of the emf model as XMI:

<Workspace>.metadata\.plugins\org.eclipse.core.resources\.projects\ <projectName>\org.eclipse.ve.java.core\.cache\emfmodel\<FileName >
You can opened it up with IE (or anything that knows how to render XML) and take a peek.

VE tries to use this cache when the file is reOpened to speed up revers parsing.
See VEModelCacheUtility.doSaveCache() of how it is saved.
Previous Topic:Problem - Opening existing project - have lost design view
Next Topic:xml model adapter
Goto Forum:
  


Current Time: Wed Apr 30 06:04:21 EDT 2025

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

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

Back to the top