Commit | Line | Data |
---|---|---|
1d012443 PT |
1 | /******************************************************************************* |
2 | * Copyright (c) 2015 Ericsson | |
3 | * | |
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 | |
8 | * | |
9 | * Contributors: | |
10 | * Patrick Tasse - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.tracecompass.tmf.ui.widgets.timegraph; | |
14 | ||
15 | import java.util.EventObject; | |
16 | ||
17 | import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.IMarkerEvent; | |
18 | ||
19 | /** | |
20 | * Bookmark event | |
21 | * | |
22 | * @author Patrick Tasse | |
23 | * @since 2.0 | |
24 | */ | |
25 | public class TimeGraphBookmarkEvent extends EventObject { | |
26 | ||
27 | /** | |
28 | * Default serial version UID for this class. | |
29 | */ | |
30 | private static final long serialVersionUID = 8155869849072620814L; | |
31 | ||
32 | /** | |
33 | * The bookmark | |
34 | */ | |
35 | private final IMarkerEvent fBookmark; | |
36 | ||
37 | /** | |
38 | * Standard constructor | |
39 | * | |
40 | * @param source | |
41 | * The source of this event | |
42 | * @param bookmark | |
43 | * The bookmark | |
44 | */ | |
45 | public TimeGraphBookmarkEvent(Object source, IMarkerEvent bookmark) { | |
46 | super(source); | |
47 | fBookmark = bookmark; | |
48 | } | |
49 | ||
50 | /** | |
51 | * @return the bookmark | |
52 | */ | |
53 | public IMarkerEvent getBookmark() { | |
54 | return fBookmark; | |
55 | } | |
56 | ||
57 | } |