TextEdit backspace(ISelection selection) throws BadLocationException { return replace(selection, ""); //$NON-NLS-1$ }
TextEdit backspace(ISelection selection) throws BadLocationException { return replace(selection, ""); //$NON-NLS-1$ }
TextEdit delete(ISelection selection) throws BadLocationException { return replace(selection, ""); //$NON-NLS-1$ }
/** * Returns a text edit describing the text modification that would be executed if the given * selection was replaced by <code>replacement</code>. * * @param selection the selection to replace * @param replacement the replacement text * @return a text edit describing the operation needed to replace <code>selection</code> * @throws BadLocationException if computing the edit failed */ public TextEdit replace(ISelection selection, String replacement) throws BadLocationException { return getImplementation(selection).replace(selection, replacement); }
TextEdit delete(ISelection selection) throws BadLocationException { return replace(selection, ""); //$NON-NLS-1$ }
/** * Returns a text edit describing the text modification that would be executed if the given * selection was replaced by <code>replacement</code>. * * @param selection the selection to replace * @param replacement the replacement text * @return a text edit describing the operation needed to replace <code>selection</code> * @throws BadLocationException if computing the edit failed */ public TextEdit replace(ISelection selection, String replacement) throws BadLocationException { return getImplementation(selection).replace(selection, replacement); }