Bug 37886 Show type hierarchy cancel ends up with empty dialog
1) open type hierarchy on object 2) cancel ->the search is cancelled but an empty dialog is showing up.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HierarchyInformationControl.java
protected boolean isDifferentScope(IType type) {
			if (fFocus == null) {
				return super.isDifferentScope(type);
			}
			IMethod[] methods= type.findMethods(fFocus);
			if (methods != null && methods.length > 0) {
				return false;
			}
			return true;			
		}
			
	}
	
	private TypeHierarchyLifeCycle fLifeCycle;
	private HierarchyInformationControlLabelProvider fLabelProvider;
	private Label fLabel;
	
	private IMethod fFocus;
	public HierarchyInformationControl(Shell parent, int shellStyle, int treeStyle) {
		super(parent, shellStyle, treeStyle);
	}
	
	protected Text createFilterText(Composite parent) {
		fLabel= new Label(parent, SWT.NONE);
		
		fLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
		fLabel.setFont(JFaceResources.getBannerFont());
		return super.createFilterText(parent);
	}