[CommonNavigator][RCP][GMF]: "Text editor does not have a document provider" [message #330716] |
Mon, 11 August 2008 19:53 |
Eclipse User |
|
|
|
Originally posted by: rolfes.daniel.web.de
Hi,
i am trying to get the CommonNavigator working in my
GMF-RCP-Application. I want to use Ressources so i followed this tutorial:
http://wiki.eclipse.org/index.php/Common_Navigator_Framework
I can create a new diagram-file and it is shown in the Tree of my
navigator. This works fine.
But when i try to open a created element with a double-click, i get the
following exception:
"Text editor does not have a document provider"
So i debugged and found the following:
In class XXXDiagramEditor (extends DiagramDocumentEditor):
protected void setDocumentProvider(IEditorInput input) {
if (input instanceof URIEditorInput) {
setDocumentProvider(EpcDiagramEditorPlugin.getInstance()
.getDocumentProvider());
} else {
super.setDocumentProvider(input);
}
}
input is instanceof FileEditorInput but it has to be a URIEditorInput,
afaiu.
What did i miss? How can the files be openend with my specific editor?
I probably have to define something in my plugin.xml?
Thanks,
Daniel
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.05522 seconds