1 /*******************************************************************************
2 * Copyright (c) 2012 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
.linuxtools
.tmf
.ui
.widgets
.timegraph
;
15 import java
.util
.EventObject
;
17 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.model
.ITimeGraphEntry
;
20 * Notifier for the time graph that an object in the views has been selected.
23 * @author Patrick Tasse
25 public class TimeGraphSelectionEvent
extends EventObject
{
28 * Default serial version UID for this class.
31 private static final long serialVersionUID
= 1L;
36 private final ITimeGraphEntry fSelection
;
39 * Standard constructor
42 * The source of this event
44 * The entry that was selected
46 public TimeGraphSelectionEvent(Object source
, ITimeGraphEntry selection
) {
48 fSelection
= selection
;
52 * @return the selected entry or null if the selection is empty.
54 public ITimeGraphEntry
getSelection() {