Package net.sourceforge.processdash

Examples of net.sourceforge.processdash.ProcessDashboard$LockMsgHandler


  private void run(long seed) throws Exception {
    random = new Random(seed);
    print("Seed is " + seed);
    dataDir = createAndPopulateDataDir();
    harness = new SimulationHarness(dataDir);
    ProcessDashboard dashboard = harness.getDashboard();
    dashboard.removeWindowListener(dashboard);
    dashboard.addWindowListener(this);

    robot = new Robot();

    user = new RandomUserActivityGenerator();
    user.start();
View Full Code Here


        }
    }

    private boolean isBrokenTeamProject(String path) {
        if (ctx instanceof ProcessDashboard) {
            ProcessDashboard dash = (ProcessDashboard) ctx;
            return dash.getBrokenDataPaths().contains(path);
        } else {
            return false;
        }
    }
View Full Code Here

        add(verticalSpace(2));
        String choosePathsPrompt = getString("Choose_Paths");
        add(indentedComponent(2, new WrappingText(choosePathsPrompt)));
        add(verticalSpace(1));
        ProcessDashboard dashboard = ExportManager.getInstance()
                .getProcessDashboard();
        paths = new SelectableHierarchyTree(dashboard.getHierarchy(), instr
                .getPaths());
        paths.addListSelectionListener(new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent e) {
                if (!e.getValueIsAdjusting())
                    updateInstruction();
View Full Code Here

    private void writeFromDatasetTag(XmlSerializer xml) throws IOException {
        xml.ignorableWhitespace(NEWLINE + INDENT + INDENT);
        xml.startTag(null, FROM_DATASET_TAG);
        xml.attribute(null, FROM_DATASET_ID_ATTR, DashController.getDatasetID());
        if (ctx instanceof ProcessDashboard) {
            ProcessDashboard dash = (ProcessDashboard) ctx;
            String location = dash.getWorkingDirectory().getDescription();
            xml.attribute(null, FROM_DATASET_LOCATION_ATTR, location);
        }
        xml.endTag(null, FROM_DATASET_TAG);
    }
View Full Code Here

        }
    }

    private void repairDefectCounts() {
        if (isTask("repairDefectCounts")) {
            ProcessDashboard dash = (ProcessDashboard) getDashboardContext();
            RepairDefectCounts.run(dash, dash.getDirectory());
   
            out.println("<HTML><HEAD><TITLE>Defect Counts Repaired</TITLE></HEAD>");
            out.println("<BODY><H1>Defect Counts Repaired</H1>");
            out.println("The defect counts were repaired at " + new Date());
            out.println("</BODY></HTML>");
View Full Code Here


    private void importDefects(List defects) {
        DashHierarchy hier = dashboardContext.getHierarchy();
        PropertyKey defectLogKey = hier.findExistingKey(defectLogPath);
        ProcessDashboard dashboard = (ProcessDashboard) dashboardContext;
        String filename = hier.pget(defectLogKey).getDefectLog();
        if (!StringUtils.hasValue(filename)) {
            AbortImport.showError("Hierarchy_Changed", selectedPath);
            return;
        }
        DefectLog defectLog = new DefectLog(
                dashboard.getDirectory() + filename, defectLogPath,
                dashboardContext.getData());

        int addedCount = 0;
        int updatedCount = 0;
        int unchangedCount = 0;
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.ProcessDashboard$LockMsgHandler

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.