1
/*******************************************************************************
2
* Copyright (c) 2006 IBM Corporation.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* IBM Corporation - Jeff Briggs, Henry Hughes, Ryan Morse
10
*******************************************************************************/
12
package org.eclipse.linuxtools.internal.systemtap.ui.editor;
14
import org.eclipse.ui.IStartup;
15
import org.eclipse.ui.plugin.*;
16
import org.eclipse.jface.resource.ImageDescriptor;
17
import org.osgi.framework.BundleContext;
20
* The main plugin class to be used in the desktop.
22
public class EditorPlugin extends AbstractUIPlugin implements IStartup {
24
//The shared instance.
25
private static EditorPlugin plugin;
30
public EditorPlugin() {
35
* This method is called upon plug-in activation
37
public void start(BundleContext context) throws Exception {
42
* This method is called when the plug-in is stopped
44
public void stop(BundleContext context) throws Exception {
50
* Returns the shared instance.
52
public static EditorPlugin getDefault() {
57
* Returns an image descriptor for the image file at the given
58
* plug-in relative path.
60
* @param path the path
61
* @return the image descriptor
63
public static ImageDescriptor getImageDescriptor(String path) {
64
return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.linuxtools.systemtap.ui.editor", path);
67
public void earlyStartup() {}