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

Fix Synthesis Hook Priority Handling #105

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ import de.cau.cs.kieler.sccharts.ui.synthesis.srtg.SRTGSynthesis

/**
* Returns the priority of this hook. The priority defines the order of invocation between
* hooks. A higher value results in a earlier invocation. The recommended priority interval is
* [0, 100].
* hooks. A higher value results in a earlier invocation of the start and process[State|Transition|Region]
* methods and a later invocation of the finish method. The recommended priority interval is [0, 100].
* @return the priority value
*/
def int getPriority() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class SynthesisHooks implements ISynthesisHooks {
* @param node the diagram root node
*/
override void invokeFinish(Scope scope, KNode node) {
for (SynthesisHook hook : hooks) {
for (SynthesisHook hook : hooks.reverseView) {
hook.finish(scope, node)
}
}
Expand Down
Loading