trace/traceanalyser/com.nokia.s60tools.traceanalyser.timingrule/src/com/nokia/s60tools/traceanalyser/timingrule/plugin/TraceAnalyserTimingRulePlugin.java
changeset 9 14dc2103a631
equal deleted inserted replaced
8:15296fd0af4a 9:14dc2103a631
       
     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 "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 
       
    19 package com.nokia.s60tools.traceanalyser.timingrule.plugin;
       
    20 
       
    21 import org.eclipse.core.runtime.Plugin;
       
    22 import org.osgi.framework.BundleContext;
       
    23 
       
    24 /**
       
    25  * The activator class controls the plug-in life cycle
       
    26  */
       
    27 public class TraceAnalyserTimingRulePlugin extends Plugin {
       
    28 
       
    29 	// The plug-in ID
       
    30 	public static final String PLUGIN_ID = "com.nokia.s60tools.traceanalyser.timingrule";
       
    31 
       
    32 	// The shared instance
       
    33 	private static TraceAnalyserTimingRulePlugin plugin;
       
    34 	
       
    35 	/**
       
    36 	 * TraceAnalyserTimingRulePlugin.
       
    37 	 * The constructor
       
    38 	 */
       
    39 	public TraceAnalyserTimingRulePlugin() {
       
    40 	}
       
    41 
       
    42 	/*
       
    43 	 * (non-Javadoc)
       
    44 	 * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
       
    45 	 */
       
    46 	public void start(BundleContext context) throws Exception {
       
    47 		super.start(context);
       
    48 		plugin = this;
       
    49 	}
       
    50 
       
    51 	/*
       
    52 	 * (non-Javadoc)
       
    53 	 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
       
    54 	 */
       
    55 	public void stop(BundleContext context) throws Exception {
       
    56 		plugin = null;
       
    57 		super.stop(context);
       
    58 	}
       
    59 
       
    60 	/**
       
    61 	 * getDefault.
       
    62 	 * Returns the shared instance
       
    63 	 * @return the shared instance
       
    64 	 */
       
    65 	public static TraceAnalyserTimingRulePlugin getDefault() {
       
    66 		return plugin;
       
    67 	}
       
    68 
       
    69 }