Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProB 2 Jupyter Kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB 2 Jupyter Kernel
Commits
1896b092
Commit
1896b092
authored
6 years ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Provide source code to error highlighter in :find
parent
695497e1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/prob2/jupyter/commands/FindCommand.java
+4
-2
4 additions, 2 deletions
src/main/java/de/prob2/jupyter/commands/FindCommand.java
with
4 additions
and
2 deletions
src/main/java/de/prob2/jupyter/commands/FindCommand.java
+
4
−
2
View file @
1896b092
...
...
@@ -40,8 +40,10 @@ public final class FindCommand implements Command {
@Override
public
@NotNull
DisplayData
run
(
final
@NotNull
String
argString
)
{
final
Trace
trace
=
this
.
animationSelector
.
getCurrentTrace
();
final
Trace
newTrace
=
CommandUtils
.
withSourceCode
(
argString
,
()
->
{
final
IEvalElement
pred
=
trace
.
getModel
().
parseFormula
(
argString
,
FormulaExpand
.
EXPAND
);
final
Trace
newTrace
=
trace
.
getStateSpace
().
getTraceToState
(
pred
);
return
trace
.
getStateSpace
().
getTraceToState
(
pred
);
});
this
.
animationSelector
.
changeCurrentAnimation
(
newTrace
);
return
new
DisplayData
(
"Found state: "
+
newTrace
.
getCurrentState
().
getId
());
}
...
...
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