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

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


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

                    // save version
                    if(version != null) {
                        VersionDao versionDao = (VersionDao)ServiceUtils.getService(bundleContext, VersionDao.class.getName());
                        logger.trace("versionDao: " + versionDao);

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


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

            version = new Combo(generalGroup, SWT.DROP_DOWN | SWT.READ_ONLY);
            version.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1));
            VersionDao versionDao = (VersionDao)ServiceUtils.getService(bundleContext, VersionDao.class.getName());
            try {
              int i = 0;
             
                for(Version v : versionDao.getVersions()) {
                    version.add(v.getLabel());
                    version.setData(v.getLabel(), v);
                    version.setData("version" + i, v);
                   
                    if(campaign.getVersion() == v) {
View Full Code Here

TOP

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

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.