| /******************************************************************************* |
| * Copyright (c) 2015 Ericsson |
| * |
| * All rights reserved. This program and the accompanying materials are |
| * made available under the terms of the Eclipse Public License 2.0 which |
| * accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Patrick Tasse - Initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.tracecompass.tmf.ui.widgets.timegraph; |
| |
| import java.util.EventObject; |
| |
| import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.IMarkerEvent; |
| |
| /** |
| * Bookmark event |
| * |
| * @author Patrick Tasse |
| * @since 2.0 |
| */ |
| public class TimeGraphBookmarkEvent extends EventObject { |
| |
| /** |
| * Default serial version UID for this class. |
| */ |
| private static final long serialVersionUID = 8155869849072620814L; |
| |
| /** |
| * The bookmark |
| */ |
| private final IMarkerEvent fBookmark; |
| |
| /** |
| * Standard constructor |
| * |
| * @param source |
| * The source of this event |
| * @param bookmark |
| * The bookmark |
| */ |
| public TimeGraphBookmarkEvent(Object source, IMarkerEvent bookmark) { |
| super(source); |
| fBookmark = bookmark; |
| } |
| |
| /** |
| * @return the bookmark |
| */ |
| public IMarkerEvent getBookmark() { |
| return fBookmark; |
| } |
| |
| } |