Package net.sourceforge.processdash.hier

Examples of net.sourceforge.processdash.hier.DashHierarchy


    /** Get the IDs of all team processes in use by this dashboard dataset */
    private Set<String> getTeamProcessIDsInUse() {
        Set<String> templateIDs = getTeamProcessIDs();

        Set<String> result = new HashSet<String>();
        DashHierarchy hier = dashboardContext.getHierarchy();
        for (Iterator i = hier.values().iterator(); i.hasNext();) {
            Prop prop = (Prop) i.next();
            String oneID = prop.getID();
            if (oneID != null && oneID.endsWith("Root")) {
                int slashPos = oneID.indexOf('/');
                if (slashPos != -1) {
View Full Code Here


                TaskNameInfo info = new TaskNameInfo(path, pref--);
                addToCache(newCache, taskID, info);
            }
        }
       
        DashHierarchy hierarchy = context.getHierarchy();
        for (int i = hierarchy.getNumChildren(key);  i-- > 0; )
            findTasksInHierarchy(newCache, hierarchy.getChildKey(key, i));
    }
View Full Code Here

        SimpleData sd = ctx.getData().getSimpleValue(dataName);
        if (sd != null && projectID.equals(sd.format())) {
            throw new AlreadyJoinedException();

        } else {
            DashHierarchy hier = ctx.getHierarchy();
            int i = hier.getNumChildren(key);
            while (i-- > 0) {
                PropertyKey childKey = hier.getChildKey(key, i);
                checkAlreadyJoined(ctx, childKey, projectID);
            }
        }
    }
View Full Code Here

  public void startTimeLog() {
      startTimeLog(null);
  }

  public void startTimeLog(PropertyKey phase) {
      DashHierarchy hier = parent.getProperties();
      if (phase == null)
          phase = parent.getCurrentPhase();
     
        if (hier != null) {
            if (time_frame != null) {
View Full Code Here

    protected void setUp() throws Exception {
        super.setUp();
        eventsReceived = new LinkedList();
        expectedTimes = new HashMap();
        data = new MockDataContext();
        hier = new DashHierarchy(null);
        hier.loadXML(openFile("hier3.xml"), new DashHierarchy(null));
       
        createModels();

        activeTaskModel = new MockActiveTaskModel(hier);
        timeLoggingModel.setActiveTaskModel(activeTaskModel);
View Full Code Here

    private static long templateTimestamp = 0;
   
    public static DashHierarchy loadTemplates(DataRepository data) {
        LOAD_TEMPLATES_PERMISSION.checkPermission();

        DashHierarchy templates = new DashHierarchy(null);
        ProfTimer pt = new ProfTimer(TemplateLoader.class,
            "TemplateLoader.loadTemplates");

        URL[] roots = getTemplateURLs();
        pt.click("Got template roots");
View Full Code Here

    private static void loadProcessTemplate(DashHierarchy templates,
                                            InputStream in, boolean close)
        throws IOException
    {
        DashHierarchy template = new DashHierarchy(null);
        template.load(in, close);
        createScriptMaps(template);

        templates.putAll(template);
    }
View Full Code Here

        AutoData.registerTemplates(root, data);

        createScriptMaps(root);

        try {
            DashHierarchy template = new DashHierarchy(null);
            template.loadXMLTemplate(root);
            template.premove(PropertyKey.ROOT);
            createScriptMaps(template);
            templates.putAll(template);
        } catch (SAXException se) {
            // Can this happen?
        }
View Full Code Here

        frame.dispose();
    }


    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(
View Full Code Here

    JMenuBar menuBar = constructMenuBar();
    JPanel   panel   = new JPanel(true);

    this.templates = templates;
    readProps      = props;
    useProps       = new DashHierarchy (props.dataPath);
    revertProperties ();
    updateTemplateMenu (null, null);

    frame.setTitle(resource.getString("HierarchyEditor"));
    DashboardIconFactory.setWindowIcon(frame);
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.hier.DashHierarchy

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.