Examples of SettingDao


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

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

                    // save setting
                    if(setting != null) {
                        SettingDao settingDao = (SettingDao)ServiceUtils.getService(bundleContext, SettingDao.class.getName());
                        logger.trace("settingDao: " + settingDao);

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

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

            label.setText(Messages.getString("campaign.editor.setting.label"));
            label.setLayoutData(new GridData(SWT.END, SWT.CENTER, false, false));

            setting = new Combo(generalGroup, SWT.DROP_DOWN | SWT.READ_ONLY);
            setting.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1));
            SettingDao settingDao = (SettingDao)ServiceUtils.getService(bundleContext, SettingDao.class.getName());
            try {
              int i = 0;
             
                for(Setting s : settingDao.getSettings()) {
                    setting.add(s.getLabel());
                    setting.setData(s.getLabel(), s);
                    setting.setData("setting" + i, s);
                   
                    if(campaign.getSetting() == s) {
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.