Package org.netbeans.modules.exceptions.entity

Examples of org.netbeans.modules.exceptions.entity.ProductVersion


                initTask = globalRP.post(new GlobalOperation(this, false));
            }
        }

        private boolean isOldBuild(Logfile tempLog) {
            ProductVersion pv = tempLog.getProductVersionId();
            if (pv != null){
                Nbversion nbv = pv.getNbversionId();
                if (nbv != null){
                    if (Nbversion.DEV_VERSION.equals(nbv.getVersion())){
                        if (tempLog.getBuildnumber() < getFirstDevBuild()){
                            return true;
                        }
View Full Code Here


        if (initialParse) { // add statistics data to globals

            info.addValues(statistics);

            ProductVersion  pVersion = logInfo.getProductVersionId();
            if (pVersion == null){
                return;
            }
            Nbversion version = pVersion.getNbversionId();
            VersionData versionData = LogsManager.getDefault().getVersionStatistics(version);
            if (versionData != null){
                info.addValues(versionData.getData());
                versionData.addLog();
            }
View Full Code Here

        Nbversion nv = new Nbversion(1);
        nv.setVersion(Nbversion.DEV_VERSION);
        em.persist(nv);

        ProductVersion pw = new ProductVersion(1);
        pw.setNbversionId(nv);
        pw.setProductVersion("pw");
        em.persist(pw);

        Logfile lf = new Logfile(10);
        lf.setUploadNumber(0);
        lf.setUserdir("gestures");
View Full Code Here

        BugReporter.LOG.addHandler(handler);
        EntityManager em = perUtils.createEntityManager();
        em.getTransaction().begin();
        Logfile log = new Logfile("testDir", 1);
        TestLogFileTask task = new TestLogFileTask(em, log);
        ProductVersion pv = new ProductVersion(1);
        pv.setProductVersion("NetBeans IDE 6.0 (Build 081204)");
        Nbversion nbv = new Nbversion(1);
        nbv.setVersion("6.0");
        pv.setNbversionId(nbv);
        log.setProductVersionId(pv);
        Nbuser user = new Nbuser(1);
        user.setName("HALLO");
        Slowness slown = new Slowness(100);
        slown.setActionTime(1000L);
View Full Code Here

        Exceptions exc = new Exceptions(exceptionId);
        Report report = new Report(exceptionId);
        exc.setReportId(report);
        Stacktrace stack = new Stacktrace(Utils.getNextId(Stacktrace.class));
        Logfile logfile = new Logfile(userId, 0);
        ProductVersion pVersion = new ProductVersion(Utils.getNextId(ProductVersion.class));
        pVersion.setProductVersion("pVersion");
        Nbversion version = new Nbversion(Utils.getNextId(Nbversion.class));
        version.setVersion("version");
        pVersion.setNbversionId(version);
        logfile.setProductVersionId(pVersion);
        exc.setLogfileId(logfile);
        exc.setStacktrace(stack);
        em.persist(version);
        em.persist(pVersion);
View Full Code Here

    }

    private void performTest(String productVersion, String TM, boolean result){
        org.netbeans.modules.exceptions.entity.Exceptions exc = new org.netbeans.modules.exceptions.entity.Exceptions();
        Logfile lf = new Logfile();
        ProductVersion pv = new ProductVersion();
        Nbversion nb = new Nbversion();
        lf.setProductVersionId(pv);
        pv.setNbversionId(nb);
        exc.setLogfileId(lf);
        String nbVersion = org.netbeans.modules.exceptions.utils.Utils.getNbVersion(productVersion);
        nb.setVersion(nbVersion);
        Issue iss = new Issue(1);
        iss.setTargetMilestone(TM);
View Full Code Here

            version = new Nbversion(i);
            version.setVersion("6.8");
            em.persist(version);
        }

        ProductVersion pv = (ProductVersion) PersistenceUtils.getExist(em, "ProductVersion.findByProductVersion", "NetBeans IDE 6.8 Beta (Build 200910020947)");
        if (pv == null) {
            pv = new ProductVersion(i);
            pv.setNbversionId(version);
            pv.setProductVersion("NetBeans IDE 6.8 Beta (Build 200910020947)");
            em.persist(pv);
        }

        Vm vm = (Vm) PersistenceUtils.getExist(em, "Vm.findByName", "JDK 1.6");
        if (vm == null) {
View Full Code Here

        TestHandler handler = new TestHandler();
        BugReporter.LOG.addHandler(handler);
        EntityManager em = perUtils.createEntityManager();
        em.getTransaction().begin();
        Logfile log = new Logfile("testDir", 1);
        ProductVersion pv = new ProductVersion(1);
        pv.setProductVersion("NetBeans IDE 6.0 (Build 081204)");
        Nbversion nbv = new Nbversion(1);
        nbv.setVersion("6.0");
        pv.setNbversionId(nbv);
        log.setProductVersionId(pv);
        TestLogFileTask task = new TestLogFileTask(em, log);
        Nbuser user = new Nbuser(1);
        user.setName("HALLO");
        org.netbeans.modules.exceptions.entity.Exceptions exc = new org.netbeans.modules.exceptions.entity.Exceptions(100);
View Full Code Here

TOP

Related Classes of org.netbeans.modules.exceptions.entity.ProductVersion

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.