(I wanted to do this for a long time and finally Hiep LQ gave me a good tip to use Env.setCtx.) We can make a DisplayLogic respond to whether a Plugin is present or not. For example i could make the BackOrder Management Info-Window CreateShipment Process button to disappear or appear accordingly.
Below is when the WMS Plugin is installed. Note the process buttons.
And when it is unsinstalled and restarted, the button disappeared when records are selected.
Below is how it is done. First we set the Plugin Event to record and set in Env Ctx() a value. In this case #WMS='Y'.
Then in the InfoProcess' DisplayLogic.
Here both plugins (BackOrder and WMS) could work more independently of each other. The code for CreateShipment can be in the other plugin and when that plugin is not installed, the process from there is not displayed in the calling plugin for use.
Thus a not found process classname error cannot occur as there is no button to call it in the first place! This is also perhaps the very first time iDempiere's OSGi feature can be made visible in the UI.