Bug 43488 [typing] BadPositionCategoryException in LinkedPositionManager
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/contentassist/ContentAssistant2.java
/**
	 * Returns a hint whether a proposal was chosen the last time a popup selector was shown.
	 * 
	 * @return <code>true</code> if a proposal was chosen and inserted the last time 
	 * {@link #showPossibleCompletions()} was called, <code>false</code> otherwise or if no proposal
	 * has been shown so far
	 */
	public boolean wasProposalChosen() {
		return fWasChosen;
	}
	/**
	 * Sets the <code>wasChosen</code> flag which indicates whether a proposal was selected the last
	 * time a proposal popup was shown.
	 * 
	 * @param wasChosen the new value of the <code>wasChosen</code> flag.
	 */
	protected void setProposalChosen(boolean wasChosen) {
		fWasChosen= wasChosen;
	}
	/**
	 * Returns whether any popups controlled by the receiver have the input focus.
	 * 
	 * @return <code>true</code> if any of the managed popups have the focus, <code>false</code> otherwise
	 */
	public boolean hasFocus() {
		return (fProposalPopup != null && fProposalPopup.hasFocus())
				|| (fContextInfoPopup != null && fContextInfoPopup.hasFocus());
	}
}