|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.texteditor.TextViewerDeleteLineTarget
public class TextViewerDeleteLineTarget
A delete line target.
| Constructor Summary | |
|---|---|
TextViewerDeleteLineTarget(ITextViewer viewer)
Creates a new target. |
|
| Method Summary | |
|---|---|
void |
deleteLine(IDocument document,
int offset,
int length,
int type,
boolean copyToClipboard)
Deletes the specified fraction of the line of the given offset. |
void |
deleteLine(IDocument document,
ITextSelection selection,
int type,
boolean copyToClipboard)
Deletes the lines that intersect with the given selection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextViewerDeleteLineTarget(ITextViewer viewer)
viewer - the viewer that the new target operates on| Method Detail |
|---|
public void deleteLine(IDocument document,
int offset,
int length,
int type,
boolean copyToClipboard)
throws BadLocationException
document - the documentoffset - the offsetlength - the lengthtype - the line deletion type, must be one of
WHOLE_LINE, TO_BEGINNING or TO_ENDcopyToClipboard - true if the deleted line should be copied to the clipboard
BadLocationException - if position is not valid in the given document
public void deleteLine(IDocument document,
ITextSelection selection,
int type,
boolean copyToClipboard)
throws BadLocationException
selection.
document - the documentselection - the selection to use to determine the document range to deletetype - the line deletion type, must be one of
WHOLE_LINE, TO_BEGINNING or TO_ENDcopyToClipboard - true if the deleted line should be copied to the clipboard
BadLocationException - if position is not valid in the given document
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.