1 /*******************************************************************************
2 * Copyright (c) 2015 École Polytechnique de Montréal
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
.analysis
.graph
.ui
;
12 import org
.eclipse
.core
.runtime
.IStatus
;
13 import org
.eclipse
.core
.runtime
.Status
;
14 import org
.eclipse
.ui
.plugin
.AbstractUIPlugin
;
15 import org
.osgi
.framework
.BundleContext
;
18 * The activator class controls the plug-in life cycle
20 * @author Geneviève Bastien
22 public class Activator
extends AbstractUIPlugin
{
25 public static final String PLUGIN_ID
= "org.eclipse.tracecompass.analysis.graph.ui"; //$NON-NLS-1$
27 // The shared instance
28 private static Activator plugin
;
37 public void start(BundleContext context
) throws Exception
{
43 public void stop(BundleContext context
) throws Exception
{
49 * Returns the shared instance
51 * @return the shared instance
53 public static Activator
getDefault() {
57 // --------------------------------------
59 // --------------------------------------
62 * Logs a message with severity INFO in the runtime log of the plug-in.
67 public void logInfo(String message
) {
68 getLog().log(new Status(IStatus
.INFO
, PLUGIN_ID
, message
));
72 * Logs a message and exception with severity INFO in the runtime log of the
80 public void logInfo(String message
, Throwable exception
) {
81 getLog().log(new Status(IStatus
.INFO
, PLUGIN_ID
, message
, exception
));
85 * Logs a message and exception with severity WARNING in the runtime log of
91 public void logWarning(String message
) {
92 getLog().log(new Status(IStatus
.WARNING
, PLUGIN_ID
, message
));
96 * Logs a message and exception with severity WARNING in the runtime log of
104 public void logWarning(String message
, Throwable exception
) {
105 getLog().log(new Status(IStatus
.WARNING
, PLUGIN_ID
, message
, exception
));
109 * Logs a message and exception with severity ERROR in the runtime log of
115 public void logError(String message
) {
116 getLog().log(new Status(IStatus
.ERROR
, PLUGIN_ID
, message
));
120 * Logs a message and exception with severity ERROR in the runtime log of
128 public void logError(String message
, Throwable exception
) {
129 getLog().log(new Status(IStatus
.ERROR
, PLUGIN_ID
, message
, exception
));
This page took 0.033182 seconds and 5 git commands to generate.