/** Dispose. */ @Override public synchronized void dispose() { // unregister from sqlQueryEngineService sqlQueryEngineService.removeListener(exportResultsAction); // unregister self from actionComponentService actionComponentService.unregisterActionComponent(this); logger.info("Stopped module : " + getClass().getName()); }
/** Inits the. */ @Override public synchronized void init() { logger.info("Starting module : " + getClass().getName()); // set action exportResultsAction = new ExportResultsAction(applicationService, queryService); // disable action to start with exportResultsAction.setEnabled(false); setAction(exportResultsAction); sqlQueryEngineService.addListener(exportResultsAction); // set visible on toolbar setVisibleOnToolbar(true); // register self with actionComponentService actionComponentService.registerActionComponent(this); }