Package org.criticalfailure.torchlight.core.application.services

Examples of org.criticalfailure.torchlight.core.application.services.AlertService.addAlert()


          logger.error("Unable to save campaign: " + c + ": " + e.getLocalizedMessage(), e);
         
          AlertService alertService = (AlertService)ServiceUtils.getService(bundleContext, AlertService.class.getName());
          logger.trace("alertService: " + alertService);
         
          alertService.addAlert(new Alert(Alert.Type.ERROR, "campaign.editor", Messages.getString("campaign.editor.save.error.message") + ": " + e.getLocalizedMessage()));
         
          // notify user
          MessageDialog.openError(getEditorSite().getShell(), Messages.getString("campaign.editor.save.error.title"), Messages.getString("campaign.editor.save.error.message") + ": " + e.getLocalizedMessage());
    }
View Full Code Here


            catch(DataAccessException e) {
                logger.error("Exception while getting versions: " + e.getLocalizedMessage(), e);

                // add error to Alerts
                AlertService alertService = (AlertService)ServiceUtils.getService(bundleContext, AlertService.class.getName());
                alertService.addAlert(new Alert(Alert.Type.ERROR, "campaign.editor", e.getLocalizedMessage()));
            }
            version.addSelectionListener(new SelectionListener() {
                public void widgetDefaultSelected(SelectionEvent e) {
                    widgetSelected(e);
                }
View Full Code Here

            catch(DataAccessException e) {
                logger.error("Exception while getting settings: " + e.getLocalizedMessage(), e);

                // add error to Alerts
                AlertService alertService = (AlertService)ServiceUtils.getService(bundleContext, AlertService.class.getName());
                alertService.addAlert(new Alert(Alert.Type.ERROR, "campaign.editor", e.getLocalizedMessage()));
            }
            setting.addSelectionListener(new SelectionListener() {
                public void widgetDefaultSelected(SelectionEvent e) {
                    widgetSelected(e);
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.