On 12/11/06, Mark Phippard <markphip@gmail.com> wrote:
>
> On 12/11/06, Thomas M. Hofmann <email@thomashofmann.com> wrote:
> >
> > Hi again,
> >
> > I just updated and debugged the code.
> >
> > The isReadOnly method does not what it should. file.getFullPath().toFile();
> > evalutes to a path that is missing the workspace root an thus is always
> > treated as read only.
>
>
> Do you know of any other way to get a File from an IFile? I can do it
> using classes we have in Subclipse, but it would only work for managed
> files, and this needs to work for unmanaged files too,
>
I got the isReadOnly() method working correctly now. I suspect that this
part was a waste of time and that the method from IFile is probably correct
too, but now it is using java.io.File correctly.
Please test the latest
Mark
Received on Mon Dec 11 22:31:24 2006