/*
 * Copyright (C) 2017 EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com>
 *
 * All rights reserved. This program and the accompanying materials are
 * made available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */

package org.lttng.scope.lttng.kernel.core.activator.internal;

import java.io.IOException;

import org.lttng.scope.common.core.ScopeCoreActivator;
import org.lttng.scope.lami.core.module.LamiAnalysisFactoryException;

/**
 * Plugin activator
 *
 * @noreference This class should not be accessed outside of this plugin.
 */
public class Activator extends ScopeCoreActivator {

    /**
     * Return the singleton instance of this activator.
     *
     * @return The singleton instance
     */
    public static Activator instance() {
        return ScopeCoreActivator.getInstance(Activator.class);
    }

    @Override
    protected void startActions() {
        try {
            LttngAnalysesLoader.load();
        } catch (LamiAnalysisFactoryException | IOException e) {
            // Not the end of the world if the analyses are not available
            logWarning("Cannot find LTTng analyses configuration files: " + e.getMessage()); //$NON-NLS-1$
        }
    }

    @Override
    protected void stopActions() {
    }

}

@@ -402,37 +402,8 @@
 l;%0A%0A
-import java.io.IOException;%0A%0A
 impo
@@ -456,78 +456,8 @@
 tor;
-%0Aimport org.lttng.scope.lami.core.module.LamiAnalysisFactoryException;
 %0A%0A/*
@@ -887,24 +887,26 @@
 Actions() %7B%0A
+//
         try 
@@ -907,16 +907,18 @@
   try %7B%0A
+//
         
@@ -949,16 +949,18 @@
 load();%0A
+//
         
@@ -1012,24 +1012,26 @@
 eption e) %7B%0A
+//
             
@@ -1092,16 +1092,18 @@
 ailable%0A
+//
         
@@ -1201,16 +1201,18 @@
 -NLS-1$%0A
+//
         

Disable the built-in LTTng-Analyses connectors