| java.lang.Object org.eclipse.ui.texteditor.DeleteLineTarget
DeleteLineTarget | class DeleteLineTarget (Code) | | A delete line target.
since: 2.1 |
Constructor Summary | |
public | DeleteLineTarget(ITextViewer viewer) Creates a new target. |
Method Summary | |
public void | deleteLine(IDocument document, int offset, int length, int type, boolean copyToClipboard) Deletes the specified fraction of the line of the given offset. |
DeleteLineTarget | public DeleteLineTarget(ITextViewer viewer)(Code) | | Creates a new target.
Parameters: viewer - the viewer that the new target operates on |
deleteLine | public void deleteLine(IDocument document, int offset, int length, int type, boolean copyToClipboard) throws BadLocationException(Code) | | Deletes the specified fraction of the line of the given offset.
Parameters: document - the document Parameters: offset - the offset Parameters: length - the length Parameters: type - the line deletion type, must be one ofWHOLE_LINE , TO_BEGINNING or TO_END Parameters: copyToClipboard - true if the deleted line should be copied to the clipboard throws: BadLocationException - if position is not valid in the given document |
|
|