Commit | Line | Data |
---|---|---|
735b1ca2 AM |
1 | /* |
2 | * Copyright (C) 2017 EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com> | |
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 | ||
10 | package org.lttng.scope.tmf2.views.ui.timeline.widgets.timegraph.toolbar.nav; | |
11 | ||
12 | import static java.util.Objects.requireNonNull; | |
13 | ||
14 | import org.lttng.scope.tmf2.views.ui.timeline.widgets.timegraph.TimeGraphWidget; | |
15 | ||
16 | /** | |
17 | * Navigation mode using the current entry's events. It looks through all events | |
18 | * in the trace belonging to the tree entry of the current selected state, and | |
19 | * navigates through them. This allows stopping at events that may not cause a | |
20 | * state change shown in the view. | |
21 | * | |
22 | * @author Alexandre Montplaisir | |
23 | */ | |
24 | public class NavigationModeFollowBookmarks extends NavigationMode { | |
25 | ||
26 | private static final String BACK_ICON_PATH = "/icons/toolbar/nav_bookmark_back.gif"; //$NON-NLS-1$ | |
27 | private static final String FWD_ICON_PATH = "/icons/toolbar/nav_bookmark_fwd.gif"; //$NON-NLS-1$ | |
28 | ||
29 | /** | |
30 | * Constructor | |
31 | */ | |
32 | public NavigationModeFollowBookmarks() { | |
33 | super(requireNonNull(Messages.sfFollowBookmarksNavModeName), | |
34 | BACK_ICON_PATH, | |
35 | FWD_ICON_PATH); | |
36 | } | |
37 | ||
38 | @Override | |
39 | public boolean isEnabled() { | |
40 | return false; | |
41 | } | |
42 | ||
43 | @Override | |
44 | public void navigateBackwards(TimeGraphWidget viewer) { | |
45 | // TODO NYI | |
46 | System.out.println("Follow bookmarks backwards"); | |
47 | } | |
48 | ||
49 | @Override | |
50 | public void navigateForwards(TimeGraphWidget viewer) { | |
51 | // TODO NYI | |
52 | System.out.println("Follow bookmarks forwards"); | |
53 | } | |
54 | ||
55 | } |