Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
ProofScriptParser
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
24
Issues
24
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sarah.grebing
ProofScriptParser
Commits
d91bd463
Commit
d91bd463
authored
Sep 24, 2018
by
Lulu Luong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added psdbg sub folder in temp
parent
a552cb5d
Pipeline
#28097
passed with stages
in 114 minutes and 55 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
ui/src/main/java/edu/kit/iti/formal/psdbg/examples/Example.java
.../main/java/edu/kit/iti/formal/psdbg/examples/Example.java
+5
-1
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controller/InteractiveModeController.java
...ormal/psdbg/gui/controller/InteractiveModeController.java
+28
-0
No files found.
ui/src/main/java/edu/kit/iti/formal/psdbg/examples/Example.java
View file @
d91bd463
...
@@ -24,7 +24,11 @@ public abstract class Example {
...
@@ -24,7 +24,11 @@ public abstract class Example {
protected
MainScriptIdentifier
mainScriptIdentifier
;
protected
MainScriptIdentifier
mainScriptIdentifier
;
public
static
File
newTempFile
(
URL
url
,
String
filename
)
throws
IOException
{
public
static
File
newTempFile
(
URL
url
,
String
filename
)
throws
IOException
{
File
f
=
new
File
(
FileUtils
.
getTempDirectoryPath
(),
filename
);
//TODO: add unterordner
File
psdbg
=
new
File
(
FileUtils
.
getTempDirectoryPath
(),
"psdbg"
);
File
f
=
new
File
(
psdbg
,
filename
);
FileUtils
.
copyURLToFile
(
url
,
f
);
FileUtils
.
copyURLToFile
(
url
,
f
);
return
f
;
return
f
;
}
}
...
...
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controller/InteractiveModeController.java
View file @
d91bd463
...
@@ -260,6 +260,34 @@ public class InteractiveModeController {
...
@@ -260,6 +260,34 @@ public class InteractiveModeController {
}
}
}
}
@Subscribe
public
void
handle
(
Events
.
CommandApplicationEvent
map
)
{
LOGGER
.
debug
(
"Handling {}"
,
map
);
Goal
g
=
map
.
getCurrentGoal
();
Parameters
callp
=
new
Parameters
();
CallStatement
call
=
new
CallStatement
(
map
.
getCommandName
().
getName
(),
callp
);
try
{
applyRuleHelper
(
call
,
g
,
Type
.
SCRIPT_COMMAND
);
String
c
=
getCasesAsString
();
scriptArea
.
setText
(
""
+
"//Preview \n"
+
c
);
}
catch
(
ScriptCommandNotApplicableException
e
)
{
StringBuilder
sb
=
new
StringBuilder
(
"The script command "
);
sb
.
append
(
call
.
getCommand
()).
append
(
" was not applicable."
);
System
.
out
.
println
(
"e = "
+
e
);
//sb.append("\nSequent Formula: formula=").append(sfTerm);
//sb.append("\nOn Sub Term: on=").append(onTerm);
Utils
.
showWarningDialog
(
"Proof Command was not applicable"
,
"Proof Command was not applicable."
,
sb
.
toString
(),
e
);
}
}
private
void
applyRuleHelper
(
CallStatement
call
,
Goal
g
,
Type
t
)
throws
ScriptCommandNotApplicableException
{
private
void
applyRuleHelper
(
CallStatement
call
,
Goal
g
,
Type
t
)
throws
ScriptCommandNotApplicableException
{
...
...
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