carbidesdk/com.nokia.carbide.cpp.sdk.examples/src/com/nokia/carbide/cpp/sdk/examples/Activator.java
author timkelly
Fri, 27 Mar 2009 10:37:25 -0500
changeset 13 a515b8873c8c
parent 2 d760517a8095
permissions -rw-r--r--
Update to describe how SFO CDK works
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
/*
cawthron
parents:
diff changeset
     2
* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
cawthron
parents:
diff changeset
     3
* All rights reserved.
cawthron
parents:
diff changeset
     4
* This component and the accompanying materials are made available
cawthron
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
cawthron
parents:
diff changeset
     6
* which accompanies this distribution, and is available
cawthron
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
cawthron
parents:
diff changeset
     8
*
cawthron
parents:
diff changeset
     9
* Initial Contributors:
cawthron
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
cawthron
parents:
diff changeset
    11
*
cawthron
parents:
diff changeset
    12
* Contributors:
cawthron
parents:
diff changeset
    13
*
cawthron
parents:
diff changeset
    14
* Description: 
cawthron
parents:
diff changeset
    15
*
cawthron
parents:
diff changeset
    16
*/
cawthron
parents:
diff changeset
    17
cawthron
parents:
diff changeset
    18
package com.nokia.carbide.cpp.sdk.examples;
cawthron
parents:
diff changeset
    19
cawthron
parents:
diff changeset
    20
import org.eclipse.ui.plugin.AbstractUIPlugin;
cawthron
parents:
diff changeset
    21
import org.osgi.framework.BundleContext;
cawthron
parents:
diff changeset
    22
cawthron
parents:
diff changeset
    23
/**
cawthron
parents:
diff changeset
    24
 * The activator class controls the plug-in life cycle
cawthron
parents:
diff changeset
    25
 */
cawthron
parents:
diff changeset
    26
public class Activator extends AbstractUIPlugin {
cawthron
parents:
diff changeset
    27
cawthron
parents:
diff changeset
    28
	// The plug-in ID
cawthron
parents:
diff changeset
    29
	public static final String PLUGIN_ID = "com.nokia.carbide.cpp.sdk.examples";
cawthron
parents:
diff changeset
    30
cawthron
parents:
diff changeset
    31
	// The shared instance
cawthron
parents:
diff changeset
    32
	private static Activator plugin;
cawthron
parents:
diff changeset
    33
	
cawthron
parents:
diff changeset
    34
	/**
cawthron
parents:
diff changeset
    35
	 * The constructor
cawthron
parents:
diff changeset
    36
	 */
cawthron
parents:
diff changeset
    37
	public Activator() {
cawthron
parents:
diff changeset
    38
		plugin = this;
cawthron
parents:
diff changeset
    39
	}
cawthron
parents:
diff changeset
    40
cawthron
parents:
diff changeset
    41
	/*
cawthron
parents:
diff changeset
    42
	 * (non-Javadoc)
cawthron
parents:
diff changeset
    43
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
cawthron
parents:
diff changeset
    44
	 */
cawthron
parents:
diff changeset
    45
	public void start(BundleContext context) throws Exception {
cawthron
parents:
diff changeset
    46
		super.start(context);
cawthron
parents:
diff changeset
    47
	}
cawthron
parents:
diff changeset
    48
cawthron
parents:
diff changeset
    49
	/*
cawthron
parents:
diff changeset
    50
	 * (non-Javadoc)
cawthron
parents:
diff changeset
    51
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
cawthron
parents:
diff changeset
    52
	 */
cawthron
parents:
diff changeset
    53
	public void stop(BundleContext context) throws Exception {
cawthron
parents:
diff changeset
    54
		plugin = null;
cawthron
parents:
diff changeset
    55
		super.stop(context);
cawthron
parents:
diff changeset
    56
	}
cawthron
parents:
diff changeset
    57
cawthron
parents:
diff changeset
    58
	/**
cawthron
parents:
diff changeset
    59
	 * Returns the shared instance
cawthron
parents:
diff changeset
    60
	 *
cawthron
parents:
diff changeset
    61
	 * @return the shared instance
cawthron
parents:
diff changeset
    62
	 */
cawthron
parents:
diff changeset
    63
	public static Activator getDefault() {
cawthron
parents:
diff changeset
    64
		return plugin;
cawthron
parents:
diff changeset
    65
	}
cawthron
parents:
diff changeset
    66
cawthron
parents:
diff changeset
    67
}