crashanalysis/crashanalyser/com.nokia.s60tools.crashanalyser.help/src/com/nokia/s60tools/crashanalyser/help/HelpPlugin.java
changeset 0 5ad7ad99af01
equal deleted inserted replaced
-1:000000000000 0:5ad7ad99af01
       
     1 /*
       
     2 * Copyright (c) 2008 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 "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 
       
    18 package com.nokia.s60tools.crashanalyser.help;
       
    19 
       
    20 import org.eclipse.ui.plugin.*;
       
    21 import org.osgi.framework.BundleContext;
       
    22 
       
    23 /**
       
    24  * The main plugin class to be used in the desktop.
       
    25  */
       
    26 public class HelpPlugin extends AbstractUIPlugin {
       
    27 
       
    28 	//The shared instance.
       
    29 	private static HelpPlugin plugin;
       
    30 	
       
    31 	/**
       
    32 	 * The constructor.
       
    33 	 */
       
    34 	public HelpPlugin() {
       
    35 		plugin = this;
       
    36 	}
       
    37 
       
    38 	/**
       
    39 	 * This method is called upon plug-in activation
       
    40 	 */
       
    41 	public void start(BundleContext context) throws Exception {
       
    42 		super.start(context);
       
    43 	}
       
    44 
       
    45 	/**
       
    46 	 * This method is called when the plug-in is stopped
       
    47 	 */
       
    48 	public void stop(BundleContext context) throws Exception {
       
    49 		super.stop(context);
       
    50 		plugin = null;
       
    51 	}
       
    52 
       
    53 	/**
       
    54 	 * Returns the shared instance.
       
    55 	 */
       
    56 	public static HelpPlugin getDefault() {
       
    57 		return plugin;
       
    58 	}
       
    59 }