Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Use features or other method to replace class
Use features or other method to replace class [message #136384] Fri, 26 September 2003 07:13 Go to next message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

Is this possible with features to replace existed class in plugin?
For example I have small patch to exclude Swing/AWT and some other classes
from code completion. But it changes existed classes from JDT Core/UI. If
I start runtime workbench, feature replaces JDT classes, but when I start
separate Eclipse - no. I think that reason is in order of plugin loading
for runtime workbench, so this is just bug that it works.
So, is there any good way do replace class? Only way I know is to change
plugin.xml and add my jar before original jar's. Does not looks as good way...

--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: Use features or other method to replace class [message #136666 is a reply to message #136384] Fri, 26 September 2003 12:04 Go to previous messageGo to next message
Eclipse UserFriend
You mean, you replaced a few classes in a given plugin, wrote a feature,
installed the feature, restart Eclipse, and the new feature is not used?
Did you check Help > About > Configuration Details to see what
version of your feature is loaded?

Chris

"Konstantin Scheglov" <scheglov_ke@nlmk.ru> wrote in message
news:kENZ58BhDHA.3452@fairy.ao.nlmk...
> Is this possible with features to replace existed class in plugin?
> For example I have small patch to exclude Swing/AWT and some other
classes
> from code completion. But it changes existed classes from JDT Core/UI. If
> I start runtime workbench, feature replaces JDT classes, but when I start
> separate Eclipse - no. I think that reason is in order of plugin loading
> for runtime workbench, so this is just bug that it works.
> So, is there any good way do replace class? Only way I know is to change
> plugin.xml and add my jar before original jar's. Does not looks as good
way...
>
> --
> SY, Konstantin.
> Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: Use features or other method to replace class [message #136688 is a reply to message #136384] Fri, 26 September 2003 12:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dorian.birsan.net

"Konstantin Scheglov" <scheglov_ke@nlmk.ru> wrote in message
news:kENZ58BhDHA.3452@fairy.ao.nlmk...
> Is this possible with features to replace existed class in plugin?

You can probably create a feature patch for JDT and install it using the
update manager. Take a look at the Patches section at
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -update-home/doc/new_in_2.0.2.html
and in the online docs
http://help.eclipse.org/help21/topic/org.eclipse.platform.do c.isv/reference/misc/feature_archive.html

-Dorian

> For example I have small patch to exclude Swing/AWT and some other
classes
> from code completion. But it changes existed classes from JDT Core/UI. If
> I start runtime workbench, feature replaces JDT classes, but when I start
> separate Eclipse - no. I think that reason is in order of plugin loading
> for runtime workbench, so this is just bug that it works.
> So, is there any good way do replace class? Only way I know is to change
> plugin.xml and add my jar before original jar's. Does not looks as good
way...
>
> --
> SY, Konstantin.
> Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: Use features or other method to replace class [message #137365 is a reply to message #136666] Mon, 29 September 2003 08:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

Chris Laffra <Chris_Laffra@oti.com> wrote:

I mean that I want to replace several classes in JDT.
So, I create feature where I place these classes and change them.
When I start Runtime workbench, I see that classes are changed, they
work different than standard ones, so this is OK.
When I start separate Eclipse (with feature, and feature is loaded) - I see
that classes remain unchanged.


> You mean, you replaced a few classes in a given plugin, wrote a feature,
> installed the feature, restart Eclipse, and the new feature is not used?
> Did you check Help > About > Configuration Details to see what
> version of your feature is loaded?

> Chris

> "Konstantin Scheglov" <scheglov_ke@nlmk.ru> wrote in message
> news:kENZ58BhDHA.3452@fairy.ao.nlmk...
>> Is this possible with features to replace existed class in plugin?
>> For example I have small patch to exclude Swing/AWT and some other
> classes
>> from code completion. But it changes existed classes from JDT Core/UI. If
>> I start runtime workbench, feature replaces JDT classes, but when I start
>> separate Eclipse - no. I think that reason is in order of plugin loading
>> for runtime workbench, so this is just bug that it works.
>> So, is there any good way do replace class? Only way I know is to change
>> plugin.xml and add my jar before original jar's. Does not looks as good
> way...
>>
>> --
>> SY, Konstantin.
>> Advanced Eclipse SWT Designer (http://www.swt-designer.com)



--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: Use features or other method to replace class [message #137375 is a reply to message #136688] Mon, 29 September 2003 08:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

dorian birsan <dorian@birsan.net> wrote:

>> Is this possible with features to replace existed class in plugin?
> You can probably create a feature patch for JDT and install it using the
> update manager. Take a look at the Patches section at
> http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -update-home/doc/new_in_2.0.2.html
Hmm... Please correct me if I am wrong, but it seams that this related only
with update manager? I don't want to change original jar's using update
manager, I want to do this only by plugin (feature) installation.


> and in the online docs
> http://help.eclipse.org/help21/topic/org.eclipse.platform.do c.isv/reference/misc/feature_archive.html

> -Dorian

>> For example I have small patch to exclude Swing/AWT and some other
> classes
>> from code completion. But it changes existed classes from JDT Core/UI. If
>> I start runtime workbench, feature replaces JDT classes, but when I start
>> separate Eclipse - no. I think that reason is in order of plugin loading
>> for runtime workbench, so this is just bug that it works.
>> So, is there any good way do replace class? Only way I know is to change
>> plugin.xml and add my jar before original jar's. Does not looks as good
> way...
>>
>> --
>> SY, Konstantin.
>> Advanced Eclipse SWT Designer (http://www.swt-designer.com)



--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: Use features or other method to replace class [message #137611 is a reply to message #137375] Mon, 29 September 2003 15:31 Go to previous message
Eclipse UserFriend
Originally posted by: dorian.birsan.net

"Konstantin Scheglov" <scheglov_ke@nlmk.ru> wrote in message
news:oO4l%23KohDHA.4044@fairy.ao.nlmk...
> dorian birsan <dorian@birsan.net> wrote:
>
> >> Is this possible with features to replace existed class in plugin?
> > You can probably create a feature patch for JDT and install it using the
> > update manager. Take a look at the Patches section at
> >
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -update-home/doc/new_in_2.0.2.html
> Hmm... Please correct me if I am wrong, but it seams that this related
only
> with update manager? I don't want to change original jar's using update
> manager, I want to do this only by plugin (feature) installation.

A patch is not actually modifying existing features/plugins, but installs
newer patched versions. Patches are only needed when you want to update an
included feature that is not a root feature, but this may not always work,
depending on the update policy.
At worst, create a new feature (with a new feature id) that ships a newer
version of the plugin you want to change and install it. The platform will,
at runtime, pick the higher version.

>
>
> > and in the online docs
> >
http://help.eclipse.org/help21/topic/org.eclipse.platform.do c.isv/reference/misc/feature_archive.html
>
> > -Dorian
>
> >> For example I have small patch to exclude Swing/AWT and some other
> > classes
> >> from code completion. But it changes existed classes from JDT Core/UI.
If
> >> I start runtime workbench, feature replaces JDT classes, but when I
start
> >> separate Eclipse - no. I think that reason is in order of plugin
loading
> >> for runtime workbench, so this is just bug that it works.
> >> So, is there any good way do replace class? Only way I know is to
change
> >> plugin.xml and add my jar before original jar's. Does not looks as good
> > way...
> >>
> >> --
> >> SY, Konstantin.
> >> Advanced Eclipse SWT Designer (http://www.swt-designer.com)
>
>
>
> --
> SY, Konstantin.
> Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Previous Topic:Opening dialogs from a plugin
Next Topic:External Tools Builder priority
Goto Forum:
  


Current Time: Sat May 10 10:37:26 EDT 2025

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

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

Back to the top