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

« back to all changes in this revision

Viewing changes to systemtap/org.eclipse.linuxtools.systemtap.ui.logging/src/org/eclipse/linuxtools/internal/systemtap/ui/logging/LoggingPlugin.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
10
 
 *******************************************************************************/
11
 
 
12
 
package org.eclipse.linuxtools.internal.systemtap.ui.logging;
13
 
 
14
 
import org.eclipse.ui.plugin.*;
15
 
import org.eclipse.jface.resource.ImageDescriptor;
16
 
import org.osgi.framework.BundleContext;
17
 
 
18
 
/**
19
 
 * The main plugin class to be used in the desktop.
20
 
 */
21
 
public class LoggingPlugin extends AbstractUIPlugin {
22
 
 
23
 
        //The shared instance.
24
 
        private static LoggingPlugin plugin;
25
 
        
26
 
        /**
27
 
         * The constructor.
28
 
         */
29
 
        public LoggingPlugin() {
30
 
                plugin = this;
31
 
        }
32
 
 
33
 
        /**
34
 
         * This method is called upon plug-in activation
35
 
         */
36
 
        @Override
37
 
        public void start(BundleContext context) throws Exception {
38
 
                super.start(context);
39
 
        }
40
 
 
41
 
        /**
42
 
         * This method is called when the plug-in is stopped
43
 
         */
44
 
        @Override
45
 
        public void stop(BundleContext context) throws Exception {
46
 
                super.stop(context);
47
 
                plugin = null;
48
 
        }
49
 
 
50
 
        /**
51
 
         * Returns the shared instance.
52
 
         */
53
 
        public static LoggingPlugin getDefault() {
54
 
                return plugin;
55
 
        }
56
 
 
57
 
        /**
58
 
         * Returns an image descriptor for the image file at the given
59
 
         * plug-in relative path.
60
 
         *
61
 
         * @param path the path
62
 
         * @return the image descriptor
63
 
         */
64
 
        public static ImageDescriptor getImageDescriptor(String path) {
65
 
                return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.linuxtools.systemtap.ui.logging", path);
66
 
        }
67
 
}