Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
YoshikoWrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philipp Spohr
YoshikoWrapper
Commits
6c0793c9
Commit
6c0793c9
authored
7 years ago
by
Philipp Spohr
Browse files
Options
Downloads
Patches
Plain Diff
small crashfixes
parent
49dbfa2c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/hhu/ba/yoshikoWrapper/core/Core.java
+1
-0
1 addition, 0 deletions
src/main/java/de/hhu/ba/yoshikoWrapper/core/Core.java
src/main/java/de/hhu/ba/yoshikoWrapper/gui/TimeLimitSetter.java
+3
-3
3 additions, 3 deletions
...in/java/de/hhu/ba/yoshikoWrapper/gui/TimeLimitSetter.java
with
4 additions
and
3 deletions
src/main/java/de/hhu/ba/yoshikoWrapper/core/Core.java
+
1
−
0
View file @
6c0793c9
...
@@ -22,6 +22,7 @@ public class Core {
...
@@ -22,6 +22,7 @@ public class Core {
CyNetwork
currentNetwork
=
cy
.
getCurrentNetwork
();
CyNetwork
currentNetwork
=
cy
.
getCurrentNetwork
();
if
(
currentNetwork
==
null
)
{
if
(
currentNetwork
==
null
)
{
//TODO
//TODO
return
;
}
}
LibraryInterface
.
setTimeLimit
(
timeLimit
);
LibraryInterface
.
setTimeLimit
(
timeLimit
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/hhu/ba/yoshikoWrapper/gui/TimeLimitSetter.java
+
3
−
3
View file @
6c0793c9
package
de.hhu.ba.yoshikoWrapper.gui
;
package
de.hhu.ba.yoshikoWrapper.gui
;
import
java.awt.Dimension
;
import
java.awt.event.ActionEvent
;
import
java.awt.event.ActionEvent
;
import
java.awt.event.ActionListener
;
import
java.awt.event.ActionListener
;
...
@@ -17,10 +18,9 @@ public class TimeLimitSetter extends JPanel{
...
@@ -17,10 +18,9 @@ public class TimeLimitSetter extends JPanel{
private
NumberInputField
numberField
;
private
NumberInputField
numberField
;
public
TimeLimitSetter
()
{
public
TimeLimitSetter
()
{
checkBox
=
new
JCheckBox
();
checkBox
=
new
JCheckBox
(
"Use time limit (s):"
);
numberField
=
new
NumberInputField
();
numberField
=
new
NumberInputField
();
numberField
.
setEnabled
(
false
);
//By default time limit is turned off
numberField
.
setEnabled
(
false
);
//By default time limit is turned off
numberField
.
setSize
(
40
,
10
);
checkBox
.
addActionListener
(
checkBox
.
addActionListener
(
new
ActionListener
()
{
new
ActionListener
()
{
...
@@ -37,7 +37,7 @@ public class TimeLimitSetter extends JPanel{
...
@@ -37,7 +37,7 @@ public class TimeLimitSetter extends JPanel{
}
}
public
int
getTimeLimit
()
{
public
int
getTimeLimit
()
{
if
(
checkBox
.
isSelected
())
{
if
(
!
checkBox
.
isSelected
())
{
return
-
1
;
return
-
1
;
}
}
return
numberField
.
getTimeLimit
();
return
numberField
.
getTimeLimit
();
...
...
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