Bug 128048 [junit] Clear history action in JUnit view has misleading name
I20060215-0010 Clear history action suggests that past (already terminated) testruns are cleared from the testrun history, but instead the action terminates and removes all active and inactive testruns. I suggest to either implement the action to only clear terminated testruns from the history or rename it to something like "Terminate All and Remove" with an icon resembling the ones from debug.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPlugin.java
package org.eclipse.jdt.internal.junit.ui;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.eclipse.jdt.junit.ITestRunListener;
import org.eclipse.jdt.internal.junit.model.JUnitModel;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
/**
 * The plug-in runtime class for the JUnit plug-in.
 */
public class JUnitPlugin extends AbstractUIPlugin {