Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Altering the Eclipse plugin - how to add to product build
Altering the Eclipse plugin - how to add to product build [message #332545] Tue, 28 October 2008 02:26 Go to next message
Eclipse UserFriend
Originally posted by: NOBODY.NOSPAM.COM

Hello group,

I need some guidance on how to substitute a customized Eclipse plugin for a
build. I made some changes to the original org.eclipse.jface.databinding
plugin, and the app runs fine from Eclipse IDE, but now I need to build a
product from it.

I can think of 2 scenarios:

1. replace the original plugin in the Eclipse install directory (which means
exporting the customized plugin into a jar file), or
2. instruct the product build to use the customized plugin instead of the
one in the install directory.

I would much rather prefer option 2, but do not know if this is even
possible. An advice from someone with experience in this matter would be
greatly appreciated.

Thanks,

Alex Molochnikov
Kelman Technologies Inc.
Re: Altering the Eclipse plugin - how to add to product build [message #332554 is a reply to message #332545] Tue, 28 October 2008 15:39 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
First, make sure your jface.databinding has a different version from the
original. Then, the easiest way to make sure yours gets used is to base
your product on features. Then in the feature you can include the
jface.databinding plugin with a specific version instead of 0.0.0.

Note that jface.databinding is not a singleton bundle. If it was, then
it would be sufficient to have your custom version have a higher version
number and the OSGi state used by PDE/Build would then resolve the
higher version. Since it is not a singleton, both versions resolve and
you need to specify which one you want.

-Andrew

Alex Molochnikov wrote:
> Hello group,
>
> I need some guidance on how to substitute a customized Eclipse plugin for a
> build. I made some changes to the original org.eclipse.jface.databinding
> plugin, and the app runs fine from Eclipse IDE, but now I need to build a
> product from it.
>
> I can think of 2 scenarios:
>
> 1. replace the original plugin in the Eclipse install directory (which means
> exporting the customized plugin into a jar file), or
> 2. instruct the product build to use the customized plugin instead of the
> one in the install directory.
>
> I would much rather prefer option 2, but do not know if this is even
> possible. An advice from someone with experience in this matter would be
> greatly appreciated.
>
> Thanks,
>
> Alex Molochnikov
> Kelman Technologies Inc.
>
>
Re: Altering the Eclipse plugin - how to add to product build [message #332566 is a reply to message #332554] Wed, 29 October 2008 05:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: NOBODY.NOSPAM.COM

Thanks, Andrew.

I ended up exporting my version of the plugin, and replacing the original
JAR in Eclipse install plugins folder. The only other thing that I had to do
was re-initialize Eclipse.

Alex

"Andrew Niefer" <aniefer@ca.ibm.com> wrote in message
news:ge7bn5$1lr$1@build.eclipse.org...
> First, make sure your jface.databinding has a different version from the
> original. Then, the easiest way to make sure yours gets used is to base
> your product on features. Then in the feature you can include the
> jface.databinding plugin with a specific version instead of 0.0.0.
>
> Note that jface.databinding is not a singleton bundle. If it was, then
> it would be sufficient to have your custom version have a higher version
> number and the OSGi state used by PDE/Build would then resolve the
> higher version. Since it is not a singleton, both versions resolve and
> you need to specify which one you want.
>
> -Andrew
Re: Altering the Eclipse plugin - how to add to product build [message #332576 is a reply to message #332566] Wed, 29 October 2008 15:54 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
You must be using 3.3 then? I don't think that will work in 3.4 as p2
manages the bundles more closely instead of just using everything in the
plugins directory.

-Andrew

Alex Molochnikov wrote:
> Thanks, Andrew.
>
> I ended up exporting my version of the plugin, and replacing the original
> JAR in Eclipse install plugins folder. The only other thing that I had to do
> was re-initialize Eclipse.
>
> Alex
>
> "Andrew Niefer" <aniefer@ca.ibm.com> wrote in message
> news:ge7bn5$1lr$1@build.eclipse.org...
>> First, make sure your jface.databinding has a different version from the
>> original. Then, the easiest way to make sure yours gets used is to base
>> your product on features. Then in the feature you can include the
>> jface.databinding plugin with a specific version instead of 0.0.0.
>>
>> Note that jface.databinding is not a singleton bundle. If it was, then
>> it would be sufficient to have your custom version have a higher version
>> number and the OSGi state used by PDE/Build would then resolve the
>> higher version. Since it is not a singleton, both versions resolve and
>> you need to specify which one you want.
>>
>> -Andrew
>
>
Re: Altering the Eclipse plugin - how to add to product build [message #332587 is a reply to message #332576] Thu, 30 October 2008 02:44 Go to previous message
Eclipse UserFriend
Originally posted by: NOBODY.NOSPAM.COM

Actually, I am using 3.4, and the replacement of the JAR worked as I
expected it to.

"Andrew Niefer" <aniefer@ca.ibm.com> wrote in message
news:gea107$ppd$1@build.eclipse.org...
> You must be using 3.3 then? I don't think that will work in 3.4 as p2
> manages the bundles more closely instead of just using everything in the
> plugins directory.
Previous Topic:Unable to create editor input
Next Topic:Wizard Help
Goto Forum:
  


Current Time: Wed Jul 17 16:03:10 GMT 2024

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

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

Back to the top