Code example for Console

Methods: readPassword

0
 
    @Override 
    public void setValue 
        (Console console)
    { 
        char[] value=console.readPassword
            ("%s",getPrompt().getText()); //$NON-NLS-1$ 
        if ((value!=null) && (value.length!=0)) {
            getHolder().setValue(value);
        } 
    } 
}