Package net.sourceforge.processdash.hier

Examples of net.sourceforge.processdash.hier.PropertyKey.path()


        List projectPaths = new ArrayList(numKids);
        ListData projectPathsData = new ListData();
        for (int i = 0;  i < numKids; i++) {
            PropertyKey child = hier.getChildKey(parent, i);
            projectPaths.add(child.path());
            projectPathsData.add(StringData.create(child.path()));
        }
        getDataRepository().putValue("///STUDATA_List", projectPathsData);
        return projectPaths;
    }
View Full Code Here


        DashHierarchy hier = getDashboardContext().getHierarchy();
        PropertyKey parent = hier.findExistingKey(getPrefix());
        int numKids = hier.getNumChildren(parent);
        for (int i = 0;  i < numKids;  i++) {
            PropertyKey child = hier.getChildKey(parent, i);
            String path = child.path();
            if (hasTag(path, "PspForEngV3_Student_Profile"))
                return path;           
        }
       
        // no student profile was found.  Create an imaginary one; it will
View Full Code Here

        }

        private void getNextPrefix() {
            while (prefixKeys.hasNext()) {
                PropertyKey nextKey = (PropertyKey) prefixKeys.next();
                workingPrefix = nextKey.path();
                if (!workingPrefix.endsWith("/"))
                    workingPrefix = workingPrefix + "/";
                workingNames = getNamesForPrefix(workingPrefix);
                if (workingNames.hasNext())
                    return;
View Full Code Here

        if (Settings.getBool(SET_FLAG_SETTING, false))
            return;

        for (Iterator i = hierarchy.keySet().iterator(); i.hasNext();) {
            PropertyKey key = (PropertyKey) i.next();
            String path = key.path();
            maybeMigrateLegacyData(data, path);
        }
        InternalSettings.set(SET_FLAG_SETTING, "true");
    }
View Full Code Here

                    endPosition));
            if (key == null)
                key = PropertyKey.fromKey(s.substring(startPosition,
                        endPosition));
            if (key != null)
                path = key.path();
        }
        if (path == null)
            throw new IllegalArgumentException("Invalid Key");

        startPosition = s.indexOf(START, endPosition) + START.length();
View Full Code Here

                break;
        }

        // retrieve the current list of script menu items from the dashboard
        PropertyKey currentPhase = activeTaskModel.getNode();
        currentPath = (currentPhase == null ? null : currentPhase.path());
        List<ScriptID> scriptItems = ScriptEnumerator.getScripts(ctx,
            currentPhase);

        if (scriptItems != null && scriptItems.size() > 1) {
            ScriptMenuBuilder b = new ScriptMenuBuilder(scriptItems);
View Full Code Here

        } else if (nodeIsPSP) {
            if (nodeID != null) {
                nodeTypes.put(nodePath, TaskNodeType.PSP);
                for (int i = 0; i < numChildren; i++) {
                    PropertyKey phase = hier.getChildKey(node, i);
                    String phasePath = phase.path();
                    nodeTypes.put(phasePath, TaskNodeType.PspPhase);

                    String phaseID;
                    if (nodeID.equals(inheritedID))
                        phaseID = nodeID;
View Full Code Here

        public int getCommentStatus(Object node) {
            PropertyKey key = key(node);
            Integer result = statusData.get(key);
            if (result == null) {
                result = calcCommentStatus(key.path());
                statusData.put(key, result);
            }
            return result;
        }
View Full Code Here

        (templateChildren != null && templateChildren.size() == 0))
      return false;

    PropertyKey cutKey = treeModel.getPropKey (useProps, cutNode.getPath());

    String cutPath = cutKey.path();
            // disallow pasting a node into itself.
    if (cutPath.equals(parentPath) ||
            // disallow pasting a node into one of its descendants (would
            // create an illegal recursive tree.
        parentPath.startsWith(cutPath+"/") ||
View Full Code Here

            return;

        PropertyKey key = treeModel.getPropKey(useProps, nodeToRemove.getPath());
        if (key == null)
            return;
        String path = key.path();

        String title = resource.getString("HierarchyDeleteWarningTitle");
        String[] message = resource.format("HierarchyDeleteWarning_FMT",
                path).split("\n");
        int userChoice = JOptionPane.showConfirmDialog(frame, message,
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.