commit | 04b51f94416084b95e898c35e78a62e66065ea2b | [log] [tgz] |
---|---|---|
author | Tom Schindl <tom.schindl@bestsolution.at> | Thu Jul 23 17:19:57 2015 +0200 |
committer | Tom Schindl <tom.schindl@bestsolution.at> | Thu Jul 23 17:19:57 2015 +0200 |
tree | b32334aabe37e11183df7eb21152db6e18487850 | |
parent | 315ef482fb1aa8de4903e349250146cf26bc8c11 [diff] |
allow subclasses to get informed when the document is saved
diff --git a/bundles/code/org.eclipse.fx.code.editor.fx/src/org/eclipse/fx/code/editor/fx/TextEditor.java b/bundles/code/org.eclipse.fx.code.editor.fx/src/org/eclipse/fx/code/editor/fx/TextEditor.java index 8177887..a2d6bb1 100644 --- a/bundles/code/org.eclipse.fx.code.editor.fx/src/org/eclipse/fx/code/editor/fx/TextEditor.java +++ b/bundles/code/org.eclipse.fx.code.editor.fx/src/org/eclipse/fx/code/editor/fx/TextEditor.java
@@ -141,8 +141,9 @@ } @Persist - void save() { + public void save() { input.persist(); + documentSaved(); if( eventBus != null ) { //TODO Should the outline reload really be sent by the editor? eventBus.publish(Constants.OUTLINE_RELOAD, input, true); @@ -150,6 +151,10 @@ } } + protected void documentSaved() { + + } + @Focus void focused() { if( activeInput != null ) {