1 /**********************************************************************
2 * Copyright (c) 2013 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 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
12 package org
.eclipse
.linuxtools
.internal
.tracing
.rcp
.ui
;
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 * @author Bernd Hufmann
23 public class TracingRcpPlugin
extends AbstractUIPlugin
{
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
31 public static final String PLUGIN_ID
= "org.eclipse.linuxtools.tracing.rcp.ui"; //$NON-NLS-1$
33 // ------------------------------------------------------------------------
35 // ------------------------------------------------------------------------
37 // The shared instance
38 private static TracingRcpPlugin fPlugin
;
40 // ------------------------------------------------------------------------
42 // ------------------------------------------------------------------------
44 * The default constructor
46 public TracingRcpPlugin() {
49 // ------------------------------------------------------------------------
51 // ------------------------------------------------------------------------
53 * Returns the shared instance
55 * @return the shared instance
57 public static TracingRcpPlugin
getDefault() {
61 // ------------------------------------------------------------------------
63 // ------------------------------------------------------------------------
65 public void start(BundleContext context
) throws Exception
{
71 public void stop(BundleContext context
) throws Exception
{
77 * Returns an image descriptor for the image file at the given
78 * plug-in relative path
80 * @param path the path
81 * @return the image descriptor
83 public static ImageDescriptor
getImageDescriptor(String path
) {
84 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);
This page took 0.032517 seconds and 5 git commands to generate.