Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [ve-dev] How to generate XML instead of Java in VEP

Hi Joe,
I chanced upon the post from you  @ http://dev.eclipse.org/mhonarc/lists/ve-dev/msg00012.html
However I couldn't get the XML as mentioned ..
I tried to follow  "Then in the Eclipse workbench that gets opened opened Window->Preferences and select Java->Visual Editor.  A check box labeled "Show XML text" will be there.  "
 
As you see I get the following in my IDE but no "Show XML text"  !!
 
The following is the scenario I want to use VE.
 
1. Supply my own Palette (predefined composites) through the xmi file
2. Let the users use the VE to customise their Forms.
3. When they save it , the XML is saved instead of the Java class.
4. The end users can then load these template forms & use it as input forms for information.
 
Can you suggest me how to get this working ?
 
Cheers,
Ujjwal
-----Original Message-----
From: ve-dev-bounces@xxxxxxxxxxx [mailto:ve-dev-bounces@xxxxxxxxxxx]On Behalf Of Joe Winchester
Sent: Thu, September 08, 2005 6:35 PM
To: Discussions people developing code for the Visual Editor project
Subject: Re: [ve-dev] How to generate XML instead of Java in VEP


Hi Sinha,

The preference page option "Show XML Text" is really a debug option that allows the ability to see the VE model serialized as XML (it is an EMF model that serializes easy to XML).  This model is what is shown and updated by the viewers and also built by code parsing so sometimes when things break it's useful to see the model and see where the break is.  To get the option to show the usual way is if you are starting Eclipse from itself (i.e. with a configuration) visit the Tracing tab of this, select tracing for org.eclipse.ve.java.core and check debug/xmltext.

If you are starting Eclipse and want to do this without having to use a launch configuration you can also do this with a .options file.



Is what you want to do make the VE so it serializes to XML and opens on XML, i.e. has no Java code parsing and generation ?  If so this is a scenario that is supported but right now without a lot of documentation.  One thing we have kept kicking around is the idea of doing a tutorial to show how to get it working with something like XSWT for example, or maybe the JavaBeans XMLEncoder/XMLDecoder format.  It would also help us to get the extension points and API cleaned up if we published it as a tutorial and I think many people would benefit from this.  Is this the kind of scenario that is close to what you want to achieve ?

Best regards,

Joe Winchester

Back to the top