Class JFaceUserInput
- java.lang.Object
-
- org.eclipse.epsilon.eol.userinput.AbstractUserInput
-
- org.eclipse.epsilon.eol.dt.userinput.JFaceUserInput
-
- All Implemented Interfaces:
IUserInput
public class JFaceUserInput extends AbstractUserInput
-
-
Field Summary
Fields Modifier and Type Field Description protected PrettyPrinterManager
prettyPrinterManager
-
Constructor Summary
Constructors Constructor Description JFaceUserInput(PrettyPrinterManager prettyPrinterManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
choose(java.lang.String question, java.util.Collection<?> choices, java.lang.Object default_)
java.lang.Object
chooseMany(java.lang.String question, java.util.Collection<?> choices, java.util.Collection<?> default_)
boolean
confirm(java.lang.String question, boolean default_)
protected java.lang.Object
exec(org.eclipse.epsilon.eol.dt.userinput.JFaceUserInput.ReturningRunnable runnable)
protected PrettyPrinterManager
getPrettyPrinterManager()
void
inform(java.lang.String message)
java.lang.String
prompt(java.lang.String question, java.lang.String default_)
int
promptInteger(java.lang.String question, int default_)
double
promptReal(java.lang.String question, double default_)
float
promptReal(java.lang.String question, float default_)
-
Methods inherited from class org.eclipse.epsilon.eol.userinput.AbstractUserInput
choose, chooseMany, confirm, prompt, promptInteger, promptReal
-
-
-
-
Field Detail
-
prettyPrinterManager
protected PrettyPrinterManager prettyPrinterManager
-
-
Constructor Detail
-
JFaceUserInput
public JFaceUserInput(PrettyPrinterManager prettyPrinterManager)
-
-
Method Detail
-
choose
public java.lang.Object choose(java.lang.String question, java.util.Collection<?> choices, java.lang.Object default_)
-
chooseMany
public java.lang.Object chooseMany(java.lang.String question, java.util.Collection<?> choices, java.util.Collection<?> default_)
-
getPrettyPrinterManager
protected PrettyPrinterManager getPrettyPrinterManager()
-
confirm
public boolean confirm(java.lang.String question, boolean default_) throws EolUserException
- Throws:
EolUserException
-
prompt
public java.lang.String prompt(java.lang.String question, java.lang.String default_)
-
promptInteger
public int promptInteger(java.lang.String question, int default_)
-
promptReal
public float promptReal(java.lang.String question, float default_)
-
promptReal
public double promptReal(java.lang.String question, double default_)
-
exec
protected java.lang.Object exec(org.eclipse.epsilon.eol.dt.userinput.JFaceUserInput.ReturningRunnable runnable)
-
inform
public void inform(java.lang.String message)
-
-