Bug 31720 Browsing views should add listener to page [Browsing]
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
if (selection == null || selection.isEmpty())
			selection= restoreSelectionState(fMemento);
			
		if (selection == null || selection.isEmpty()) { 
			
			input= getSite().getPage().getInput();
			if (!(input instanceof IJavaElement)) {
				if (input instanceof IAdaptable)
					input= ((IAdaptable)input).getAdapter(IJavaElement.class);
				else
					return;
			}
			selection= new StructuredSelection(input);
		}
		selectionChanged(null, selection);
	}
	protected final void setHelp() {
		JavaUIHelp.setHelp(fViewer, getHelpContextId());
	}
	/**
	 * Returns the context ID for the Help system
	 * 
	 * @return	the string used as ID for the Help context
	 */
	abstract protected String getHelpContextId();
	/**
	 * Adds additional listeners to this view.
	 * This method can be overridden but should
	 * call super.
	 */