Skip to content
Snippets Groups Projects
Commit 36699953 authored by Sebastian Krings's avatar Sebastian Krings
Browse files

use atomicString instead of toString to remove ticks around the units returned by ProB

parent 49fabba9
No related branches found
No related tags found
No related merge requests found
...@@ -148,7 +148,7 @@ public class StartUnitAnalysisHandler extends AbstractHandler implements ...@@ -148,7 +148,7 @@ public class StartUnitAnalysisHandler extends AbstractHandler implements
animator.execute(pluginResultCommand); animator.execute(pluginResultCommand);
ListPrologTerm output = pluginResultCommand.getResult(); ListPrologTerm output = pluginResultCommand.getResult();
System.out.println("Resulting state: " + output); // System.out.println("Resulting state: " + output);
// preprocess the list into a map // preprocess the list into a map
Map<String, String> variables = new HashMap<String, String>(); Map<String, String> variables = new HashMap<String, String>();
...@@ -163,8 +163,9 @@ public class StartUnitAnalysisHandler extends AbstractHandler implements ...@@ -163,8 +163,9 @@ public class StartUnitAnalysisHandler extends AbstractHandler implements
commandException.notifyUserOnce(); commandException.notifyUserOnce();
throw commandException; throw commandException;
} }
variables.put(compoundTerm.getArgument(1).toString(), variables.put(PrologTerm.atomicString(compoundTerm
compoundTerm.getArgument(2).toString()); .getArgument(1)), PrologTerm
.atomicString(compoundTerm.getArgument(2)));
} }
// look up the variables / constants of the selected machine in // look up the variables / constants of the selected machine in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment