Parse Xtext Editor Contents inside CustomEditor [message #1386101] |
Fri, 13 June 2014 12:31 |
|
Hi,
I have created a CustomEditor which xtends XtextEditor and wants to parse the contents of Editor inside the doSave method.Below is my code snippet:
public class CustomEditor extends XtextEditor {
public void init(IEditorSite site, IEditorInput editorInput) {
super.init(site, editorInput);
}
@Override
public void doSave(IProgressMonitor progressMonitor) {
super.doSave(progressMonitor);
}
I don't have Resource class Object to get all the contents,similarly how it does in doGenerate Method of Generator Class.
Any thoughts how to do this
Cheers
Kunal
|
|
|
|
|
Re: Parse Xtext Editor Contents inside CustomEditor [message #1386171 is a reply to message #1386109] |
Sat, 14 June 2014 04:08 |
|
I want to perform business logic whenever the content in Editor is changed and save is performed.The Generator runs each time and would impact the performance of the business logic , so I don't want to parse the contents inside IGenerator, instead I want to do inside doSave() method of my Custom Editor
|
|
|
Powered by
FUDForum. Page generated in 0.02068 seconds