~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchPlugin.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2012-06-29 12:07:30 UTC
  • Revision ID: package-import@ubuntu.com-20120629120730-bfri1xys1i71dpn6
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
 * Copyright (c) 2010 Elliott Baron
 
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
 *    Elliott Baron <ebaron@fedoraproject.org> - initial API and implementation
 
10
 *******************************************************************************/ 
 
11
package org.eclipse.linuxtools.internal.profiling.launch.remote;
 
12
 
 
13
import org.eclipse.ui.plugin.AbstractUIPlugin;
 
14
import org.osgi.framework.BundleContext;
 
15
 
 
16
/**
 
17
 * The activator class controls the plug-in life cycle
 
18
 */
 
19
public class ProfileRemoteLaunchPlugin extends AbstractUIPlugin {
 
20
 
 
21
        // The plug-in ID
 
22
        public static final String PLUGIN_ID = "org.eclipse.linuxtools.profiling.launch.remote"; //$NON-NLS-1$
 
23
 
 
24
        // The shared instance
 
25
        private static ProfileRemoteLaunchPlugin plugin;
 
26
        
 
27
        /**
 
28
         * The constructor
 
29
         */
 
30
        public ProfileRemoteLaunchPlugin() {
 
31
        }
 
32
 
 
33
        /*
 
34
         * (non-Javadoc)
 
35
         * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
 
36
         */
 
37
        public void start(BundleContext context) throws Exception {
 
38
                super.start(context);
 
39
                plugin = this;
 
40
        }
 
41
 
 
42
        /*
 
43
         * (non-Javadoc)
 
44
         * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
 
45
         */
 
46
        public void stop(BundleContext context) throws Exception {
 
47
                plugin = null;
 
48
                super.stop(context);
 
49
        }
 
50
 
 
51
        /**
 
52
         * Returns the shared instance
 
53
         *
 
54
         * @return the shared instance
 
55
         */
 
56
        public static ProfileRemoteLaunchPlugin getDefault() {
 
57
                return plugin;
 
58
        }
 
59
 
 
60
}