Bug 48968 "Focus on" in typehierarchy doesn't show name for anonymous inners [type hiearchy]
I2003-12-16-20:00 1) Import Junit 2) Create a Java working set containing junit.framework 3) open a type hierarchy on junit.framework.Protectable. 4) In the type hierarchy, select the working set created in step 2). 5) Observe: Protectable has an anonymous inner subclass 6) open the context menu on the anonymous class 7) observe: the menu contains an entry like this: "Focus on ''". I.e. there is no label for the anonymous inner class.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/FocusOnSelectionAction.java
/*******************************************************************************
 * Copyright (c) 2000, 2003 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.ui.typehierarchy;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.ui.help.WorkbenchHelp;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
import org.eclipse.jdt.internal.ui.util.SelectionUtil;
/**
 * Refocuses the type hierarchy on the currently selection type.
 */
public class FocusOnSelectionAction extends Action {