Skip to content

Commit

Permalink
Changed version for v0.0.2 release and improved exc. next n dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
MaisiKoleni committed Jan 5, 2019
1 parent b8fde9b commit ac9d97d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.maisikoleni.am2900me</groupId>
<artifactId>Am2900ME</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
<name>Am2900ME</name>
<description>Emulator for Am2900 Family Microprogramming</description>
<url>https://github.com/MaisiKoleni/Am2900ME</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,14 @@ private void configureToolbar() {
.bind(Bindings.when(currentMI.isEqualTo(-1)).then("Startup Machine").otherwise("Execute Next"));
execNext.setOnAction(e -> executeNextN(1));
Button execNextN = new Button();
execNextN.textProperty().bind(Bindings.when(currentMI.isEqualTo(-1)).then("Startup Machine and Execute Next N")
execNextN.textProperty().bind(Bindings.when(currentMI.isEqualTo(-1)).then("Execute Next N (inkl. Startup)")
.otherwise("Execute Next N"));
execNextN.setOnAction(e -> {
TextInputDialog t = new TextInputDialog("20");
t.setTitle("Please enter the number of microinstruction cycles you want to execute");
t.initOwner(this.getScene().getWindow());
t.setTitle("Execute Next N");
t.setHeaderText("Please enter the number of microinstruction cycles you want to execute");
t.setContentText("positive integer (expect 5 mio. to take ~ 1 sec.)");
Optional<String> input = t.showAndWait();
if (!input.isPresent() || input.get().trim().isEmpty())
return;
Expand Down

0 comments on commit ac9d97d

Please sign in to comment.