| [news.eclipse.modeling.gmf] Re: extension point documentProviders |
Peter Lang wrote:
Hello Alex,
You can comment out generated ???DiagramEditor.getDocumentProvider() method so super implementation will be used (calling document provider registry).I tried it, but getDocumentProvider does not get called.
getDocumentProvider is not used, setDocumentProvider is called by DiagramDocumentEditor.updateDocumentProvider.
So I changed setDocumentProvider to call setDocumentProvider(super.getDocumentProvider(input)); in my XxxDiagramEditor.
In DocumentProviderRegistry.getDocumentProvider editorInput.getAdapter(IFile.class) returns null, so file-extensions are not used to find documentProvider.
Any idea what I could do?
Thanks, Peter