Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Subproject selection behaviour
Subproject selection behaviour [message #1785087] Mon, 09 April 2018 10:41 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 275
Registered: December 2015
Senior Member
I got some time for oomph again :) For capella, I have organized the setup model as follows:

Capella
|
|- Capella Developer
|- Capella Addon Developer
| -Capella Tools Developer

Basically, under "Capella" I define a common target platform, and the subprojects just clone different source code repositories.

Both, the toplevel project and the subprojects define different streams. It seems like the subprojects don't 'inherit' the available streams in the parent, so I have them duplicated. When installing from this model, the developer has to select consistent streams for the toplevel and the subproject, but the toplevel streams only show if one first selects the top project and then deselects the unneeded subprojects. If one selects the subproject directly, the toplevel project doesn't show up in the stream selection part on the bottom. So I arrive at two different states with identical visual tree selection, just with a different selection order. I made a series of screenshots to illustrate:

https://imgur.com/a/iiE9N

The fear is, that a developer will select the subproject only, and thus, won't get the target platform and settings from the toplevel project.

Do you have any ideas on how I could improve this structure?

Re: Subproject selection behaviour [message #1785089 is a reply to message #1785087] Mon, 09 April 2018 11:23 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 275
Registered: December 2015
Senior Member
I went ahead and tested, the installer does seem to do the 'right thing': I get the correct target platform from the corresponding parent project stream, even If I didn't explicitly select one. Dark magic?
Re: Subproject selection behaviour [message #1785111 is a reply to message #1785089] Mon, 09 April 2018 15:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29538
Registered: July 2009
Senior Member
The tri-state check box really can only show three states. When it comes to "inheritance", the subprojects will inherit all tasks in the containing projects and project catalogs, but a subprojects stream is not contained by any other stream so a stream will never inherit tasks from another stream. Only if two streams are selected will the composition of the tasks from both streams be performed.
Re: Subproject selection behaviour [message #1785171 is a reply to message #1785111] Tue, 10 April 2018 09:10 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 275
Registered: December 2015
Senior Member
Ok, so maybe it would be better to move all the tasks from the parent project into a new subproject and give it a really important sounding name to make sure users always select it...
Re: Subproject selection behaviour [message #1785199 is a reply to message #1785171] Tue, 10 April 2018 16:05 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29538
Registered: July 2009
Senior Member
Felix, yes, typically "container" projects are purely that, without a stream and only sub-projects with streams. Note that configurations https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Automation_and_Specialization_with_Configurations are also designed to make things even easier for clients. E.g., EMF's build page has simple instructions for using a Configuration to replicate the development environment and a local Maven/Tycho build: https://ci.eclipse.org/emf/
Previous Topic:Updating Eclipse.ini for default Eclipse Installer
Next Topic:Forcing a P2 Update site inside the Eclipse "Update Sites" preferences
Goto Forum:
  


Current Time: Wed Sep 19 20:48:12 GMT 2018

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

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

Back to the top