Ignore:
Timestamp:
10/17/12 13:06:56 (12 years ago)
Author:
magsj467
Message:

Tooltips on nodes to graph-browser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/view/CrossUtil.java

    r1661 r1662  
    100100        for(int index = startInt; index < nodes.size(); index++) {
    101101            //System.out.println("Create node " + nodes.get(index).getName() + " with int " + index );
    102             GraphNode tempGraphNode = new GraphNode(graph, SWT.NONE, nodes.get(index).getName());
     102            MyNode tempMyNode = nodes.get(index);
     103            GraphNode tempGraphNode = new GraphNode(graph, SWT.NONE, tempMyNode.getName());
    103104            tempGraphNode.setBackgroundColor(graph.getDisplay().getSystemColor(nodes.get(index).getColor()));
    104             tempGraphNode.setTooltip(new Label("Hello"));
     105            ArrayList<String> toolTipList = tempMyNode.getToolTipInfo();
     106            tempGraphNode.setTooltip(new Label(
     107                          "Type: " + toolTipList.get(0) + "\n" +
     108                          "Name: " + toolTipList.get(1) + "\n" +
     109                    "Descripton: " + toolTipList.get(2) + "\n" +
     110                    "Position: "   + toolTipList.get(3) + "\n" +
     111                    "Path: "       + toolTipList.get(4) + "\n"
     112                    ));
    105113            graphNodes.add(tempGraphNode);
    106114        }
Note: See TracChangeset for help on using the changeset viewer.