/** * Returns <code>true</code> if the text covered by <code>selection</code> does not contain any * characters. Note the difference to {@link ITextSelection#isEmpty()}, which returns * <code>true</code> only for invalid selections. * * @param selection the selection * @return <code>true</code> if <code>selection</code> does not contain any text, * <code>false</code> otherwise * @throws BadLocationException if accessing the document failed */ public boolean isEmpty(ISelection selection) throws BadLocationException { return getImplementation(selection).isEmpty(selection); }
/** * Returns <code>true</code> if the text covered by <code>selection</code> does not contain any * characters. Note the difference to {@link ITextSelection#isEmpty()}, which returns * <code>true</code> only for invalid selections. * * @param selection the selection * @return <code>true</code> if <code>selection</code> does not contain any text, * <code>false</code> otherwise * @throws BadLocationException if accessing the document failed */ public boolean isEmpty(ISelection selection) throws BadLocationException { return getImplementation(selection).isEmpty(selection); }