register project catalog via start parameter [message #1713059] |
Fri, 30 October 2015 13:19 |
Alexander Nittka Messages: 1193 Registered: July 2009 |
Senior Member |
|
|
As a single user, you simply add the project setups you want to the User projects. Interesting open source projects can have their setups added to the hosted indexes. If your setups' audience is more limited, it is possible to redirect the index itself making custom project catalogs available.
Still, I think the following feature would be great - the ability to add further project (product) catalogs via start parameter (or similar means).
-Doomph.registerAdditional.projectCatalog.cat1=http://whereEver.it.is.located.com/my.custom.catalog.setup
-Doomph.registerAdditional.projectCatalog.cat2=http://whereEver.that.one.is.located.com/my.custom.catalog2.setup
Rather that replacing the complete index (and thereby detaching it from the its progress) having a (more flexible) hook for additional projects would be cool. I guess there would be issues with releative references within these custom catalogs, but I think the pattern "use only absolute locations in the catalog and provide an eclipse ini task registering yourself in the new insance" is acceptable.
A workaround currently possible is redirecting the eclipse and github project catalogs, but it is not nice. (I have not played around with redirecting the root index file only, yet - but that would have similar drawbacks compared to registering additional catalg files.)
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
|
|
|
|
|
Re: register project catalog via start parameter [message #1713487 is a reply to message #1713375] |
Wed, 04 November 2015 14:52 |
Alexander Nittka Messages: 1193 Registered: July 2009 |
Senior Member |
|
|
I just realised that the initial question already contained part of the (or a) solution and that the required changes are quite small:
* add an empty project catalog pluggable.projects.setup to the index directory and a reference to it in the org.eclipse.setup file (required)
* adapt the wizard, so that empty catalogs are not shown, i.e.are unchecked in the upper folder (optional; removes noise for the standard user)
* fix hover for catalogs in the wizard, so that they show the description (optional; would enable brief explanation of how to use the pluggable project catalog)
That way, the standard redirection approach could be used. What do you think?
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
[Updated on: Wed, 04 November 2015 14:53] Report message to a moderator
|
|
|
|
|
|
Re: register project catalog via start parameter [message #1713928 is a reply to message #1713818] |
Sun, 08 November 2015 16:48 |
Alexander Nittka Messages: 1193 Registered: July 2009 |
Senior Member |
|
|
Hi Ed,
I am with you concerning the rewrite rules. And indeed the patches in the ticket I opened follow your suggested solution - only I did not include a product catalog placeholder, yet. From your reply, I am quite hopeful, that the hook for custom catalogs is just around the corner. This is great. I'll update the Wiki-Documentation once the index has been updated.
Alex
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
|
|
|
Powered by
FUDForum. Page generated in 0.04308 seconds