Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Does anyone know of an XML editor which works with M5
Does anyone know of an XML editor which works with M5 [message #161538] Tue, 25 November 2003 16:10 Go to next message
Colin Sampaleanu is currently offline Colin SampaleanuFriend
Messages: 22
Registered: July 2009
Junior Member
M5 seems to have broken the XMLBuddy plugin, which I was using
successfully with M4, as some classes have been moved around. I get the
following error:

> java.lang.NoClassDefFoundError:org/eclipse/jface/text/BadLoc ationException

This is actually the same error I get from another plugin, Spindle,
which worked fine with M4.

The SolarEclipse XML editor also does not seem to work any longer in M5.

Does anybody know of a solution for editing XML with M5?

Regards,
Colin
Re: Does anyone know of an XML editor which works with M5 [message #161612 is a reply to message #161538] Tue, 25 November 2003 17:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marcus.edwards.digitalsteps.com

"Colin Sampaleanu" <colinml1@exis.com> wrote in message
news:bpvupk$mni$1@eclipse.org...
> M5 seems to have broken the XMLBuddy plugin, which I was using
> successfully with M4, as some classes have been moved around. I get the
> following error:

A quick hack would be to include the line <import
plugin="org.eclipse.jface.text" export="true"/> in the '<requires>' section
of the plugin.xml file.
I've added this line to the org.eclipse.ui plugin so that any other plugin
that needs this import gets it. I've not experienced any problems with my M5
installation as a result of making this hack.

HTH,
Marcus
Re: Does anyone know of an XML editor which works with M5 [message #161644 is a reply to message #161538] Tue, 25 November 2003 18:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jgangemi.yahoo.com

you can fix the xmlbuddy plugin yourself by quickly editting the plugin.xml
file.

under the "requires" xml tag, just add the following line:

<import plugin="org.eclipse.jface.text"/>

-jae


On Tue, 25 Nov 2003 11:10:34 -0500, Colin Sampaleanu <colinml1@exis.com> wrote:

>M5 seems to have broken the XMLBuddy plugin, which I was using
>successfully with M4, as some classes have been moved around. I get the
>following error:
>
> > java.lang.NoClassDefFoundError:org/eclipse/jface/text/BadLoc ationException
>
>This is actually the same error I get from another plugin, Spindle,
>which worked fine with M4.
>
>The SolarEclipse XML editor also does not seem to work any longer in M5.
>
>Does anybody know of a solution for editing XML with M5?
>
>Regards,
>Colin
Re: Does anyone know of an XML editor which works with M5 [message #161738 is a reply to message #161538] Tue, 25 November 2003 19:12 Go to previous messageGo to next message
Kevin Duffey is currently offline Kevin DuffeyFriend
Messages: 304
Registered: July 2009
Senior Member
More than likely they moved that exception class somewhere. The downside to
dynamic resolution of code is that code compiled against one version at
compile time can't guarantee at runtime the same class/pacakge names. I bet
if you open up the jface plugin that the BadLocationException is found in,
you'll see it was moved from that location to somewhere else or removed
completely.


"Colin Sampaleanu" <colinml1@exis.com> wrote in message
news:bpvupk$mni$1@eclipse.org...
> M5 seems to have broken the XMLBuddy plugin, which I was using
> successfully with M4, as some classes have been moved around. I get the
> following error:
>
>
> java.lang.NoClassDefFoundError:org/eclipse/jface/text/BadLoc ationException
>
> This is actually the same error I get from another plugin, Spindle,
> which worked fine with M4.
>
> The SolarEclipse XML editor also does not seem to work any longer in M5.
>
> Does anybody know of a solution for editing XML with M5?
>
> Regards,
> Colin
>
Re: Does anyone know of an XML editor which works with M5 [message #161797 is a reply to message #161612] Tue, 25 November 2003 20:39 Go to previous messageGo to next message
Colin Sampaleanu is currently offline Colin SampaleanuFriend
Messages: 22
Registered: July 2009
Junior Member
Marcus Edwards wrote:
> "Colin Sampaleanu" <colinml1@exis.com> wrote in message
> news:bpvupk$mni$1@eclipse.org...
>
>>M5 seems to have broken the XMLBuddy plugin, which I was using
>>successfully with M4, as some classes have been moved around. I get the
>>following error:
>
>
> A quick hack would be to include the line <import
> plugin="org.eclipse.jface.text" export="true"/> in the '<requires>' section
> of the plugin.xml file.
> I've added this line to the org.eclipse.ui plugin so that any other plugin
> that needs this import gets it. I've not experienced any problems with my M5
> installation as a result of making this hack.

For XmlBuddy I was able to modify xmlbuddy itself to add this
requirement as suggested by another poster (as opposed to modifying
org.eclipse.ui).

However, to get another plugin going, which has a bunch of internal
plugins, I did modify org.eclipse.ui like this, as it was a lot less
work, and all seems to be fine.

I am wondering however if anybody knows the performance implications of
doing this? I presume that any time org.eclipse.ui is brought in, so
will org.eclipse.jface.text. What is the classloading setup w/regards to
loading plugins. If org.eclipse.jface.text is requested by x different
plugins, is a new classloader (and hence a copy of the classes) created
for each importation, or only each importation of a specific version?

Regards,
Colin
Re: Does anyone know of an XML editor which works with M5 [message #162227 is a reply to message #161644] Wed, 26 November 2003 14:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

Really? This is kind of embarrassing, if true. It didn't work for me. The
next error I see has to do with openEditor(), which was both moved and
changed in M5.

Bob
http://xmlbuddy.com/

"jae" <jgangemi@yahoo.com> wrote in message
news:1d87sv448l85jhtrln1rcpfm0a67ot05jr@4ax.com...
>
> you can fix the xmlbuddy plugin yourself by quickly editting the
plugin.xml
> file.
>
> under the "requires" xml tag, just add the following line:
>
> <import plugin="org.eclipse.jface.text"/>
>
> -jae
>
>
> On Tue, 25 Nov 2003 11:10:34 -0500, Colin Sampaleanu <colinml1@exis.com>
wrote:
>
> >M5 seems to have broken the XMLBuddy plugin, which I was using
> >successfully with M4, as some classes have been moved around. I get the
> >following error:
> >
> >
> java.lang.NoClassDefFoundError:org/eclipse/jface/text/BadLoc ationException
> >
> >This is actually the same error I get from another plugin, Spindle,
> >which worked fine with M4.
> >
> >The SolarEclipse XML editor also does not seem to work any longer in M5.
> >
> >Does anybody know of a solution for editing XML with M5?
> >
> >Regards,
> >Colin
>
Re: Does anyone know of an XML editor which works with M5 [message #162260 is a reply to message #161797] Wed, 26 November 2003 15:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

"Colin Sampaleanu" <colinml1@exis.com> wrote in message
news:3FC3BE0A.8030800@exis.com...
> Marcus Edwards wrote:
> > "Colin Sampaleanu" <colinml1@exis.com> wrote in message
> > news:bpvupk$mni$1@eclipse.org...
> >
> >>M5 seems to have broken the XMLBuddy plugin, which I was using
> >>successfully with M4, as some classes have been moved around. I get the
> >>following error:
> >
> >
> > A quick hack would be to include the line <import
> > plugin="org.eclipse.jface.text" export="true"/> in the '<requires>'
section
> > of the plugin.xml file.
> > I've added this line to the org.eclipse.ui plugin so that any other
plugin
> > that needs this import gets it. I've not experienced any problems with
my M5
> > installation as a result of making this hack.
>
> For XmlBuddy I was able to modify xmlbuddy itself to add this
> requirement as suggested by another poster (as opposed to modifying
> org.eclipse.ui).

And here I was thinking this would be hard. ;-}

No, seriously. You can open an XML file and edit it with this patch, but you
can't create a new one using the wizard. The openEditor() method used by the
wizard not only moved to a new class but it changed arguments. Also, there's
the "strange cursor" problem, etc.

It will take me a couple of days to sort this out. If you can limp along
with the workaround for a bit, that would be great. Otherwise, send me mail
to bugs at xmlbuddy dot com so I will be sure to let you know when this is
fixed. That goes for everyone affected.

Sorry for the inconvenience.

Bob Foster
http://xmlbuddy.com/

>
> However, to get another plugin going, which has a bunch of internal
> plugins, I did modify org.eclipse.ui like this, as it was a lot less
> work, and all seems to be fine.
>
> I am wondering however if anybody knows the performance implications of
> doing this? I presume that any time org.eclipse.ui is brought in, so
> will org.eclipse.jface.text. What is the classloading setup w/regards to
> loading plugins. If org.eclipse.jface.text is requested by x different
> plugins, is a new classloader (and hence a copy of the classes) created
> for each importation, or only each importation of a specific version?
>
> Regards,
> Colin
>
Re: Does anyone know of an XML editor which works with M5 [message #162289 is a reply to message #162260] Wed, 26 November 2003 15:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jgangemi.yahoo.com

ahh - i didn't realize that the wizards didn't work (i don't use them).

i would recommend looking at the porting guide

Help->Help Contents->Platform Plugin Dev Guide->Porting

it details out what changed and moved to where, so you should be able to
resolve these issues rather quickly.

a quick glance suggests that you would need to import org.eclipse.ui.editor,
but since i'm not 100% sure of the underlying impl, there may be more you need
to add.

scroll down to the 2nd table and you should find what you're looking for.

On Wed, 26 Nov 2003 09:04:27 -0600, "Bob Foster" <bob@objfac.com> wrote:

>
>"Colin Sampaleanu" <colinml1@exis.com> wrote in message
>news:3FC3BE0A.8030800@exis.com...
>> Marcus Edwards wrote:
>> > "Colin Sampaleanu" <colinml1@exis.com> wrote in message
>> > news:bpvupk$mni$1@eclipse.org...
>> >
>> >>M5 seems to have broken the XMLBuddy plugin, which I was using
>> >>successfully with M4, as some classes have been moved around. I get the
>> >>following error:
>> >
>> >
>> > A quick hack would be to include the line <import
>> > plugin="org.eclipse.jface.text" export="true"/> in the '<requires>'
>section
>> > of the plugin.xml file.
>> > I've added this line to the org.eclipse.ui plugin so that any other
>plugin
>> > that needs this import gets it. I've not experienced any problems with
>my M5
>> > installation as a result of making this hack.
>>
>> For XmlBuddy I was able to modify xmlbuddy itself to add this
>> requirement as suggested by another poster (as opposed to modifying
>> org.eclipse.ui).
>
>And here I was thinking this would be hard. ;-}
>
>No, seriously. You can open an XML file and edit it with this patch, but you
>can't create a new one using the wizard. The openEditor() method used by the
>wizard not only moved to a new class but it changed arguments. Also, there's
>the "strange cursor" problem, etc.
>
>It will take me a couple of days to sort this out. If you can limp along
>with the workaround for a bit, that would be great. Otherwise, send me mail
>to bugs at xmlbuddy dot com so I will be sure to let you know when this is
>fixed. That goes for everyone affected.
>
>Sorry for the inconvenience.
>
>Bob Foster
>http://xmlbuddy.com/
>
>>
>> However, to get another plugin going, which has a bunch of internal
>> plugins, I did modify org.eclipse.ui like this, as it was a lot less
>> work, and all seems to be fine.
>>
>> I am wondering however if anybody knows the performance implications of
>> doing this? I presume that any time org.eclipse.ui is brought in, so
>> will org.eclipse.jface.text. What is the classloading setup w/regards to
>> loading plugins. If org.eclipse.jface.text is requested by x different
>> plugins, is a new classloader (and hence a copy of the classes) created
>> for each importation, or only each importation of a specific version?
>>
>> Regards,
>> Colin
>>
>
Re: Does anyone know of an XML editor which works with M5 [message #162523 is a reply to message #162260] Wed, 26 November 2003 22:01 Go to previous messageGo to next message
Scott Ellsworth is currently offline Scott EllsworthFriend
Messages: 20
Registered: July 2009
Junior Member
In article <bq2eak$ero$1@eclipse.org>, "Bob Foster" <bob@objfac.com>
wrote:

> It will take me a couple of days to sort this out. If you can limp along
> with the workaround for a bit, that would be great. Otherwise, send me mail
> to bugs at xmlbuddy dot com so I will be sure to let you know when this is
> fixed. That goes for everyone affected.

I note your comments that M5 is neither forward nor backwards
compatible, and thus XmlBuddy is not targetted to it. Do you expect it
to be locked down a bit better by M6 (Dec 19?)

Scott
Re: Does anyone know of an XML editor which works with M5 [message #162587 is a reply to message #162523] Thu, 27 November 2003 00:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

"Scott Ellsworth" <scott@alodar.com> wrote in message
news:scott-D2BDAB.14014526112003@eclipse.org...
> In article <bq2eak$ero$1@eclipse.org>, "Bob Foster" <bob@objfac.com>
> wrote:
>
> > It will take me a couple of days to sort this out. If you can limp along
> > with the workaround for a bit, that would be great. Otherwise, send me
mail
> > to bugs at xmlbuddy dot com so I will be sure to let you know when this
is
> > fixed. That goes for everyone affected.
>
> I note your comments that M5 is neither forward nor backwards
> compatible, and thus XmlBuddy is not targetted to it. Do you expect it
> to be locked down a bit better by M6 (Dec 19?)

I am told the release plan says that M6 will have the last breaking api
changes. At any rate, I plan to ship an M6-compatible version simultaneously
with M6 or (last-minute breakage is always possible) very shortly
thereafter. Thereafter, there will be two versions of XMLBuddy, one for
2.1.x and one for 3.0, until 3.0 ships.

Bob Foster
http://xmlbuddy.com/
Re: Does anyone know of an XML editor which works with M5 [message #163049 is a reply to message #161797] Thu, 27 November 2003 18:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

Each plugin has its own classloader, and all code in that plugin is only
every loaded by that single classloader. So no, adding imports has no
effect on the number of loaded copies of a class. Adding unused plugin
imports actually introduces a small performance hit on classloading,
because that pre-requisite will be searched when looking for classes.
However, this hit is quite small (you probably won't be able to detect
it with a profiling tool).
--

Colin Sampaleanu wrote:
> I am wondering however if anybody knows the performance implications of
> doing this? I presume that any time org.eclipse.ui is brought in, so
> will org.eclipse.jface.text. What is the classloading setup w/regards to
> loading plugins. If org.eclipse.jface.text is requested by x different
> plugins, is a new classloader (and hence a copy of the classes) created
> for each importation, or only each importation of a specific version?
>
> Regards,
> Colin
>
Re: Does anyone know of an XML editor which works with M5 [message #164300 is a reply to message #162587] Mon, 01 December 2003 20:58 Go to previous message
Scott Ellsworth is currently offline Scott EllsworthFriend
Messages: 20
Registered: July 2009
Junior Member
In article <bq3gh2$mjv$1@eclipse.org>, "Bob Foster" <bob@objfac.com>
wrote:

> "Scott Ellsworth" <scott@alodar.com> wrote in message
> news:scott-D2BDAB.14014526112003@eclipse.org...
> > In article <bq2eak$ero$1@eclipse.org>, "Bob Foster" <bob@objfac.com>
> > wrote:
> >
> > > It will take me a couple of days to sort this out. If you can limp along
> > > with the workaround for a bit, that would be great. Otherwise, send me
> mail
> > > to bugs at xmlbuddy dot com so I will be sure to let you know when this
> is
> > > fixed. That goes for everyone affected.
> >
> > I note your comments that M5 is neither forward nor backwards
> > compatible, and thus XmlBuddy is not targetted to it. Do you expect it
> > to be locked down a bit better by M6 (Dec 19?)
>
> I am told the release plan says that M6 will have the last breaking api
> changes. At any rate, I plan to ship an M6-compatible version simultaneously
> with M6 or (last-minute breakage is always possible) very shortly
> thereafter. Thereafter, there will be two versions of XMLBuddy, one for
> 2.1.x and one for 3.0, until 3.0 ships.

Thanks - that makes a lot of sense. Since I am busily working in the
SOAP and Perl world this month, I can even wait patiently.

Scott
scott@alodar.com
Java, Cocoa, WebObjects and database consulting
Previous Topic:deleting build directory
Next Topic:Custom class loader
Goto Forum:
  


Current Time: Wed Jul 17 23:37:06 GMT 2024

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

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

Back to the top