Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Uploader
Commits
9435063d
Commit
9435063d
authored
Jul 28, 2014
by
Matija Obreza
Browse files
genesys-client-api-0.0.2-SNAPSHOT
parent
a14b41d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
anno-gui/pom.xml
View file @
9435063d
...
...
@@ -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>
...
...
anno-gui/src/main/java/org/genesys2/anno/gui/SettingsDialog.java
View file @
9435063d
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment