Search code examples
editoreclipse-rcpeclipse-emfemfeclipse-emf-ecore

Reload an EMF model resource when the XML file is changed manually


I have an EMF editor linked with a file spring.xml.

When the editor is opened the Spring model is created and stores in the editing domain.

How can I load the updated Spring model into the editing domain resource every time a user manually edits and adds content into spring.xml?


Solution

  • Have a look at resourcechangedlistener. You will get control automatically when some one changes the file in editing domain.