Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » register project catalog via start parameter
register project catalog via start parameter [message #1713059] Fri, 30 October 2015 13:19 Go to next message
Alexander Nittka is currently offline Alexander NittkaFriend
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 #1713338 is a reply to message #1713059] Tue, 03 November 2015 13:15 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Any updates in this direction? I still cannot figure out the right way to declare own catalogs.
Re: register project catalog via start parameter [message #1713375 is a reply to message #1713338] Tue, 03 November 2015 16:09 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

as the initial question indicates, you can redirect the entire index (where you can then add your own catalogs). Have a look at https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Hosting_your_own_index_.2F_catalogs or https://github.com/nittka/oomph-playground

The latter contains a proof of concept with a somewhat more detailed explanation. If you want to host your own index, be sure to obtain the latest original sources as a starting point. I don't know whether there is a more elegant way than cloning the entire git repo (https://git.eclipse.org/r/oomph/org.eclipse.oomph is the clone location mentioned at the bottom of http://git.eclipse.org/c/oomph/org.eclipse.oomph.git) and then using only the setups part. If you have a recursive web crawler you could start it at http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/ which is the root location of the index.


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 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
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 #1713559 is a reply to message #1713487] Thu, 05 November 2015 07:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
How do you imagine using this though? Are you planning to redistribute
the installer with a modified eclipse-inst.ini?

On 04/11/2015 3:52 PM, Alexander Nittka wrote:
> 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)
>
> What do you think?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: register project catalog via start parameter [message #1713588 is a reply to message #1713559] Thu, 05 November 2015 10:55 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Yes, that's the idea and we already do that. In order to provide simple access to our projects, currently, the entire index is replaced. With respect to staying up to date, just having a hook for a custom project catalog would be preferrable (and less invasive).

Alex

P.S.: I submitted https://bugs.eclipse.org/bugs/show_bug.cgi?id=481580
including patches. Note that redistribution in a controlled environment could be achieved by providing a script, copying the hosted installer and modifying the ini file before execution.


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: Fri, 06 November 2015 12:34]

Report message to a moderator

Re: register project catalog via start parameter [message #1713818 is a reply to message #1713588] Fri, 06 November 2015 17:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Alex,

I think you opened a bugzilla. We'll find some way to do this. I'm not
fond of the idea of "rewrite" rules for modifying the Index on the fly.
Perhaps an empty product catalog and an empty project catalog that can
be redirected to your non-empty substitutes for them would accomplish
the same goal without any code changes...


On 05/11/2015 11:55 AM, Alexander Nittka wrote:
> Yes, that's the idea and we already do that. In order to provide
> simple access to our projects, currently, the entire index is
> replaced. With respect to staying up to date, just having a hook for a
> custom project catalog would be preferrable (and less invasive).
>
> Alex


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: register project catalog via start parameter [message #1713928 is a reply to message #1713818] Sun, 08 November 2015 16:48 Go to previous message
Alexander Nittka is currently offline Alexander NittkaFriend
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
Previous Topic:how to recover from mistakes?
Next Topic:How to display $Author$ in code template
Goto Forum:
  


Current Time: Mon Dec 09 11:22:11 GMT 2024

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

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

Back to the top