[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Re: RE: [Subclipse-dev] Bug introduced with 1.1.9 - LockDialog

From: Mark Phippard <markphip_at_gmail.com>
Date: 2006-12-11 22:31:19 CET

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

This is an archived mail posted to the Subclipse Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.