Bug 10158 [hovering] Report protection in hover-help
1. Hover the mouse over a method call in the JavaEditor 2. When the hover-help pops up note that it contains the method signature and JavaDoc, but not the method's protection The protection information is also useful to potential callers of that method and should be reported with the signature.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/OrganizeImportsAction.java
}
		
		if (sel instanceof ITextSelection) {
			ITextSelection textSelection= (ITextSelection) sel;
			fEditor.selectAndReveal(textSelection.getOffset(), textSelection.getLength());
		}
		return result;
	}
	
	private void doListSelectionChanged(int page, ISourceRange[] ranges) {
		if (page >= 0 && page < ranges.length) {
			ISourceRange range= ranges[page];
			fEditor.selectAndReveal(range.getOffset(), range.getLength());
		}
	}
	
	
	public void setContentEditor(ITextEditor editor) {
		fEditor= editor;
		setEnabled(editor != null && fEditor.isEditable());
	}
	
	private void showParsingErrorDialog(IProblem problem) {
		String title= JavaEditorMessages.getString("OrganizeImportsAction.error.title");
		String[] args= { String.valueOf(problem.getSourceLineNumber()), problem.getMessage() };
		String message= JavaEditorMessages.getFormattedString("OrganizeImportsAction.error.parsing.message", args);
		MessageDialog.openInformation(JavaPlugin.getActiveWorkbenchShell(), title, message);
	}
}