Thanks Richard,

This solution will do.

Regards,
Lazar

-----Original Message-----
From: Richard S. Hall [mailto:[email protected]] 
Sent: Monday, July 18, 2011 5:26 PM
To: [email protected]
Subject: Re: OBR commands in Gogo shell

On 7/18/11 10:15, Kirchev, Lazar wrote:
> Hello,
>
> We are using Gogo on Equinox (in Eclipse Virgo project). The Gogo command 
> bundle registers a number of commands, among which several commands related 
> to the OBR registry.
> We do not need these commands (we do not use OBR and therefore they do not 
> work in our environment), but since they are registered by default we cannot 
> externally unregister them. Since the bundle registers also some general 
> purpose commands, it would not be very good to completely discard using it. 
> Could you suggest some solution to this problem?

There is no way to selectively disable commands. If you don't have OBR, 
then they won't cause any harm since they won't do anything. If you are 
really worried about them existing at all, your only option is to roll 
your own build of the Gogo Command module that doesn't export them.

A reasonable approach would be to create a bundle that embeds Gogo 
Command and provides a new activator that doesn't register the OBR 
command. In other words, treat Gogo Command as a library of commands 
that can be re-used rather than as a bundle that registers commands.

-> richard

Reply via email to