2 * Copyright (C) 2017 EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com>
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 package org
.lttng
.scope
.lttng
.kernel
.core
.activator
.internal
;
12 import org
.lttng
.scope
.lttng
.kernel
.core
.views
.kernel
.controlflow2
.ControlFlowModelProvider
;
13 import org
.lttng
.scope
.lttng
.kernel
.core
.views
.kernel
.resources2
.ResourcesModelProvider
;
14 import org
.lttng
.scope
.tmf2
.views
.core
.ScopeCoreActivator
;
15 import org
.lttng
.scope
.tmf2
.views
.core
.timegraph
.model
.provider
.TimeGraphModelProviderManager
;
20 * @noreference This class should not be accessed outside of this plugin.
22 public class Activator
extends ScopeCoreActivator
{
25 * Return the singleton instance of this activator.
27 * @return The singleton instance
29 public static Activator
instance() {
30 return ScopeCoreActivator
.getInstance(Activator
.class);
34 protected void startActions() {
35 /* Register the model providers shipped in this plugin */
36 TimeGraphModelProviderManager manager
= TimeGraphModelProviderManager
.instance();
37 manager
.registerProviderFactory(() -> new ControlFlowModelProvider());
38 manager
.registerProviderFactory(() -> new ResourcesModelProvider());
40 /* Register the built-in LTTng-Analyses descriptors */
42 // LttngAnalysesLoader.load();
43 // } catch (LamiAnalysisFactoryException | IOException e) {
44 // // Not the end of the world if the analyses are not available
45 // logWarning("Cannot find LTTng analyses configuration files: " + e.getMessage()); //$NON-NLS-1$
50 protected void stopActions() {