Package org.criticalfailure.torchlight.core.model.dao

Examples of org.criticalfailure.torchlight.core.model.dao.CampaignDao


                        }
                        logger.debug("campaign: " + campaign);

                        // save campaign
                        if(campaign != null) {
                            CampaignDao campaignDao = (CampaignDao)ServiceUtils.getService(bundleContext, CampaignDao.class.getName());
                            logger.trace("campaignDao: " + campaignDao);

                            campaignDao.saveCampaign(campaign);
                        }
                    }
                    catch(Exception e) {
                        MessageDialog.openError(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), Messages.getString("campaign.error.create_campaign.title"), Messages.getString("campaign.error.create_campaign.message") + "\n\n" + e.getLocalizedMessage());
                    }
View Full Code Here


        Campaign c = ((CampaignEditorInput)getEditorInput()).getCampaign();

        monitor.beginTask(Messages.getString("campaign.editor.saving.message"), 5);
       
        CampaignDao campaignDao = (CampaignDao)ServiceUtils.getService(bundleContext, CampaignDao.class.getName());
        logger.trace("campaignDao: " + campaignDao);
       
        monitor.worked(1);
       
        try {
      campaignDao.saveCampaign(c);
     
      monitor.worked(1);
     
      dirty = false;
    }
View Full Code Here

    public Object[] getChildren(Object o) {
       
        logger.debug("get children: " + o);
       
        if(o instanceof CampaignView) {
            CampaignDao campaignDao = (CampaignDao)ServiceUtils.getService(Activator.getDefault().getBundle().getBundleContext(), CampaignDao.class.getName());
            logger.trace("campaignDao: " + campaignDao);

            if(campaignDao != null) {
                try {
                    Set<Campaign> campaigns = campaignDao.getCampaigns();
                    for(Campaign c : campaigns) {
                        logger.debug("registering as a listener to campaign: " + c);
                        c.addPropertyChangeListener((CampaignView)o);
                    }
View Full Code Here

TOP

Related Classes of org.criticalfailure.torchlight.core.model.dao.CampaignDao

Copyright © 2018 www.massapicom. 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.