public class CmdLine extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
canMoveCaret(int where) |
int |
getCmdStart() |
int |
getEnd() |
int |
getIndex() |
String |
getLineText() |
int |
getLocalCaretPosition()
Get the caret position relative to the beginning of the command text (see getCmdStart())
|
String |
getPrompt() |
int |
getStart() |
String |
getText() |
org.nuxeo.shell.swing.CmdLine.Word |
getWord(String text,
int pos)
Get the word from the command line which is near the given relative caret position.
|
void |
rsync() |
int |
setCompletionWord(String word) |
void |
setText(String text) |
void |
setTextFromCaret(String text) |
void |
sync() |
void |
write(String text) |
public CmdLine(Console console)
public int getIndex()
public int getStart()
public int getCmdStart()
public int getEnd()
public String getLineText()
public String getPrompt()
public int getLocalCaretPosition()
public String getText()
public void setText(String text)
public void setTextFromCaret(String text)
public void write(String text)
public void sync()
public void rsync()
public boolean canMoveCaret(int where)
public int setCompletionWord(String word)
public org.nuxeo.shell.swing.CmdLine.Word getWord(String text, int pos)
pos
- Copyright © 2015 Nuxeo SA. All rights reserved.