Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
Uploader
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
Uploader
Commits
46d18193
Commit
46d18193
authored
Jan 15, 2016
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trim() text for client_id, secret in Settings dialog
parent
ed5e7746
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
anno-gui/src/main/java/org/genesys2/anno/gui/SettingsDialog.java
...i/src/main/java/org/genesys2/anno/gui/SettingsDialog.java
+20
-0
No files found.
anno-gui/src/main/java/org/genesys2/anno/gui/SettingsDialog.java
View file @
46d18193
...
...
@@ -34,6 +34,8 @@ import org.scribe.exceptions.OAuthConnectionException;
import
org.springframework.beans.factory.annotation.Autowired
;
import
swing2swt.layout.BorderLayout
;
import
org.eclipse.swt.events.FocusAdapter
;
import
org.eclipse.swt.events.FocusEvent
;
public
class
SettingsDialog
extends
Dialog
{
private
static
final
Logger
_log
=
Logger
.
getLogger
(
SettingsDialog
.
class
);
...
...
@@ -119,6 +121,12 @@ public class SettingsDialog extends Dialog {
lblGenesysServer
.
setText
(
"Genesys Server URL"
);
txtGenesysURL
=
new
Text
(
grpGenesysApiConfiguration
,
SWT
.
BORDER
);
txtGenesysURL
.
addFocusListener
(
new
FocusAdapter
()
{
@Override
public
void
focusLost
(
FocusEvent
arg0
)
{
txtGenesysURL
.
setText
(
txtGenesysURL
.
getText
().
trim
());
}
});
txtGenesysURL
.
setLayoutData
(
new
GridData
(
SWT
.
FILL
,
SWT
.
CENTER
,
true
,
false
,
1
,
1
));
Label
lblAuthorizationEndpoint
=
new
Label
(
grpGenesysApiConfiguration
,
SWT
.
NONE
);
...
...
@@ -151,6 +159,12 @@ public class SettingsDialog extends Dialog {
lblClientApiKey
.
setText
(
"Client API key"
);
txtClientKey
=
new
Text
(
grpGenesysApiConfiguration
,
SWT
.
BORDER
);
txtClientKey
.
addFocusListener
(
new
FocusAdapter
()
{
@Override
public
void
focusLost
(
FocusEvent
arg0
)
{
txtClientKey
.
setText
(
txtClientKey
.
getText
().
trim
());
}
});
txtClientKey
.
setLayoutData
(
new
GridData
(
SWT
.
FILL
,
SWT
.
CENTER
,
true
,
false
,
1
,
1
));
Label
lblClientSecret
=
new
Label
(
grpGenesysApiConfiguration
,
SWT
.
NONE
);
...
...
@@ -159,6 +173,12 @@ public class SettingsDialog extends Dialog {
lblClientSecret
.
setAlignment
(
SWT
.
RIGHT
);
txtClientSecret
=
new
Text
(
grpGenesysApiConfiguration
,
SWT
.
BORDER
);
txtClientSecret
.
addFocusListener
(
new
FocusAdapter
()
{
@Override
public
void
focusLost
(
FocusEvent
arg0
)
{
txtClientSecret
.
setText
(
txtClientSecret
.
getText
().
trim
());
}
});
txtClientSecret
.
setLayoutData
(
new
GridData
(
SWT
.
FILL
,
SWT
.
CENTER
,
true
,
false
,
1
,
1
));
Group
grpOauthTokens
=
new
Group
(
composite
,
SWT
.
NONE
);
...
...
Write
Preview
Markdown
is supported
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