tmf: Update Javadoc throughout tmf.ui
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / widgets / TimeGraphSelection.java
index b0962af63efc30fc203ff987b1719cccdd5b8572..ccc72ea3d8d326e7789d2689230316aa736e8479 100644 (file)
@@ -21,6 +21,13 @@ import java.util.List;
 \r
 import org.eclipse.jface.viewers.IStructuredSelection;\r
 \r
+/**\r
+ * Selection object for the time graph scale\r
+ *\r
+ * @version 1.0\r
+ * @author Alvaro Sanchez-Leon\r
+ * @author Patrick Tasse\r
+ */\r
 public class TimeGraphSelection implements IStructuredSelection {\r
 \r
     List<Object> list = new ArrayList<Object>();\r
@@ -33,14 +40,16 @@ public class TimeGraphSelection implements IStructuredSelection {
     }\r
 \r
     public void add(Object sel) {\r
-        if (null != sel && !list.contains(sel))\r
+        if (null != sel && !list.contains(sel)) {\r
             list.add(sel);\r
+        }\r
     }\r
 \r
     @Override\r
     public Object getFirstElement() {\r
-        if (!list.isEmpty())\r
+        if (!list.isEmpty()) {\r
             return list.get(0);\r
+        }\r
         return null;\r
     }\r
 \r
This page took 0.024871 seconds and 5 git commands to generate.