Examples of HierarchyNote


Examples of net.sourceforge.processdash.hier.HierarchyNote

            if ("task".equals(c.getTagName()))
                add(new EVTask(c, fullName));
            else if (EVTaskDependency.DEPENDENCY_TAG.equals(c.getTagName()))
                getDependencies(true).add(new EVTaskDependency(c));
            else if (HierarchyNote.NOTE_TAG.equals(c.getTagName()))
                try { setTaskNote(new HierarchyNote(c)); } catch (Exception ex) {}
        }
    }
View Full Code Here

Examples of net.sourceforge.processdash.hier.HierarchyNote

            result.append("'/>").append(newline);
        else {
            result.append("'>").append(newline);
            String subIndent = (whitespace ? (indent + "  ") : "");
            if (includeNotes && noteData != null) {
                HierarchyNote note = noteData.get(HierarchyNoteManager.NOTE_KEY);
                if (note != null)
                    result.append(subIndent).append(note.getAsXML()).append(
                        newline);
            }
            if (hasValue(dependencies))
                for (EVTaskDependency dep : dependencies)
                    dep.getAsXML(result, subIndent, true);
View Full Code Here

Examples of net.sourceforge.processdash.hier.HierarchyNote

                    isEditable = true;
               
                setBackground(colors[(isSelected ? 0:1) + (isEditable ? 0:2)]);
                setHorizontalAlignment(SwingConstants.CENTER);

                HierarchyNote note = null;
                boolean hasError = false;
                if (value instanceof Map) {
                    Map noteData = (Map) value;
                    note = (HierarchyNote) noteData.get(
                            HierarchyNoteManager.NOTE_KEY);
                    hasError = noteData.containsKey(
                            HierarchyNoteManager.NOTE_CONFLICT_KEY);
                }

                if (note == null) {
                    setIcon(null);
                    setToolTipText(null);
                } else {
                    setIcon(hasError ? noteErrorIcon : noteIcon);
                    setToolTipText("<html><div width='300'>"
                        + note.getAsHTML() + "</div></html>");
                }

                return result;
            }
View Full Code Here

Examples of net.sourceforge.processdash.hier.HierarchyNote

   
    /* Before calling this event, a node must absolutely selected */
    public void saveComment() {
        String noteContent = noteEditor.getContent();
       
        HierarchyNote note = new HierarchyNote();
        note.setContent(noteContent, noteEditor.getFormatID());
       
        Map<String, HierarchyNote> noteData = new HashMap<String, HierarchyNote>();
        noteData.put(HierarchyNoteManager.NOTE_KEY, note);
       
        if (noteInConflict != null) {
View Full Code Here

Examples of net.sourceforge.processdash.hier.HierarchyNote

        Map<String, HierarchyNote> notes = HierarchyNoteManager.getNotesForPath(
                context.getDataRepository(), currentNode.path());
       
        if (notes != null) {
            if (deepestComment == null) {
                HierarchyNote note = notes.get(HierarchyNoteManager.NOTE_KEY);
                if (note != null)
                    deepestComment = note.getAsHTML() + getBylineHTML(note);
            }

            if (notes.get(HierarchyNoteManager.NOTE_CONFLICT_KEY) != null) {
                commentConflictPresent = true;
                taskInConflict = currentNode;
View Full Code Here

Examples of net.sourceforge.processdash.hier.HierarchyNote

        for (; path != null; path = DataRepository.chopPath(path)) {
            Map<String, HierarchyNote> notes = HierarchyNoteManager
                    .getNotesForPath(context.getData(), path);
            if (notes != null) {
                HierarchyNote note = notes.get(HierarchyNoteManager.NOTE_KEY);
                if (note != null)
                    extractScriptsFromNote(result, path, note);
            }
        }
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.