Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Enforcing feature dependencies in Update site
Enforcing feature dependencies in Update site [message #656032] Wed, 23 February 2011 20:05 Go to next message
David  is currently offline David Friend
Messages: 4
Registered: February 2011
Junior Member
Hi all,

Hope someone can help me out with this update site question.

Some background: I have an update site which consists of one category. The category contains three features. One of the features is the "core" feature, the other two are optional extras. Both the optional extra features depend on the core feature being installed.

When the user browses my update site in Eclipse, the ideal behaviour would be that if the user selects one of the optional extra features, then the core feature should automatically be (force) selected.

Is this possible? Can I set a flag either the update site XML, or the feature.xml, to produce this behaviour?

If not, what's the best alternative? The underlying fundamental requirement is that the user cannot install an optional extra without also installing the core feature.

Thanks in advance!
Re: Enforcing feature dependencies in Update site [message #656177 is a reply to message #656032] Thu, 24 February 2011 13:12 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 02/23/2011 03:05 PM, David wrote:
> Is this possible? Can I set a flag either the update site XML, or the
> feature.xml, to produce this behaviour?
> If not, what's the best alternative? The underlying fundamental
> requirement is that the user cannot install an optional extra without
> also installing the core feature.

If your optional features depends on the core feature, they won't
install successfully and the system will explain the missing feature to
users. If your optional features include the code feature, installing
one of them will install the core feature as well.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Enforcing feature dependencies in Update site [message #656395 is a reply to message #656177] Fri, 25 February 2011 12:38 Go to previous message
Martin Skorsky is currently offline Martin SkorskyFriend
Messages: 112
Registered: July 2009
Senior Member
Use something similar to
<requires>
<import feature="core" version="1.1.0" match="compatible"/>
</requires>
in your feature.xml of the optional features. Now the installation of the optional feature installs also the core feature.
Previous Topic:Getting nullpointerexception while fetching current runtime project
Next Topic:problem with a custom incremental builder
Goto Forum:
  


Current Time: Thu Apr 25 13:57:44 GMT 2024

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

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

Back to the top