Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Editor Model Options
Editor Model Options [message #175426] Sun, 04 January 2004 06:03 Go to next message
Eclipse UserFriend
Originally posted by: robwms63.yahoo.com

I am writing a plugin that has an editor that is a form, not a text
editor. Eclipse has no problem with this. My question is I'd like to
just persist an XML representation of a rather complex object. I thought
about using the XMLEncoder but remembered that means putting sets and
gets on every property. I'm using 3M6. Here are a few other options I
could think of:

1. Use EMF to generate the XML and XSD and then use that format.
2. Write an adapter that can write out a format and then another to read
it back in (read: nuisance).
3. Use JAXB.

Suggestions?

Thanks,
Rob
Re: Editor Model Options [message #175617 is a reply to message #175426] Mon, 05 January 2004 04:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: robwms63.yahoo.com

XMLEncoder would seem to be a problem as the different classloader used
for the plugin professes ignorance of the classes I want to write out.

Rob Williams wrote:

> I am writing a plugin that has an editor that is a form, not a text
> editor. Eclipse has no problem with this. My question is I'd like to
> just persist an XML representation of a rather complex object. I thought
> about using the XMLEncoder but remembered that means putting sets and
> gets on every property. I'm using 3M6. Here are a few other options I
> could think of:
>
> 1. Use EMF to generate the XML and XSD and then use that format.
> 2. Write an adapter that can write out a format and then another to read
> it back in (read: nuisance).
> 3. Use JAXB.
>
> Suggestions?
>
> Thanks,
> Rob
Re: Editor Model Options [message #175670 is a reply to message #175617] Mon, 05 January 2004 05:26 Go to previous message
Eclipse UserFriend
Originally posted by: robwms63.yahoo.com

Found the note on the Wiki about swapping in the plugin's classloader.
Doesn't seem to work for me; whole thing just hangs attempting to write
out a simple class (like JButton). On some other classes I tried it says
it failed to instantiate the class (probably not a bean).

Rob Williams wrote:

> XMLEncoder would seem to be a problem as the different classloader used
> for the plugin professes ignorance of the classes I want to write out.
>
> Rob Williams wrote:
>
>> I am writing a plugin that has an editor that is a form, not a text
>> editor. Eclipse has no problem with this. My question is I'd like to
>> just persist an XML representation of a rather complex object. I
>> thought about using the XMLEncoder but remembered that means putting
>> sets and gets on every property. I'm using 3M6. Here are a few other
>> options I could think of:
>>
>> 1. Use EMF to generate the XML and XSD and then use that format.
>> 2. Write an adapter that can write out a format and then another to
>> read it back in (read: nuisance).
>> 3. Use JAXB.
>>
>> Suggestions?
>>
>> Thanks,
>> Rob
Previous Topic:URGENT :Getting hold of getSourceViewer through Java Reflection
Next Topic:eclipse M6 fails to startup if plugins installed
Goto Forum:
  


Current Time: Mon Jul 14 03:10:11 EDT 2025

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

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

Back to the top