When disabling a module, two RegistryChangedEvents get generated, one of which is empty of information. At this time, I don't believe this has any negative side effect, except that it causes slight performance degradation. (For example, the AnalyzerTreeView redraws itself once for each event received.)
-------------------------------------
I added a print statement to ViewAnalyzerRPane.registryChangedEvent() to print the events as they come in. When removing the PtPlot module (containing two analyzers), the following events are received. (Note that the first one contains both analyzer factories, and the second event contains none.)
tryme-debug:
[exec] registry changed: RegistryChangeEvent: Added analyzer factories: (), Removed analyzer factories: (com.sri.biospice.ptplot.PlotMLTranslator@fd326c9a, com.sri.biospice.ptplot.PTPlotFactory@8f0c5925)
[exec] registry changed: RegistryChangeEvent: Added analyzer factories: (), Removed analyzer factories: ()