use of org.baderlab.csplugins.enrichmentmap.actions.ShowEnrichmentMapDialogAction in project EnrichmentMapApp by BaderLab.
the class CyActivator method shutDown.
@Override
public void shutDown() {
try {
if (injector != null) {
boolean headless = injector.getInstance(Key.get(Boolean.class, Headless.class));
// If the App gets updated or restarted we need to save all the data first
SessionListener sessionListener = injector.getInstance(SessionListener.class);
sessionListener.appShutdown();
if (!headless) {
// Close the legend panel
LegendPanelMediator legendPanelMediator = injector.getInstance(LegendPanelMediator.class);
legendPanelMediator.hideDialog();
// Dispose the creation dialog, or else lots of memory leaks.
ShowEnrichmentMapDialogAction dialogAction = injector.getInstance(ShowEnrichmentMapDialogAction.class);
dialogAction.dispose();
}
}
} finally {
super.shutDown();
}
}
Aggregations