Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
4267d8dd
Commit
4267d8dd
authored
17 years ago
by
Arthur Coolen
Browse files
Options
Downloads
Patches
Plain Diff
BugID:756
changed Split command
parent
b06e1117
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
JAVA/LofarUtils/src/nl/astron/lofar/lofarutils/LofarUtils.java
+6
-6
6 additions, 6 deletions
...LofarUtils/src/nl/astron/lofar/lofarutils/LofarUtils.java
with
6 additions
and
6 deletions
JAVA/LofarUtils/src/nl/astron/lofar/lofarutils/LofarUtils.java
+
6
−
6
View file @
4267d8dd
...
...
@@ -50,7 +50,7 @@ public abstract class LofarUtils {
return
aS
;
}
String
s
[]
=
aName
.
split
(
"
[.]
"
);
String
s
[]
=
aName
.
split
(
"
\\.
"
);
if
(
s
.
length
>
0
)
{
return
s
[
s
.
length
-
1
];
...
...
@@ -65,7 +65,7 @@ public abstract class LofarUtils {
if
(
aName
==
null
||
aName
.
length
()
<
1
)
{
return
aS
;
}
String
s
[]
=
aName
.
split
(
"
[.]
"
);
String
s
[]
=
aName
.
split
(
"
\\.
"
);
if
(
s
.
length
>
0
)
{
aS
=
s
[
0
];
...
...
@@ -176,7 +176,7 @@ public abstract class LofarUtils {
aList
=
aList
.
substring
(
0
,
aList
.
length
()-
1
);
}
if
(!
aList
.
equals
(
""
)){
String
[]
aS
=
aList
.
split
(
","
);
String
[]
aS
=
aList
.
split
(
"
\\
,"
);
for
(
int
i
=
0
;
i
<
aS
.
length
;
i
++)
{
if
(
removeQuotes
){
itsModel
.
addElement
(
aS
[
i
].
substring
(
1
,
aS
[
i
].
length
()-
1
));
...
...
@@ -233,7 +233,7 @@ public abstract class LofarUtils {
aList
=
aList
.
substring
(
0
,
aList
.
length
()-
1
);
}
if
(!
aList
.
equals
(
""
)){
String
[]
aS
=
aList
.
split
(
","
);
String
[]
aS
=
aList
.
split
(
"
\\
,"
);
String
[]
toBeSelectedValues
=
new
String
[
aS
.
length
];
for
(
int
i
=
0
;
i
<
aS
.
length
;
i
++)
{
if
(
removeQuotes
){
...
...
@@ -277,14 +277,14 @@ public abstract class LofarUtils {
return
;
}
// first strip input on ; because after the ; a default choice has been given.
String
[]
stripped
=
aS
.
split
(
"
[;]
"
);
String
[]
stripped
=
aS
.
split
(
"
\\;
"
);
String
defaultChoice
=
""
;
if
(
stripped
.
length
>
1
)
{
defaultChoice
=
stripped
[
1
];
}
// now determine all possible choices and fill the combobox
String
[]
choices
=
stripped
[
0
].
split
(
"
[|]
"
);
String
[]
choices
=
stripped
[
0
].
split
(
"
\\|
"
);
for
(
int
i
=
0
;
i
<
choices
.
length
;
i
++)
{
if
(!
choices
[
i
].
equals
(
""
))
{
aComboBox
.
addItem
(
choices
[
i
]);
...
...
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