Search in sources :

Example 21 with WBSNode

use of teamdash.wbs.WBSNode in project processdash by dtuma.

the class ProjectWbsNodeChange method addChildRows.

private void addChildRows(List<ProjectChangeReportRow> result, WBSNode node, int indent) {
    indent++;
    for (WBSNode child : node.getWbsModel().getChildren(node)) {
        result.add(new ProjectChangeReportRow(indent, false, null, null, getNameHtml(child), false, null));
        addChildRows(result, child, indent);
    }
}
Also used : WBSNode(teamdash.wbs.WBSNode)

Example 22 with WBSNode

use of teamdash.wbs.WBSNode in project processdash by dtuma.

the class ProjectWbsNodeChange method addChildRows.

private void addChildRows(List<ProjectChangeReportRow> result, WbsNodeTimeReportRow parentRow, WBSNode parentNode, int indent) {
    indent++;
    for (WBSNode child : parentNode.getWbsModel().getChildren(parentNode)) {
        WbsNodeTimeReportRow childRow = new WbsNodeTimeReportRow(child, indent, null, null);
        result.add(childRow);
        addChildRows(result, childRow, child, indent);
        parentRow.sumChildData(childRow);
    }
    parentRow.loadDirectTimeData(parentNode);
}
Also used : WBSNode(teamdash.wbs.WBSNode)

Example 23 with WBSNode

use of teamdash.wbs.WBSNode in project processdash by dtuma.

the class DataProblemsTextArea method setCurrentNode.

public void setCurrentNode(Integer nodeID) {
    this.currentNodeID = nodeID;
    String text = null;
    WBSNode wbsNode = getNode(nodeID);
    if (wbsNode != null)
        text = ErrorNotesColumn.getTextAt(wbsNode);
    setText(text);
    setVisible(text != null && text.trim().length() > 0);
}
Also used : WBSNode(teamdash.wbs.WBSNode)

Example 24 with WBSNode

use of teamdash.wbs.WBSNode in project processdash by dtuma.

the class DataProblemsTextArea method maybeSaveDataNotes.

private void maybeSaveDataNotes() {
    WBSNode wbsNode = getNode(currentNodeID);
    if (wbsNode == null)
        return;
    String currentText = ErrorNotesColumn.getTextAt(wbsNode);
    String newText = getText().trim();
    if (newText.equals(nvl(currentText)))
        return;
    wbsDataModel.setValueAt(newText, wbsNode, dataProblemsColumn);
    UndoList.madeChange(tabPanel, "Editing value in 'Data Problems' column");
    int row = wbsDataModel.getWBSModel().getRowForNode(wbsNode);
    if (row != -1) {
        wbsDataModel.getWBSModel().fireTableCellUpdated(row, 0);
        wbsDataModel.fireTableCellUpdated(row, dataProblemsColumn);
    }
}
Also used : WBSNode(teamdash.wbs.WBSNode)

Example 25 with WBSNode

use of teamdash.wbs.WBSNode in project processdash by dtuma.

the class BlameValueTableModel method setBlameNodeStructure.

public void setBlameNodeStructure(BlameNodeData nodeData) {
    clearRows();
    // display a message about the addition of this node
    if (nodeData.getAddedBy() != null)
        addBlameRow(nodeData.getAddedBy(), resources.getString("Node.Added"), null);
    // display historical changes to the name of this node
    if (nodeData.getNodeNameChanges() != null) {
        addBlameRow(null, RENAME_HEADER, null);
        addBlameValues(nodeData.getNodeNameChanges(), INITIAL_NAME);
    }
    // display historical changes to the parent of this node
    if (nodeData.getParentPathChanges() != null) {
        addBlameRow(null, MOVE_HEADER, null);
        addBlameValues(nodeData.getParentPathChanges(), INITIAL_PARENT);
    }
    // display children that have been deleted from this node
    if (nodeData.getDeletedChildren() != null) {
        addBlameRow(null, DELETE_HEADER, null);
        for (Entry<WBSNode, BlamePoint> e : nodeData.getDeletedChildren().entrySet()) {
            BlamePoint blame = e.getValue();
            String deletedChildName = e.getKey().getName();
            addBlameRow(blame, deletedChildName, null);
        }
    }
}
Also used : BlamePoint(teamdash.hist.BlamePoint) WBSNode(teamdash.wbs.WBSNode)

Aggregations

WBSNode (teamdash.wbs.WBSNode)40 ArrayList (java.util.ArrayList)6 HashMap (java.util.HashMap)3 HashSet (java.util.HashSet)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 Change (net.sourceforge.processdash.ui.lib.autocomplete.AssignedToEditList.Change)2 WBSNodeContent (teamdash.wbs.AbstractWBSModelMerger.WBSNodeContent)2 DataTableModel (teamdash.wbs.DataTableModel)2 NumericDataValue (teamdash.wbs.NumericDataValue)2 Color (java.awt.Color)1 Date (java.util.Date)1 Iterator (java.util.Iterator)1 List (java.util.List)1 Random (java.util.Random)1 Matcher (java.util.regex.Matcher)1 AssignedToEditList (net.sourceforge.processdash.ui.lib.autocomplete.AssignedToEditList)1 HSSFRow (org.apache.poi.hssf.usermodel.HSSFRow)1 BlameCaretPos (teamdash.hist.BlameCaretPos)1 BlameModelData (teamdash.hist.BlameModelData)1 BlameNodeData (teamdash.hist.BlameNodeData)1