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
5d6cfbda
Commit
5d6cfbda
authored
13 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
LMS-2414 Fix messages in the data set picker.
SVN: 22318
parent
49015b04
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
datastore_server/source/java/ch/systemsx/cisd/openbis/dss/client/api/gui/DataSetPickerDialog.java
+3
-3
3 additions, 3 deletions
.../cisd/openbis/dss/client/api/gui/DataSetPickerDialog.java
with
3 additions
and
3 deletions
datastore_server/source/java/ch/systemsx/cisd/openbis/dss/client/api/gui/DataSetPickerDialog.java
+
3
−
3
View file @
5d6cfbda
...
@@ -97,7 +97,7 @@ public class DataSetPickerDialog extends JDialog implements TreeWillExpandListen
...
@@ -97,7 +97,7 @@ public class DataSetPickerDialog extends JDialog implements TreeWillExpandListen
final
JScrollPane
scrollPane
=
new
JScrollPane
(
tree
);
final
JScrollPane
scrollPane
=
new
JScrollPane
(
tree
);
Object
[]
objects
=
new
Object
[]
Object
[]
objects
=
new
Object
[]
{
"Filter experiments: "
,
filterField
,
"Select
Sample
:"
,
scrollPane
};
{
"Filter experiments: "
,
filterField
,
"Select
data set
:"
,
scrollPane
};
final
JOptionPane
optionPane
=
final
JOptionPane
optionPane
=
new
JOptionPane
(
objects
,
JOptionPane
.
PLAIN_MESSAGE
,
JOptionPane
.
OK_CANCEL_OPTION
);
new
JOptionPane
(
objects
,
JOptionPane
.
PLAIN_MESSAGE
,
JOptionPane
.
OK_CANCEL_OPTION
);
optionPane
.
addPropertyChangeListener
(
new
PropertyChangeListener
()
optionPane
.
addPropertyChangeListener
(
new
PropertyChangeListener
()
...
@@ -110,8 +110,8 @@ public class DataSetPickerDialog extends JDialog implements TreeWillExpandListen
...
@@ -110,8 +110,8 @@ public class DataSetPickerDialog extends JDialog implements TreeWillExpandListen
if
(((
Integer
)
evt
.
getNewValue
()).
intValue
()
==
JOptionPane
.
OK_OPTION
if
(((
Integer
)
evt
.
getNewValue
()).
intValue
()
==
JOptionPane
.
OK_OPTION
&&
tree
.
getSelectionPath
()
==
null
)
&&
tree
.
getSelectionPath
()
==
null
)
{
{
JOptionPane
.
showMessageDialog
(
parent
,
"
Sample
needs to be selected!"
,
JOptionPane
.
showMessageDialog
(
parent
,
"
Data set
needs to be selected!"
,
"No
sample
selected!"
,
JOptionPane
.
WARNING_MESSAGE
);
"No
data set
selected!"
,
JOptionPane
.
WARNING_MESSAGE
);
optionPane
.
setValue
(
optionPane
.
getInitialValue
());
optionPane
.
setValue
(
optionPane
.
getInitialValue
());
}
else
if
(((
Integer
)
evt
.
getNewValue
()).
intValue
()
==
JOptionPane
.
OK_OPTION
}
else
if
(((
Integer
)
evt
.
getNewValue
()).
intValue
()
==
JOptionPane
.
OK_OPTION
&&
tree
.
getSelectionPath
().
getPath
().
length
<
3
)
&&
tree
.
getSelectionPath
().
getPath
().
length
<
3
)
...
...
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