1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/isac-java/src/java/isac/gui/mawen/editor/EditorListenerHandler.scala Thu Jul 06 09:51:52 2017 +0200
1.3 @@ -0,0 +1,28 @@
1.4 +package isac.gui.mawen.editor
1.5 +
1.6 +import isac.interfaces.IEditor
1.7 +
1.8 +object EditorListenerHandler {
1.9 +
1.10 + var editorInstances= Map.empty[AstContainer, IEditor]
1.11 +
1.12 +
1.13 +
1.14 + def fireNotifyLocalCheck(c: AstContainer) {
1.15 + editorInstances.get(c) match {
1.16 + case Some(editor) => editor.fireNotifyLocalCheck()
1.17 + case None => {}
1.18 + }
1.19 + }
1.20 +
1.21 + def fireNotifyIsaCheck(c: AstContainer) {
1.22 + editorInstances.get(c) match {
1.23 + case Some(editor) => editor.fireNotifyIsaCheck()
1.24 + case None => {}
1.25 + }
1.26 + }
1.27 + def addListenerHandler(editor: IEditor, c: AstContainer) {
1.28 + editorInstances = editorInstances + (c -> editor)
1.29 + }
1.30 +
1.31 +}
1.32 \ No newline at end of file