use of org.pentaho.ui.xul.components.XulFileDialog in project pentaho-kettle by pentaho.
the class AuthProviderController method browse.
public void browse() {
try {
XulTextbox filename = (XulTextbox) document.getElementById("keytab");
XulFileDialog dialog = (XulFileDialog) document.createElement("filedialog");
XulFileDialog.RETURN_CODE retval = dialog.showOpenDialog();
if (retval == XulFileDialog.RETURN_CODE.OK) {
File file = (File) dialog.getFile();
filename.setValue(file.getAbsolutePath());
}
} catch (XulException e) {
log.logError(resourceBundle.getString("error.file_browse"), e);
}
}
Aggregations