Skip to main content



Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [CommonNavigator][RCP][GMF]: "Text editor does not have a document provider"
[CommonNavigator][RCP][GMF]: "Text editor does not have a document provider" [message #330716] Mon, 11 August 2008 15:53 Go to next message
Eclipse UserFriend
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
Re: [CommonNavigator][RCP][GMF]: "Text editor does not have a document provider" [message #524475 is a reply to message #330716] Thu, 01 April 2010 02:29 Go to previous messageGo to next message
Eclipse UserFriend
I am also facing with the same problem
Could anyone know what should be done for opening the files
Re: [CommonNavigator][RCP][GMF]: "Text editor does not have a document provider" [message #540678 is a reply to message #330716] Wed, 16 June 2010 19:45 Go to previous messageGo to next message
Eclipse UserFriend
I'm getting the same exception while debugging my php project, when I attempt to Step Into a file in a linked resource that's on a network share. I'm using xdebug on Windows XP, in Firefox. I'd be happy to provide details as needed.
Re: [CommonNavigator][RCP][GMF]: "Text editor does not have a document provider" [message #765715 is a reply to message #330716] Wed, 14 December 2011 10:10 Go to previous message
Eclipse UserFriend
Hi,

Did you get the solution ?

Regards,
vinay
Previous Topic:System property https.proxyPort is not set but should be 3128
Next Topic:How should I call fireLabelProviderChanged
Goto Forum:
  


Current Time: Sat Feb 22 10:00:17 EST 2025

Powered by FUDForum. Page generated in 0.03671 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top