Fix warnings from FindBugs
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / viewers / timeAnalysis / TmfTimeSelectionEvent.java
CommitLineData
b0d3496e
ASL
1/*******************************************************************************\r
2 * Copyright (c) 2009 Ericsson\r
3 * \r
4 * All rights reserved. This program and the accompanying materials are\r
5 * made available under the terms of the Eclipse Public License v1.0 which\r
6 * accompanies this distribution, and is available at\r
7 * http://www.eclipse.org/legal/epl-v10.html\r
8 * \r
9 * Contributors:\r
10 * Alvaro Sanchez-Leon - Initial API and implementation\r
11 *******************************************************************************/\r
12\r
13package org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis;\r
14\r
15import java.util.EventObject;\r
16\r
17public class TmfTimeSelectionEvent extends EventObject {\r
18\r
19 /**\r
20 * \r
21 */\r
22 private static final long serialVersionUID = 1L;\r
23 \r
6e85c58d
FC
24 public enum Type {WIDGET_DEF_SEL, WIDGET_SEL}\r
25 Type dType;\r
b0d3496e
ASL
26 Object selection = null;\r
27 long selTime = 0;\r
28 int index = 0;\r
29 \r
6e85c58d 30 public TmfTimeSelectionEvent(Object arg0, Type rType, Object sel, long selectedTime) {\r
b0d3496e
ASL
31 super(arg0);\r
32 dType = rType;\r
33 selection = sel;\r
34 selTime = selectedTime;\r
35 }\r
36 \r
6e85c58d 37 public Type getDType() {\r
b0d3496e
ASL
38 return dType;\r
39 }\r
40 \r
41 public Object getSelection() {\r
42 return selection;\r
43 }\r
44 \r
45 public long getSelectedTime() {\r
46 return selTime;\r
47 }\r
48\r
49}\r
This page took 0.03066 seconds and 5 git commands to generate.