/** 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); }