/** 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 action component : " + getClass()); // create new SaveQueryToFileAction and set as action setAction( new LoadQueryFromFileAction(applicationService, queryService, queryExpressionXMLConverter)); // register self with actionComponentService actionComponentService.registerActionComponent(this); }
/** 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); }
/** Dispose. */ @Override public synchronized void dispose() { // unregister from actionComponentService actionComponentService.unregisterActionComponent(this); logger.info("Stopped action component : " + getClass()); }