Commit 9435063d authored by Matija Obreza's avatar Matija Obreza
Browse files

genesys-client-api-0.0.2-SNAPSHOT

parent a14b41d3
......@@ -151,8 +151,8 @@
</dependency>
<dependency>
<groupId>org.genesys2</groupId>
<artifactId>client-api</artifactId>
<version>0.0.1</version>
<artifactId>genesys-client-api</artifactId>
<version>0.0.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
......
......@@ -29,6 +29,7 @@ import org.genesys2.client.oauth.GenesysApiException;
import org.genesys2.client.oauth.GenesysClient;
import org.genesys2.client.oauth.OAuthAuthenticationException;
import org.genesys2.client.oauth.PleaseRetryException;
import org.scribe.exceptions.OAuthConnectionException;
import org.springframework.beans.factory.annotation.Autowired;
import swing2swt.layout.BorderLayout;
......@@ -39,7 +40,7 @@ public class SettingsDialog extends Dialog {
@Autowired
private Settings settings;
protected Object result;
protected Shell shell;
private Text txtGenesysURL;
......@@ -228,6 +229,8 @@ public class SettingsDialog extends Dialog {
try {
genesysClient.me();
} catch (OAuthConnectionException e) {
_log.error(e.getMessage(), e);
} catch (OAuthAuthenticationException e) {
_log.warn(e.getMessage());
String authorizationUrl = genesysClient.getAuthorizationUrl(null);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment