use of org.pentaho.googledrive.vfs.ui.GoogleAuthorizationDialog in project pentaho-kettle by pentaho.
the class CustomAuthorizationCodeInstalledApp method onAuthorization.
protected void onAuthorization(AuthorizationCodeRequestUrl authorizationUrl) throws IOException {
String url = authorizationUrl.build();
Spoon spoon = Spoon.getInstance();
if (spoon != null) {
Display.getDefault().syncExec(new Runnable() {
public void run() {
Shell shell = spoon.getShell();
GoogleAuthorizationDialog authorizationDialog = new GoogleAuthorizationDialog(shell, getReceiver());
authorizationDialog.open(url);
}
});
} else {
browse(url);
}
}
Aggregations