connectivity/com.nokia.carbide.remoteConnections.tests/src/com/nokia/carbide/remoteconnections/tests/Activator.java
changeset 0 fb279309251b
equal deleted inserted replaced
-1:000000000000 0:fb279309251b
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 package com.nokia.carbide.remoteconnections.tests;
       
    18 
       
    19 import org.eclipse.ui.plugin.AbstractUIPlugin;
       
    20 import org.osgi.framework.BundleContext;
       
    21 
       
    22 /**
       
    23  * The activator class controls the plug-in life cycle
       
    24  */
       
    25 public class Activator extends AbstractUIPlugin {
       
    26 
       
    27 	// The plug-in ID
       
    28 	public static final String PLUGIN_ID = "remoteConnections.tests";
       
    29 
       
    30 	// The shared instance
       
    31 	private static Activator plugin;
       
    32 	
       
    33 	/**
       
    34 	 * The constructor
       
    35 	 */
       
    36 	public Activator() {
       
    37 	}
       
    38 
       
    39 	/*
       
    40 	 * (non-Javadoc)
       
    41 	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
       
    42 	 */
       
    43 	public void start(BundleContext context) throws Exception {
       
    44 		super.start(context);
       
    45 		plugin = this;
       
    46 	}
       
    47 
       
    48 	/*
       
    49 	 * (non-Javadoc)
       
    50 	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
       
    51 	 */
       
    52 	public void stop(BundleContext context) throws Exception {
       
    53 		plugin = null;
       
    54 		super.stop(context);
       
    55 	}
       
    56 
       
    57 	/**
       
    58 	 * Returns the shared instance
       
    59 	 *
       
    60 	 * @return the shared instance
       
    61 	 */
       
    62 	public static Activator getDefault() {
       
    63 		return plugin;
       
    64 	}
       
    65 
       
    66 }