Bug 378401: Implementation of time graph widget.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / widgets / TimeGraphTooltipHandler.java
index 8b776d64d7f7e54777756f0311c26056c7dcd0af..7e73b43dd0df92805e0a7292a74735233af85eca 100644 (file)
@@ -118,10 +118,7 @@ public class TimeGraphTooltipHandler {
                 if (item == null) {\r
                     return;\r
                 }\r
-                if (! item._trace.hasTimeEvents()) {\r
-                    addItem(Messages.TmfTimeTipHandler_TRACE_GROUP_NAME, item.toString());\r
-                    addItem(Messages.TmfTimeTipHandler_NUMBER_OF_TRACES, "" + item.children.size()); //$NON-NLS-1$\r
-                } else {\r
+                if (item._trace.hasTimeEvents()) {\r
                     ITimeGraphEntry thrd = item._trace;\r
                     ITimeEvent threadEvent = Utils.findEvent(thrd, threadStates.getTimeAtX(pt.x), 2);\r
                     ITimeEvent nextEvent = Utils.findEvent(thrd, threadStates.getTimeAtX(pt.x), 1);\r
@@ -217,6 +214,9 @@ public class TimeGraphTooltipHandler {
                 TimeGraphItem item = threadStates.getItem(pt);\r
                 _tipTable.remove(0, _tipTable.getItemCount() - 1);\r
                 fillValues(pt, threadStates, item);\r
+                if (_tipTable.getItemCount() == 0) {\r
+                    return;\r
+                }\r
                 _tipTable.getColumn(0).pack();\r
                 _tipTable.getColumn(1).pack();\r
                 _tipShell.pack();\r
This page took 0.024267 seconds and 5 git commands to generate.