sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.util/src/com/nokia/carbide/cpp/pi/util/PIUtilPlugin.java
changeset 12 ae255c9aa552
parent 2 b9ab3b238396
equal deleted inserted replaced
11:5b9d4d8641ce 12:ae255c9aa552
    28 	public static final String PLUGIN_ID = "com.nokia.carbide.cpp.pi.ui"; //$NON-NLS-1$
    28 	public static final String PLUGIN_ID = "com.nokia.carbide.cpp.pi.ui"; //$NON-NLS-1$
    29 
    29 
    30 	//The shared instance.
    30 	//The shared instance.
    31 	private static PIUtilPlugin plugin;
    31 	private static PIUtilPlugin plugin;
    32 
    32 
    33 	private static void setPlugin(PIUtilPlugin newPlugin)
    33 	private static void setPlugin(final PIUtilPlugin newPlugin)
    34 	{
    34 	{
    35 		plugin = newPlugin;
    35 		plugin = newPlugin;
    36 	}
    36 	}
    37 
    37 
    38 	/**
    38 	/**
    43 	}
    43 	}
    44 
    44 
    45 	/**
    45 	/**
    46 	 * This method is called upon plug-in activation
    46 	 * This method is called upon plug-in activation
    47 	 */
    47 	 */
    48 	public void start(BundleContext context) throws Exception {
    48 	public void start(final BundleContext context) throws Exception {
    49 		super.start(context);
    49 		super.start(context);
    50 	}
    50 	}
    51 
    51 
    52 	/**
    52 	/**
    53 	 * This method is called when the plug-in is stopped
    53 	 * This method is called when the plug-in is stopped
    54 	 */
    54 	 */
    55 	public void stop(BundleContext context) throws Exception {
    55 	public void stop(final BundleContext context) throws Exception {
    56 		super.stop(context);
    56 		super.stop(context);
    57 		setPlugin(null);
    57 		setPlugin(null);
    58 	}
    58 	}
    59 
    59 
    60 	/**
    60 	/**