Skip to content

Commit

Permalink
Merge pull request #105 from kieler/nre/synthesisHookPriority
Browse files Browse the repository at this point in the history
Fix Synthesis Hook Priority Handling
  • Loading branch information
a-sr authored Feb 27, 2024
2 parents eb09200 + 259bb09 commit afecd2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit afecd2c

Please sign in to comment.