[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: FileEditorInput works only on IFile?
|
- From: Daniel Megert <daniel.megert@xxxxxxx>
- Date: Mon, 28 Apr 2003 12:01:50 +0200
- Newsgroups: eclipse.tools
- Organization: IBM OTI Labs
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210
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.