\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
}\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