Skip to content

Commit afecd2c

Browse files
authored
Merge pull request #105 from kieler/nre/synthesisHookPriority
Fix Synthesis Hook Priority Handling
2 parents eb09200 + 259bb09 commit afecd2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/de.cau.cs.kieler.sccharts.ui/src/de/cau/cs/kieler/sccharts/ui/synthesis/hooks/SynthesisHook.xtend

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ import de.cau.cs.kieler.sccharts.ui.synthesis.srtg.SRTGSynthesis
6161

6262
/**
6363
* Returns the priority of this hook. The priority defines the order of invocation between
64-
* hooks. A higher value results in a earlier invocation. The recommended priority interval is
65-
* [0, 100].
64+
* hooks. A higher value results in a earlier invocation of the start and process[State|Transition|Region]
65+
* methods and a later invocation of the finish method. The recommended priority interval is [0, 100].
6666
* @return the priority value
6767
*/
6868
def int getPriority() {

plugins/de.cau.cs.kieler.sccharts.ui/src/de/cau/cs/kieler/sccharts/ui/synthesis/hooks/SynthesisHooks.xtend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class SynthesisHooks implements ISynthesisHooks {
128128
* @param node the diagram root node
129129
*/
130130
override void invokeFinish(Scope scope, KNode node) {
131-
for (SynthesisHook hook : hooks) {
131+
for (SynthesisHook hook : hooks.reverseView) {
132132
hook.finish(scope, node)
133133
}
134134
}

0 commit comments

Comments
 (0)