-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a75da0f
commit 97d4058
Showing
2 changed files
with
67 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 19 additions & 5 deletions
24
src/main/java/com/neuronrobotics/bowlerstudio/NewCreatureWizard.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
package com.neuronrobotics.bowlerstudio; | ||
|
||
import com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage; | ||
import com.neuronrobotics.bowlerstudio.scripting.RobotHelper; | ||
|
||
import javafx.stage.Stage; | ||
|
||
public class NewCreatureWizard { | ||
|
||
public static void run() { | ||
new Thread(()->{ | ||
Thread.setDefaultUncaughtExceptionHandler(new IssueReportingExceptionHandler()); | ||
|
||
|
||
}).start(); | ||
BowlerStudio.runLater(()->{ | ||
Stage s = new Stage(); | ||
new Thread(()->{ | ||
Thread.setDefaultUncaughtExceptionHandler(new IssueReportingExceptionHandler()); | ||
AddFileToGistController controller = new AddFileToGistController(null, BowlerStudioMenu.getSelfRef()); | ||
try { | ||
controller.start(s,(IScriptingLanguage)new RobotHelper()); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
|
||
}).start(); | ||
}); | ||
|
||
} | ||
|
||
} |