Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » JavaFileEditorInput and IPathEditorInput
JavaFileEditorInput and IPathEditorInput [message #464703] Tue, 13 March 2007 18:33 Go to next message
Eclipse UserFriend
Originally posted by: tcmsimoes.criticalsoftware.com

Hi,

I was trying to create a plug-in that was independent of the IDE (no
dependencies to org.eclipse.ui.IDE) but still could provide a file as input
for the TextEditor of the IDE.

Acordingly to the Eclipse API i should use IPathEditorInput in this cases
since the IDE TextEditor seemed to accept this type of editor input
(JavaFileEditorInput implemented this interface and was used to open
non-workspace files).

However i found out that the IDE TextEditor is dependent not on the
IPathEditorInput but on the internal class that implements it. The extension
org.eclipse.ui.editors.text.ExternalFileDocumentProvider defines a document
provider explicitly for JavaFileEditorInput and not for IPathEditorInput
invalidating any chances of providing any other IPathEditorInput
implementation.

How can I workaround this issue?
Re: JavaFileEditorInput and IPathEditorInput [message #464716 is a reply to message #464703] Wed, 14 March 2007 07:36 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Tiago Simões wrote:

>Hi,
>
>I was trying to create a plug-in that was independent of the IDE (no
>dependencies to org.eclipse.ui.IDE) but still could provide a file as input
>for the TextEditor of the IDE.
>
>Acordingly to the Eclipse API i should use IPathEditorInput in this cases
>since the IDE TextEditor seemed to accept this type of editor input
>(JavaFileEditorInput implemented this interface and was used to open
>non-workspace files).
>
>However i found out that the IDE TextEditor is dependent not on the
>IPathEditorInput but on the internal class that implements it. The extension
>org.eclipse.ui.editors.text.ExternalFileDocumentProvider defines a document
>provider explicitly for JavaFileEditorInput and not for IPathEditorInput
>invalidating any chances of providing any other IPathEditorInput
>implementation.
>
>How can I workaround this issue?
>
>
Which Eclipse version are we talking about?

Dani

>
>
>
>
Re: JavaFileEditorInput and IPathEditorInput [message #464797 is a reply to message #464716] Thu, 15 March 2007 13:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tcmsimoes.criticalsoftware.com

Hi Dani,

It's version 3.2.2

Cheers
Tiago

"Daniel Megert" <daniel_megert@ch.ibm.com> wrote in message
news:et88m9$h5f$1@utils.eclipse.org...
> Tiago Sim
Re: JavaFileEditorInput and IPathEditorInput [message #464872 is a reply to message #464797] Fri, 16 March 2007 15:36 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Tiago Simões wrote:

>Hi Dani,
>
>It's version 3.2.2
>
>
OK, assuming you cannot switch to 3.3 you have no other choice than
create your own copy of the JavaFileEditorInput and the
ExternalFileDocumentProvider.

Dani

>Cheers
>Tiago
>
>"Daniel Megert" <daniel_megert@ch.ibm.com> wrote in message
>news:et88m9$h5f$1@utils.eclipse.org...
>
>
>>Tiago Simões wrote:
>>
>>
>>
>>>Hi,
>>>
>>>I was trying to create a plug-in that was independent of the IDE (no
>>>dependencies to org.eclipse.ui.IDE) but still could provide a file as
>>>input
>>>for the TextEditor of the IDE.
>>>
>>>Acordingly to the Eclipse API i should use IPathEditorInput in this cases
>>>since the IDE TextEditor seemed to accept this type of editor input
>>>(JavaFileEditorInput implemented this interface and was used to open
>>>non-workspace files).
>>>
>>>However i found out that the IDE TextEditor is dependent not on the
>>>IPathEditorInput but on the internal class that implements it. The
>>>extension
>>>org.eclipse.ui.editors.text.ExternalFileDocumentProvider defines a
>>>document
>>>provider explicitly for JavaFileEditorInput and not for IPathEditorInput
>>>invalidating any chances of providing any other IPathEditorInput
>>>implementation.
>>>
>>>How can I workaround this issue?
>>>
>>>
>>>
>>Which Eclipse version are we talking about?
>>
>>Dani
>>
>>
>>
>>>
>>>
>>>
>
>
>
>
Previous Topic:Using same class for different actions
Next Topic:Icon for submenu
Goto Forum:
  


Current Time: Thu Sep 12 13:36:31 GMT 2024

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

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

Back to the top