Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
869b97bb
Commit
869b97bb
authored
Nov 22, 2017
by
Tobias Meuser
Browse files
Minor change in persistent layers
parent
fb41a529
Changes
1
Show whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/views/visualization/ui/SimControlPanel.java
View file @
869b97bb
...
...
@@ -234,18 +234,18 @@ public class SimControlPanel extends JMenuBar implements ActionListener, ChangeL
* @return the confPath
*/
public
static
String
getConfPath
(
String
pName
)
{
return
CONF_PATH
+
pName
.
replace
(
":"
,
""
).
replaceAll
(
" "
,
""
);
String
newName
=
"Layer_"
+
pName
.
replace
(
":"
,
""
).
replaceAll
(
" "
,
""
).
replace
(
"/"
,
"_"
);
if
(
newName
.
length
()
>
1
)
{
return
CONF_PATH
+
newName
+
"/Main"
;
}
return
CONF_PATH
+
newName
;
}
/**
* @return the confPath
*/
public
static
String
getConfMainPath
(
String
pName
)
{
String
newName
=
"Layer_"
+
pName
.
replace
(
":"
,
""
).
replaceAll
(
" "
,
""
).
replace
(
"/"
,
"_"
);
if
(
newName
.
length
()
>
1
)
{
return
CONF_PATH
+
newName
+
"/Main"
;
}
return
null
;
return
getConfPath
(
pName
)
+
"/Main"
;
}
}
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