Bug 125974 Restrict Junit launch shortcut appearance in menu
The soon-to-be-attached patch improves the behavior for the Junit launch shortcut. It uses property tests from a lower level plug-in (jdt.launching), and adds a test to only appear for container when JUnit is on the buildpath.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JavaTypeExtender.java
private static final String PROPERTY_IS_Test= "isTest"; 
	/**
	 * @inheritDoc
	 */
	public boolean test(Object receiver, String method, Object[] args, Object expectedValue) {
		IJavaElement javaElement = null;
		if (receiver instanceof IAdaptable) {
			javaElement = (IJavaElement) ((IAdaptable)receiver).getAdapter(IJavaElement.class);
		}
		if (javaElement != null) {
			if (!javaElement.exists()) {
				return false;
			}
		}
		if (javaElement instanceof IJavaProject ||
			javaElement instanceof IPackageFragmentRoot ||
			javaElement instanceof IPackageFragment) {
				return true;