1 /*******************************************************************************
2 * Copyright (c) 2012, 2014 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.ui
.widgets
.timegraph
;
15 import java
.util
.EventObject
;
17 import org
.eclipse
.tracecompass
.tmf
.ui
.widgets
.timegraph
.model
.ITimeGraphEntry
;
20 * Notifier for the time graph that an object in the views has been selected.
22 * @author Patrick Tasse
24 public class TimeGraphSelectionEvent
extends EventObject
{
27 * Default serial version UID for this class.
29 private static final long serialVersionUID
= 1L;
34 private final ITimeGraphEntry fSelection
;
37 * Standard constructor
40 * The source of this event
42 * The entry that was selected
44 public TimeGraphSelectionEvent(Object source
, ITimeGraphEntry selection
) {
46 fSelection
= selection
;
50 * @return the selected entry or null if the selection is empty.
52 public ITimeGraphEntry
getSelection() {