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
.common
.core
.ScopeCoreActivator
;
13 import org
.lttng
.scope
.lttng
.kernel
.core
.views
.timegraph
.resources
.ResourcesCpuIrqModelProvider
;
14 import org
.lttng
.scope
.lttng
.kernel
.core
.views
.timegraph
.resources
.ResourcesIrqModelProvider
;
15 import org
.lttng
.scope
.lttng
.kernel
.core
.views
.timegraph
.threads
.ThreadsModelProvider
;
16 import org
.lttng
.scope
.tmf2
.views
.core
.timegraph
.model
.provider
.TimeGraphModelProviderManager
;
21 * @noreference This class should not be accessed outside of this plugin.
23 public class Activator
extends ScopeCoreActivator
{
26 * Return the singleton instance of this activator.
28 * @return The singleton instance
30 public static Activator
instance() {
31 return ScopeCoreActivator
.getInstance(Activator
.class);
35 protected void startActions() {
36 /* Register the model providers shipped in this plugin */
37 TimeGraphModelProviderManager manager
= TimeGraphModelProviderManager
.instance();
38 manager
.registerProviderFactory(() -> new ThreadsModelProvider());
39 manager
.registerProviderFactory(() -> new ResourcesCpuIrqModelProvider());
40 manager
.registerProviderFactory(() -> new ResourcesIrqModelProvider());
42 /* Register the built-in LTTng-Analyses descriptors */
44 // LttngAnalysesLoader.load();
45 // } catch (LamiAnalysisFactoryException | IOException e) {
46 // // Not the end of the world if the analyses are not available
47 // logWarning("Cannot find LTTng analyses configuration files: " + e.getMessage()); //$NON-NLS-1$
52 protected void stopActions() {