Darie Moldovan Messages: 67 Registered: November 2010 Location: Darmstadt, Germany
I'm wondering where I could find/customize/overwrite the doSave() method of an xtext editor, which was created in the classical way in Eclipse (New->Xtext Project). What I want to do is write some information in a file upon saving the model of the xtext editor. Due to the automatically generated structure of the editor, there is no explicit class, which extends the EditorPart and implements the doSave(), isDirty() etc. methods - the class where I could eventually write some data/preferences to a file.
i am not quite sure what you want to do
never the less:
- call XtextEditor.getResource get an IResource and use std mechanims to calc the emf uri
- use XtextEditor.getDocument.readOnly/XtextEditor.getDocument.readOnly/modify