| [news.eclipse.modeling.gmf] Re: extension point documentProviders |
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.
Reason for this seems to be that URI.isPlatformResource() returns false, since segments[0] is the first directory of my path, and not "resource".
Do you know the reason for this? Any workaround you could think of?
Thanks, Peter