Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Meta-Data XML or Java
Meta-Data XML or Java [message #104479] Wed, 31 August 2005 07: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 21:05 Go to previous message
Gili Mendel is currently offline Gili MendelFriend
Messages: 338
Registered: July 2009
Senior Member
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 21:05 Go to previous message
Gili Mendel is currently offline Gili MendelFriend
Messages: 338
Registered: July 2009
Senior Member
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: Tue Apr 23 14:21:48 GMT 2024

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

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

Back to the top