1 /*******************************************************************************
2 * Copyright (c) 2016 EfficiOS Inc., Alexandre Montplaisir
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 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.internal
.provisional
.tmf
.ui
.views
.timegraph2
.swtjfx
;
12 import org
.eclipse
.jdt
.annotation
.Nullable
;
13 import org
.eclipse
.jface
.action
.IToolBarManager
;
14 import org
.eclipse
.swt
.widgets
.Composite
;
15 import org
.eclipse
.tracecompass
.internal
.provisional
.tmf
.core
.views
.timegraph2
.ITimeGraphModelRenderProvider
;
16 import org
.eclipse
.tracecompass
.internal
.provisional
.tmf
.ui
.views
.timegraph2
.TimeGraphModelView
;
18 public abstract class SwtJfxTimeGraphView
extends TimeGraphModelView
{
20 private @Nullable SwtJfxTimeGraphViewer fViewer
;
22 protected SwtJfxTimeGraphView(String viewName
, ITimeGraphModelRenderProvider modelRenderProvider
) {
23 super(viewName
, modelRenderProvider
);
27 public void createPartControl(@Nullable Composite parent
) {
31 SwtJfxTimeGraphViewer viewer
= new SwtJfxTimeGraphViewer(parent
, getRenderProvider());
34 IToolBarManager toolbarMgr
= getViewSite().getActionBars().getToolBarManager();
35 toolbarMgr
.add(ActionFactory
.getSelectSortingModeAction(viewer
));
36 toolbarMgr
.add(ActionFactory
.getSelectFilterModesAction(viewer
));
40 public void dispose() {
41 if (fViewer
!= null) {
47 public void setFocus() {