/** * Returns a string representation of this completion. If the short * description is not <code>null</code>, this method will return: * * <code>getInputText() + " - " + shortDesc</code> * * otherwise, it will return <tt>getInputText()</tt>. * * @return A string representation of this completion. */ @Override public String toString() { if (shortDesc==null) { return getInputText(); } return getInputText() + " - " + shortDesc; }