[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: FileEditorInput works only on IFile?

Keerthi Arutla wrote:

Hello All,

I am working on writing a plugin that requires me to edit a file that is
outside the workspace directory. I see that the editor extensions only work
with IFile interface,

Eclipse APIs are targeted for resources that are inside the workspace.

which I think represents a resource inside workspace
directory.


correct

So here are my questions.

Is there a way to create eclipse File Object
(org.eclipse.core.internal.resources.File) for a file that is outside the
workspace directory?

no

Is there a way to create a FileEditorInput
(org.eclipse.ui.part.FileEditorInput) which takes java.io.File Object?

no


I suggestions/directions would be greatly appreciated.

write your own IStorageEditorInput implementation

HTH
Dani

Note: This group is deprecated.