Package org.eclipse.ui.texteditor
Class TextViewerDeleteLineTarget
java.lang.Object
org.eclipse.ui.texteditor.TextViewerDeleteLineTarget
A delete line target.
- Since:
- 3.4
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddeleteLine(IDocument document, int offset, int length, int type, boolean copyToClipboard) voiddeleteLine(IDocument document, ITextSelection selection, int type, boolean copyToClipboard) Deletes the lines that intersect with the givenselection.
- 
Constructor Details- 
TextViewerDeleteLineTargetCreates a new target.- Parameters:
- viewer- the viewer that the new target operates on
 
 
- 
- 
Method Details- 
deleteLinepublic void deleteLine(IDocument document, int offset, int length, int type, boolean copyToClipboard) throws BadLocationException - Throws:
- BadLocationException
 
- 
deleteLinepublic void deleteLine(IDocument document, ITextSelection selection, int type, boolean copyToClipboard) throws BadLocationException Deletes the lines that intersect with the givenselection.- Parameters:
- document- the document
- selection- the selection to use to determine the document range to delete
- type- the line deletion type, must be one of- WHOLE_LINE,- TO_BEGINNINGor- TO_END
- copyToClipboard-- trueif the deleted line should be copied to the clipboard
- Throws:
- BadLocationException- if position is not valid in the given document
- Since:
- 3.5
 
 
-