1 /*******************************************************************************
2 * Copyright (c) 2009 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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
;
15 import org
.eclipse
.linuxtools
.tmf
.ui
.parsers
.ParserProviderManager
;
16 import org
.eclipse
.swt
.graphics
.Image
;
17 import org
.eclipse
.ui
.plugin
.AbstractUIPlugin
;
18 import org
.osgi
.framework
.BundleContext
;
21 * <b><u>TmfUiPlugin</u></b>
23 * The activator class controls the plug-in life cycle
25 public class TmfUiPlugin
extends AbstractUIPlugin
{
27 // ========================================================================
29 // ========================================================================
32 public static final String PLUGIN_ID
= "org.eclipse.linuxtools.tmf.ui"; //$NON-NLS-1$
34 // The shared instance
35 private static TmfUiPlugin plugin
;
37 // ========================================================================
39 // ========================================================================
44 public TmfUiPlugin() {
47 // ========================================================================
49 // ========================================================================
52 * Returns the shared instance
54 * @return the shared instance
56 public static TmfUiPlugin
getDefault() {
60 // ========================================================================
62 // ========================================================================
66 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
69 public void start(BundleContext context
) throws Exception
{
72 ParserProviderManager
.init();
77 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
80 public void stop(BundleContext context
) throws Exception
{
85 public Image
getImageFromPath(String path
)
87 return AbstractUIPlugin
.imageDescriptorFromPlugin(PLUGIN_ID
, path
).createImage();
This page took 0.032164 seconds and 5 git commands to generate.