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
b5e25ce8
Commit
b5e25ce8
authored
Jul 22, 2018
by
Mihai Herda
Browse files
Changed max number of iterations and function calls menu to exponential
values.
parent
64488197
Changes
2
Hide whitespace changes
Inline
Side-by-side
config.cfg
View file @
b5e25ce8
...
...
@@ -4,5 +4,5 @@
<entry
key=
"maxFuncCalls"
>
100
</entry>
<entry
key=
"configFileLoc"
/>
<entry
key=
"maxWhileIterations"
>
100
</entry>
<entry
key=
"language"
>
english
</entry>
<entry
key=
"language"
>
default
</entry>
</properties>
src/dibugger/userinterface/MainInterface.java
View file @
b5e25ce8
...
...
@@ -403,7 +403,7 @@ public class MainInterface extends JFrame {
int
maxFunctionCalls
=
Integer
.
valueOf
(((
JMenuItem
)
e
.
getSource
()).
getText
());
controlFacade
.
setMaximumFunctionCalls
(
maxFunctionCalls
);
};
for
(
int
i
=
0
;
i
<=
2
00
;
i
+
=
10
)
{
for
(
int
i
=
1
0
;
i
<=
100
00
;
i
*
=
10
)
{
JMenuItem
maxFunctionCallsItem
=
new
JMenuItem
(
Integer
.
toString
(
i
));
maxFunctionCallsItem
.
addActionListener
(
maxFunctionCallsListener
);
maxFunctionCalls
.
add
(
maxFunctionCallsItem
);
...
...
@@ -420,7 +420,7 @@ public class MainInterface extends JFrame {
int
maxIterations
=
Integer
.
valueOf
(((
JMenuItem
)
e
.
getSource
()).
getText
());
controlFacade
.
setMaximumIterations
(
maxIterations
);
};
for
(
int
i
=
0
;
i
<=
2
00
;
i
+
=
10
)
{
for
(
int
i
=
1
0
;
i
<=
100
00
;
i
*
=
10
)
{
JMenuItem
maxIterationsItem
=
new
JMenuItem
(
Integer
.
toString
(
i
));
maxIterationsItem
.
addActionListener
(
maxIterationsChangedListener
);
maxIterations
.
add
(
maxIterationsItem
);
...
...
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