Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Features & Fragments
Features & Fragments [message #156604] Thu, 13 November 2003 23:51 Go to next message
Eclipse UserFriend
Originally posted by: dcorbin.machturtle.com

I have a plugin that requires a JNI library. Currently I have four
different fragemnts for four libraries on four different platforms. In
addition, I have a 3 other plugins (pure Java) that depend on the fragment,
and four features -- one for each platform containing the three pure
plugins and that platform-appropriate fragment.

The question is, what are the choices for having a single feature instead of
four? I imagine I could make one fragment supporting all four platforms,
though this seems a little wasteful.

Is there anyway to have a feature say "one of these four fragments depending
on the installing platform"?

Thanks
David Corbin
Re: Features & Fragments [message #156613 is a reply to message #156604] Fri, 14 November 2003 01:25 Go to previous messageGo to next message
Eclipse UserFriend
There is a thread called "Plugin packaging with platform dependent file"
posted earlier today that talks about this. For convenience I will
repost my reply though:

This is totally possible, open up your feature.xml in the manifest
editor and go to the content tab. There should be a list of the plugins
and fragments that you want to include in the feature. Put all of the
plugins/fragments from all platforms into here.

Let's say you have a plugin named foo. You then have two fragments
foo.linux and foo.windows. Right click on foo.linux and go to
properties. In the properties in the bottom select the correct
attributes such as x86, linux, gtk, etc.

Do the same for windows but select values such as x86, win32, win32, etc.

-Phil



David Corbin wrote:
> I have a plugin that requires a JNI library. Currently I have four
> different fragemnts for four libraries on four different platforms. In
> addition, I have a 3 other plugins (pure Java) that depend on the fragment,
> and four features -- one for each platform containing the three pure
> plugins and that platform-appropriate fragment.
>
> The question is, what are the choices for having a single feature instead of
> four? I imagine I could make one fragment supporting all four platforms,
> though this seems a little wasteful.
>
> Is there anyway to have a feature say "one of these four fragments depending
> on the installing platform"?
>
> Thanks
> David Corbin
>
Re: Features & Fragments [message #156743 is a reply to message #156613] Fri, 14 November 2003 07:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcorbin.machturtle.com

Philip Borlin wrote:

> There is a thread called "Plugin packaging with platform dependent file"
> posted earlier today that talks about this. For convenience I will
> repost my reply though:
>
> This is totally possible, open up your feature.xml in the manifest
> editor and go to the content tab. There should be a list of the plugins
> and fragments that you want to include in the feature. Put all of the
> plugins/fragments from all platforms into here.
>
> Let's say you have a plugin named foo. You then have two fragments
> foo.linux and foo.windows. Right click on foo.linux and go to
> properties. In the properties in the bottom select the correct
> attributes such as x86, linux, gtk, etc.
>
> Do the same for windows but select values such as x86, win32, win32, etc.
>
> -Phil
>

Many thanks. I figured it had to be.

>
>
> David Corbin wrote:
>> I have a plugin that requires a JNI library. Currently I have four
>> different fragemnts for four libraries on four different platforms. In
>> addition, I have a 3 other plugins (pure Java) that depend on the
>> fragment, and four features -- one for each platform containing the three
>> pure plugins and that platform-appropriate fragment.
>>
>> The question is, what are the choices for having a single feature instead
>> of
>> four? I imagine I could make one fragment supporting all four platforms,
>> though this seems a little wasteful.
>>
>> Is there anyway to have a feature say "one of these four fragments
>> depending on the installing platform"?
>>
>> Thanks
>> David Corbin
>>
Re: Features & Fragments [message #159977 is a reply to message #156743] Fri, 21 November 2003 05:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcorbin.machturtle.com

> Philip Borlin wrote:
>
>> There is a thread called "Plugin packaging with platform dependent file"
>> posted earlier today that talks about this. For convenience I will
>> repost my reply though:
>>
>> This is totally possible, open up your feature.xml in the manifest
>> editor and go to the content tab. There should be a list of the plugins
>> and fragments that you want to include in the feature. Put all of the
>> plugins/fragments from all platforms into here.
>>
>> Let's say you have a plugin named foo. You then have two fragments
>> foo.linux and foo.windows. Right click on foo.linux and go to
>> properties. In the properties in the bottom select the correct
>> attributes such as x86, linux, gtk, etc.
>>
>> Do the same for windows but select values such as x86, win32, win32, etc.
>>
>> -Phil
>>
>
> Many thanks. I figured it had to be.
>

That worked well. Now, I've got to something similar, based on Eclipse
versions. But I don't see a way to make the fragment requirement based on
Eclipse version.

Thanks.
David
Re: Features & Fragments [message #160037 is a reply to message #159977] Fri, 21 November 2003 09:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manahan.NOSPAM.ca.ibm.com

David Corbin wrote:

>
> That worked well. Now, I've got to something similar, based on Eclipse
> versions. But I don't see a way to make the fragment requirement based on
> Eclipse version.
>
> Thanks.
> David

Require the eclipse feature's you need in your feature. Is there a
situation where you feel you need the fragment to target a specific
Eclipse version rather than the plugin of which it is a part of?

Peter
Re: Features & Fragments [message #160286 is a reply to message #160037] Fri, 21 November 2003 14:51 Go to previous message
Eclipse UserFriend
Peter Manahan wrote:

>
>
> David Corbin wrote:
>
>>
>> That worked well. Now, I've got to something similar, based on Eclipse
>> versions. But I don't see a way to make the fragment requirement based
>> on Eclipse version.
>>
>> Thanks.
>> David
>
> Require the eclipse feature's you need in your feature. Is there a
> situation where you feel you need the fragment to target a specific
> Eclipse version rather than the plugin of which it is a part of?
>
> Peter

Well, I don't have the specifics handy, but in Eclipse 3.0, APIs are being
broken. One solution to working with both 2.x and 3.0 is to use fragments
that match Eclipse versions. At the moment, I think I'm going to use
another solution, but it seems like a natural thing to want to do for me.

David
Previous Topic:Eclipse hangs with linux 2.6 test9
Next Topic:Installed Features
Goto Forum:
  


Current Time: Tue Jul 15 15:22:21 EDT 2025

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

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

Back to the top