1 /*******************************************************************************
2 * Copyright (c) 2015 Ericsson
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
.timing
.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 public class Activator
extends AbstractUIPlugin
{
23 public static final String PLUGIN_ID
= "org.eclipse.tracecompass.analysis.timing.ui"; //$NON-NLS-1$
25 // The shared instance
26 private static Activator plugin
;
35 public void start(BundleContext context
) throws Exception
{
41 public void stop(BundleContext context
) throws Exception
{
47 * Returns the shared instance
49 * @return the shared instance
51 public static Activator
getDefault() {
55 // --------------------------------------
57 // --------------------------------------
60 * Logs a message with severity INFO in the runtime log of the plug-in.
65 public void logInfo(String message
) {
66 getLog().log(new Status(IStatus
.INFO
, PLUGIN_ID
, message
));
70 * Logs a message and exception with severity INFO in the runtime log of the
78 public void logInfo(String message
, Throwable exception
) {
79 getLog().log(new Status(IStatus
.INFO
, PLUGIN_ID
, message
, exception
));
83 * Logs a message and exception with severity WARNING in the runtime log of
89 public void logWarning(String message
) {
90 getLog().log(new Status(IStatus
.WARNING
, PLUGIN_ID
, message
));
94 * Logs a message and exception with severity WARNING in the runtime log of
102 public void logWarning(String message
, Throwable exception
) {
103 getLog().log(new Status(IStatus
.WARNING
, PLUGIN_ID
, message
, exception
));
107 * Logs a message and exception with severity ERROR in the runtime log of
113 public void logError(String message
) {
114 getLog().log(new Status(IStatus
.ERROR
, PLUGIN_ID
, message
));
118 * Logs a message and exception with severity ERROR in the runtime log of
126 public void logError(String message
, Throwable exception
) {
127 getLog().log(new Status(IStatus
.ERROR
, PLUGIN_ID
, message
, exception
));
This page took 0.039044 seconds and 5 git commands to generate.