public class CmdLine extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
cmdStart |
protected Console |
console |
protected int |
index |
protected String |
prompt |
protected int |
start |
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 int getIndex()
public int getStart()
public int getCmdStart()
public int getEnd()
public String getLineText()
public int getLocalCaretPosition()
public void setTextFromCaret(String text)
public void sync()
public void rsync()
public boolean canMoveCaret(int where)
public int setCompletionWord(String word)
Copyright © 2016 Nuxeo SA. All rights reserved.