Eclipse Community Forums
Forum Search:

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 19:53 Go to next message
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
Re: [CommonNavigator][RCP][GMF]: "Text editor does not have a document provider" [message #524475 is a reply to message #330716] Thu, 01 April 2010 06:29 Go to previous messageGo to next message
Milind is currently offline Milind
Messages: 31
Registered: April 2010
Member
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 23:45 Go to previous messageGo to next message
Ivo Roper is currently offline Ivo Roper
Messages: 3
Registered: March 2010
Junior Member
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 15:10 Go to previous message
vinny503 Missing name is currently offline vinny503 Missing name
Messages: 156
Registered: August 2011
Senior Member
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 Oct 25 16:04:00 GMT 2014

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

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