Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
sarah.grebing
ProofScriptParser
Commits
4d8c19c8
Commit
4d8c19c8
authored
Sep 13, 2017
by
Sarah Grebing
Browse files
Button for laoding a java file with an exmpty script
parent
126a35d7
Pipeline
#13604
failed with stage
in 2 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controls/WelcomePane.java
View file @
4d8c19c8
...
...
@@ -17,6 +17,11 @@ public class WelcomePane extends AnchorPane {
Utils
.
createWithFXML
(
this
);
}
/**
* Load the contraposition example
*
* @param event
*/
public
void
loadContraPosition
(
ActionEvent
event
)
{
proofScriptDebugger
.
getWelcomePaneDock
().
close
();
proofScriptDebugger
.
showActiveInspector
(
null
);
...
...
@@ -35,6 +40,10 @@ public class WelcomePane extends AnchorPane {
*/
}
/**
* Load a test example
* @param event
*/
public
void
loadJavaTest
(
ActionEvent
event
)
{
proofScriptDebugger
.
getWelcomePaneDock
().
close
();
proofScriptDebugger
.
showActiveInspector
(
null
);
...
...
@@ -50,6 +59,10 @@ public class WelcomePane extends AnchorPane {
new File("src/test/resources/edu/kit/formal/psdb/interpreter/javaExample/Test.java"));*/
}
/**
* Load teh help page documentation
* @param event
*/
public
void
loadHelpPage
(
ActionEvent
event
)
{
proofScriptDebugger
.
getWelcomePaneDock
().
close
();
proofScriptDebugger
.
showCommandHelp
(
event
);
...
...
@@ -58,6 +71,10 @@ public class WelcomePane extends AnchorPane {
}
/**
* Load a Java problem with an existing script
* @param event
*/
public
void
loadJavaProblem
(
ActionEvent
event
)
{
proofScriptDebugger
.
getWelcomePaneDock
().
close
();
proofScriptDebugger
.
showActiveInspector
(
null
);
...
...
@@ -81,5 +98,21 @@ public class WelcomePane extends AnchorPane {
proofScriptDebugger
.
openScript
();
}
/**
* Load a Java File and an Empty Script
*
* @param event
*/
public
void
loadJavaProblemWithNewScript
(
ActionEvent
event
)
{
proofScriptDebugger
.
getWelcomePaneDock
().
close
();
proofScriptDebugger
.
showActiveInspector
(
null
);
proofScriptDebugger
.
openJavaFile
();
proofScriptDebugger
.
getScriptController
().
newScript
();
}
}
ui/src/main/resources/edu/kit/iti/formal/psdbg/gui/controls/WelcomePane.fxml
View file @
4d8c19c8
...
...
@@ -14,7 +14,8 @@
</font>
</Label>
<Label
alignment=
"TOP_LEFT"
layoutX=
"14.0"
layoutY=
"71.0"
prefHeight=
"129.0"
prefWidth=
"573.0"
text=
"This application is the Proof Script debugger for the KeY system."
wrapText=
"true"
/>
text=
"This application is the Proof Script debugger for the KeY system. It allows to perform proofs using a proof scripting language on top of the KeY system."
wrapText=
"true"
/>
<HBox
fillHeight=
"true"
layoutX=
"117.0"
layoutY=
"200.0"
maxHeight=
"1.7976931348623157E308"
maxWidth=
"1.7976931348623157E308"
spacing=
"25.0"
>
<padding>
...
...
@@ -74,6 +75,14 @@
<MaterialDesignIconView
glyphName=
"HELP_CIRCLE"
size=
"24"
/>
</graphic>
</Button>
<Button
contentDisplay=
"TOP"
maxWidth=
"1.7976931348623157E308"
text=
"Java File with Empty Script"
onAction=
"#loadJavaProblemWithNewScript"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"2"
>
<graphic>
<MaterialDesignIconView
glyphName=
"BOOK_OPEN_VARIANT"
size=
"24"
/>
</graphic>
</Button>
</children>
<StackPane.margin>
<Insets
bottom=
"10.0"
left=
"10.0"
right=
"10.0"
top=
"10.0"
/>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment