Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes file out and show latest #276

Merged
merged 1 commit into from
May 14, 2024

Conversation

pkriens
Copy link
Contributor

@pkriens pkriens commented May 14, 2024

The doVisualize(s) method took a string that had
a type and a parameter, like "XML: /foo/bar..". There was a public method setLatestInstance(s) that sets the parameter part. However, that meant that we could not remember the latest if it wasn't XML. The doVisualize(s) was the central dispatcher for visualization and called from many places.

The doVisualize(s) now takes an optionally typed argument. If it is not typed, we assume XML. So now can we set a typed string via setLatestInstance(s).

When we create an output file as is now supported by the solver architecture, we safe it as "CNF: /...". So when we hit show latest instance, we get the file.

Ugly as hell ...

Fixes #273

The doVisualize(s) method took a string that had
a type and a parameter, like "XML: /foo/bar..". There
was a public method setLatestInstance(s) that sets
the parameter part. However, that meant that we could
not remember the latest if it wasn't XML. The doVisualize(s)
was the central dispatcher for visualization and called
from many places.

The doVisualize(s) now takes an _optionally_ typed
argument. If it is not typed, we assume XML. So now
can we set a typed string via setLatestInstance(s).

When we create an output file as is now supported by
the solver architecture, we safe it as "CNF: /...".
So when we hit show latest instance, we get the file.

Ugly as hell ...

Fixes AlloyTools#273
@pkriens pkriens changed the title Quite horrendous code. Fixes file out and show latest May 14, 2024
@pkriens pkriens merged commit 52a0527 into AlloyTools:master May 14, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show should open the code window in the "output" solvers of the forthcoming release
1 participant