Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
4b14486d
Commit
4b14486d
authored
14 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
minor: remove warning
SVN: 15853
parent
4f6583f0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis_knime/source/java/ch/systemsx/cisd/openbis/knime/query/QueryNodeDialog.java
+21
-12
21 additions, 12 deletions
...ch/systemsx/cisd/openbis/knime/query/QueryNodeDialog.java
with
21 additions
and
12 deletions
openbis_knime/source/java/ch/systemsx/cisd/openbis/knime/query/QueryNodeDialog.java
+
21
−
12
View file @
4b14486d
...
@@ -63,20 +63,24 @@ import ch.systemsx.cisd.openbis.plugin.query.client.api.v1.IQueryApiFacade;
...
@@ -63,20 +63,24 @@ import ch.systemsx.cisd.openbis.plugin.query.client.api.v1.IQueryApiFacade;
import
ch.systemsx.cisd.openbis.plugin.query.shared.api.v1.dto.QueryDescription
;
import
ch.systemsx.cisd.openbis.plugin.query.shared.api.v1.dto.QueryDescription
;
/**
/**
*
*
* @author Franz-Josef Elmer
* @author Franz-Josef Elmer
*/
*/
public
class
QueryNodeDialog
extends
NodeDialogPane
public
class
QueryNodeDialog
extends
NodeDialogPane
{
{
private
static
final
NodeLogger
log
=
NodeLogger
.
getLogger
(
QueryNodeDialog
.
class
);
private
static
final
NodeLogger
log
=
NodeLogger
.
getLogger
(
QueryNodeDialog
.
class
);
private
JTextField
urlField
;
private
JTextField
urlField
;
private
JTextField
userField
;
private
JTextField
userField
;
private
JPasswordField
passwordField
;
private
JPasswordField
passwordField
;
private
JComboBox
queryComboBox
;
private
JComboBox
queryComboBox
;
private
JPanel
parametersPanel
;
private
JPanel
parametersPanel
;
private
ParameterBindings
parameterBindings
=
new
ParameterBindings
();
private
ParameterBindings
parameterBindings
=
new
ParameterBindings
();
private
Map
<
String
,
JTextField
>
parameterFields
=
new
HashMap
<
String
,
JTextField
>();
private
Map
<
String
,
JTextField
>
parameterFields
=
new
HashMap
<
String
,
JTextField
>();
QueryNodeDialog
()
QueryNodeDialog
()
...
@@ -84,7 +88,7 @@ public class QueryNodeDialog extends NodeDialogPane
...
@@ -84,7 +88,7 @@ public class QueryNodeDialog extends NodeDialogPane
super
();
super
();
addTab
(
"Query Settings"
,
createGUI
());
addTab
(
"Query Settings"
,
createGUI
());
}
}
private
JComponent
createGUI
()
private
JComponent
createGUI
()
{
{
JPanel
panel
=
new
JPanel
(
new
BorderLayout
());
JPanel
panel
=
new
JPanel
(
new
BorderLayout
());
...
@@ -180,25 +184,25 @@ public class QueryNodeDialog extends NodeDialogPane
...
@@ -180,25 +184,25 @@ public class QueryNodeDialog extends NodeDialogPane
private
GridBagConstraints
createLast
()
private
GridBagConstraints
createLast
()
{
{
GridBagConstraints
last
=
createFirst
();
GridBagConstraints
last
=
createFirst
();
last
.
gridwidth
=
GridBagConstraints
.
REMAINDER
;
last
.
gridwidth
=
GridBagConstraints
.
REMAINDER
;
return
last
;
return
last
;
}
}
private
GridBagConstraints
createFirst
()
private
GridBagConstraints
createFirst
()
{
{
GridBagConstraints
constraints
=
new
GridBagConstraints
();
GridBagConstraints
constraints
=
new
GridBagConstraints
();
constraints
.
anchor
=
GridBagConstraints
.
WEST
;
constraints
.
anchor
=
GridBagConstraints
.
WEST
;
constraints
.
fill
=
GridBagConstraints
.
HORIZONTAL
;
constraints
.
fill
=
GridBagConstraints
.
HORIZONTAL
;
constraints
.
insets
=
new
Insets
(
2
,
3
,
2
,
3
);
constraints
.
insets
=
new
Insets
(
2
,
3
,
2
,
3
);
return
constraints
;
return
constraints
;
}
}
private
void
connectToOpenBIS
()
private
void
connectToOpenBIS
()
{
{
String
url
=
urlField
.
getText
();
String
url
=
urlField
.
getText
();
String
userID
=
userField
.
getText
();
String
userID
=
userField
.
getText
();
String
password
=
p
assword
Field
.
get
Text
();
String
password
=
getP
asswordText
();
IQueryApiFacade
facade
=
FacadeFactory
.
create
(
url
,
userID
,
password
);
IQueryApiFacade
facade
=
FacadeFactory
.
create
(
url
,
userID
,
password
);
List
<
QueryDescription
>
queries
=
facade
.
listQueries
();
List
<
QueryDescription
>
queries
=
facade
.
listQueries
();
Collections
.
sort
(
queries
,
new
Comparator
<
QueryDescription
>()
Collections
.
sort
(
queries
,
new
Comparator
<
QueryDescription
>()
...
@@ -220,6 +224,12 @@ public class QueryNodeDialog extends NodeDialogPane
...
@@ -220,6 +224,12 @@ public class QueryNodeDialog extends NodeDialogPane
}
}
}
}
@SuppressWarnings
(
"deprecation"
)
private
String
getPasswordText
()
{
return
passwordField
.
getText
();
}
private
void
updateParametersPanel
(
QueryDescription
queryDescription
)
private
void
updateParametersPanel
(
QueryDescription
queryDescription
)
{
{
log
.
info
(
"update parameters panel for '"
+
queryDescription
+
"' which has "
log
.
info
(
"update parameters panel for '"
+
queryDescription
+
"' which has "
...
@@ -246,6 +256,5 @@ public class QueryNodeDialog extends NodeDialogPane
...
@@ -246,6 +256,5 @@ public class QueryNodeDialog extends NodeDialogPane
parametersPanel
.
invalidate
();
parametersPanel
.
invalidate
();
parametersPanel
.
getParent
().
validate
();
parametersPanel
.
getParent
().
validate
();
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment