To make the Console plugin aware of your plugin's shell, you need to call the registerShell() method of the Shell class in your plugin's start() method. The method prototype is as follows:
public void registerShell(
Shell shell)
;
For example:
public void start() { // Do some initialization... Shell.registerShell(new CalculatorShell()); // Do more initialization... } |
There is also a corresponding unregisterShell() method, but it is rarely used.