[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Re: equinox-dev Digest, How to recognize Categories, Features, , Bundles and Products?

I am implementing a p2 repository tree view in Buckminster Aggregator. I want it to look similar to what is displayed in the p2 installer UI, so I am trying to get oriented in the IU categorization - but I got confused.

I hope that my intention is now clearer and you can help me with this issue.



equinox-dev-request@xxxxxxxxxxx napsal(a):

Message: 2
Date: Sat, 19 Sep 2009 11:01:13 -0400
From: Jeff McAffer <jeff@xxxxxxxxxxxxxxxxx>
Subject: Re: [equinox-dev] How to recognize Categories, Features,
	Bundles and Products?
To: Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
Message-ID: <1BADD6A2-F763-43C2-950E-A5F42F8D106F@xxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

Perhaps some information on why you are doing this would help.  It  
seems that you are infering some semantics from things that just  
*happen* to be a certain way. This may change in the future so  
understanding what you are actually looking for would help.


On 18-Sep-09, at 5:53 AM, Filip Hrbek wrote:

Hi all,

I have difficulties with IU analysis. I wonder what determines the  
type of an IU.

Basically we can analyze following properties:

1) does ID end with ".feature.group" or not?
2) is "org.eclipse.equinox.p2.type.category" set to true?
3) is "org.eclipse.equinox.p2.type.group" set to true?

My guess is that this we could use following algorithm:

(iu.getProperty(IInstallableUnit.PROP_TYPE_CATEGORY))) {
                return NESTED_CATEGORY;
                return CATEGORY;
            return PRODUCT;
            return FEATURE;
            return FRAGMENT;
            return BUNDLE;
        return OTHER;

You may have noticed that I also used two category variants - normal  
and nested. This is an attempt to handle cases such as http://download.eclipse.org/releases/galileo 
 | General Purpose Tools | PDE/API Tools Environment Descriptions.

The algorithm looks fairly complicated. Is there any standard method  
for this in p2 code? If not, is my suggestion correct?



Filip Hrbek  |  filip.hrbek@xxxxxxxxxxxxxx  |  +420.777.662642  |   
skype: filip.hrbek
CLOUDSMITH  |  Czech Republic
equinox-dev mailing list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://dev.eclipse.org/mailman/private/equinox-dev/attachments/20090919/475613ca/attachment.html


equinox-dev mailing list

End of equinox-dev Digest, Vol 53, Issue 25

Filip Hrbek  |  filip.hrbek@xxxxxxxxxxxxxx  |  +420.777.662642  |  skype: filip.hrbek
CLOUDSMITH  |  Czech Republic