Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Uncategorized
Uncategorized [message #638816] Fri, 12 November 2010 16:24 Go to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
Hi,

How can I control which features appear under the "Uncategorized" node
when building a p2 site?

I have three features, call them A, B, and C, and one category, "X". A
should be displayed under X, and I would like B and C to be hidden
unless the user explicitly deselected "group items by category".
Currently B and C are displayed under "Uncategorized".

--
Jesper Eskilson
Developer
IAR Systems
Re: Uncategorized [message #638836 is a reply to message #638816] Fri, 12 November 2010 17:39 Go to previous messageGo to next message
Thorsten Meinl is currently offline Thorsten MeinlFriend
Messages: 85
Registered: July 2009
Member
As far as I know there is no easy way to hide features on an US since
Buckminster automatically creates a category 'Default' with name
'Uncategorized' for all these features. I solved this by running a small
XSLT on the created content.xml:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- Remove "Uncategorized" category -->
<xsl:template match="unit[@id = 'Default']" />

<xsl:template match="@*|node()" priority="-1">
<xsl:copy><xsl:apply-templates select="@*|node()" /></xsl:copy>
</xsl:template>
</xsl:stylesheet>

Cheers,

Thorsten
Re: Uncategorized [message #638922 is a reply to message #638836] Sat, 13 November 2010 08:44 Go to previous messageGo to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
Thorsten Meinl skrev 2010-11-12 18:39:
> As far as I know there is no easy way to hide features on an US since
> Buckminster automatically creates a category 'Default' with name
> 'Uncategorized' for all these features.

Sounds like something that shouldn't be too difficult to fix, right?

--
/Jesper
Re: Uncategorized [message #640726 is a reply to message #638922] Mon, 22 November 2010 22:18 Go to previous message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
+1
Previous Topic:dynamic dependencies
Next Topic:adding properties to config.ini?
Goto Forum:
  


Current Time: Fri Apr 19 19:27:15 GMT 2024

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

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

Back to the top