|
Eclipse Platform Release 3.4 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.ui.texteditor.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. |
| 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
org.eclipse.ui.texteditor.IDeleteLineTarget
deleteLine in interface org.eclipse.ui.texteditor.IDeleteLineTargetdocument - 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
|
Eclipse Platform Release 3.4 |
||||||||||
| 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, 2008. All rights reserved.