Bug 81099 JUnit preference does not Restore Defaults [JUnit]
I200412142000 Restore Defaults has no effect on the "Show JUnit view only when error occurs" preference.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPlugin.java
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.ElementListSelectionDialog;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
 * The plug-in runtime class for the JUnit plug-in.
 */
public class JUnitPlugin extends AbstractUIPlugin implements ILaunchListener {
	/**
	 * The single instance of this plug-in runtime class.
	 */
	private static JUnitPlugin fgPlugin= null;
	public static final String PLUGIN_ID= "org.eclipse.jdt.junit"; 
	public static final String ID_EXTENSION_POINT_TESTRUN_LISTENERS= PLUGIN_ID + "." + "testRunListeners"; 
	public static final String ID_EXTENSION_POINT_JUNIT_LAUNCHCONFIGS= PLUGIN_ID + "." + "junitLaunchConfigs"; 
	public final static String TEST_SUPERCLASS_NAME= "junit.framework.TestCase"; 
	public final static String TEST_INTERFACE_NAME= "junit.framework.Test"; 
	public static final String SIMPLE_TEST_INTERFACE_NAME= "Test"; 
	
	/**
	 * The class path variable referring to the junit home location
	 */
	public final static String JUNIT_HOME= "JUNIT_HOME"; 
	private static URL fgIconBaseURL;
	/**
	 * Use to track new launches. We need to do this