~ubuntu-branches/ubuntu/utopic/eclipse-linuxtools/utopic

« back to all changes in this revision

Viewing changes to systemtap/org.eclipse.linuxtools.systemtap.ui.dashboardextension/src/org/eclipse/linuxtools/internal/systemtap/ui/dashboardextension/DashboardExtensionPlugin.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2014-05-12 18:11:40 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140512181140-w237r3vsah1tmybz
Tags: 2.2.1-1
* New upstream release.
* Refreshed d/patches.
* Removed eclipse-cdt-valgrind-remote package, all its functionality
  is now provided by eclipse-cdt-profiling-framework-remote.
* Added remove-license-feature.patch.
* Bump Standards-Version to 3.9.5.
* Enable eclipse-changelog package.
* Enable eclipse-rpm-editor package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
7
 
 *
8
 
 * Contributors:
9
 
 *     IBM Corporation - Jeff Briggs, Henry Hughes, Ryan Morse, Anithra P J
10
 
 *******************************************************************************/
11
 
 
12
 
package org.eclipse.linuxtools.internal.systemtap.ui.dashboardextension;
13
 
 
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;
18
 
 
19
 
/**
20
 
 * The main plugin class to be used in the desktop.
21
 
 */
22
 
public class DashboardExtensionPlugin extends AbstractUIPlugin implements IStartup {
23
 
 
24
 
        //The shared instance.
25
 
        private static DashboardExtensionPlugin plugin;
26
 
        
27
 
        /**
28
 
         * The constructor.
29
 
         */
30
 
        public DashboardExtensionPlugin() {
31
 
                plugin = this;
32
 
        }
33
 
 
34
 
        /**
35
 
         * This method is called upon plug-in activation
36
 
         */
37
 
        @Override
38
 
        public void start(BundleContext context) throws Exception {
39
 
                super.start(context);
40
 
        }
41
 
 
42
 
        /**
43
 
         * This method is called when the plug-in is stopped
44
 
         */
45
 
        @Override
46
 
        public void stop(BundleContext context) throws Exception {
47
 
                super.stop(context);
48
 
                plugin = null;
49
 
        }
50
 
 
51
 
        /**
52
 
         * Returns the shared instance.
53
 
         */
54
 
        public static DashboardExtensionPlugin getDefault() {
55
 
                return plugin;
56
 
        }
57
 
 
58
 
        /**
59
 
         * Returns an image descriptor for the image file at the given
60
 
         * plug-in relative path.
61
 
         *
62
 
         * @param path the path
63
 
         * @return the image descriptor
64
 
         */
65
 
        public static ImageDescriptor getImageDescriptor(String path) {
66
 
                return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.linuxtools.systemtap.ui.dashboardextension", path);
67
 
        }
68
 
        
69
 
        public void earlyStartup() {}
70
 
}