1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 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 * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12 package org
.eclipse
.linuxtools
.tmf
.ui
.tests
;
14 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
15 import org
.eclipse
.ui
.plugin
.AbstractUIPlugin
;
16 import org
.osgi
.framework
.BundleContext
;
19 * The activator class controls the plug-in life cycle
21 public class TmfUITestPlugin
extends AbstractUIPlugin
{
24 public static final String PLUGIN_ID
= "org.eclipse.linuxtools.tmf.ui.tests";
26 // The shared instance
27 private static TmfUITestPlugin plugin
;
29 // ========================================================================
31 // ========================================================================
32 public TmfUITestPlugin() {
35 // ========================================================================
37 // ========================================================================
40 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
42 public void start(BundleContext context
) throws Exception
{
49 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
51 public void stop(BundleContext context
) throws Exception
{
57 * Returns the shared instance
59 * @return the shared instance
61 public static TmfUITestPlugin
getDefault() {
66 * Returns an image descriptor for the image file at the given
67 * plug-in relative path
69 * @param path the path
70 * @return the image descriptor
72 public static ImageDescriptor
getImageDescriptor(String path
) {
73 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);
This page took 0.032463 seconds and 5 git commands to generate.