Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
i57
dibugger
Commits
a10bcccb
Commit
a10bcccb
authored
Jul 22, 2018
by
Mihai Herda
Browse files
Return value string now also gets translated when entering debug mode.
parent
9631cfd7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/dibugger/userinterface/ProgramPanel.java
View file @
a10bcccb
...
...
@@ -169,6 +169,8 @@ public class ProgramPanel extends JPanel {
.
addComponent
(
result
)
));
changeLanguage
();
}
private
void
stepSizeInputActionPerformed
()
{
...
...
@@ -475,7 +477,8 @@ public class ProgramPanel extends JPanel {
currentExecutionLine
=
logicFacade
.
getCurrentExecutionLines
().
getOrDefault
(
id
,
0
);
// show result
result
.
setText
(
RETURN
+
": "
+
logicFacade
.
getReturnValue
(
id
));
String
returnString
=
getReturnString
();
result
.
setText
(
returnString
+
": "
+
logicFacade
.
getReturnValue
(
id
));
result
.
updateUI
();
// update stepSize
...
...
@@ -606,6 +609,16 @@ public class ProgramPanel extends JPanel {
}
}
String
getReturnString
()
{
LanguageFile
languageFile
=
controlFacade
.
getLanguageFile
();
if
(
languageFile
==
null
)
{
return
RETURN
;
}
else
{
return
languageFile
.
getTranslation
(
"ui_return"
);
}
}
void
changeLanguage
()
{
LanguageFile
languageFile
=
controlFacade
.
getLanguageFile
();
if
(
languageFile
!=
null
)
{
...
...
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