JavaFileEditorInput and IPathEditorInput [message #464703] |
Tue, 13 March 2007 18:33 |
Eclipse User |
|
|
|
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?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03707 seconds