[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [stellation-res] Windows problem -- How does Eclipse deal with this?
|
On Tuesday 20 August 2002 11:48 pm, Dave Shields wrote:
> I doubt Stellation is the first program in the Eclipse universe to
> run into the problem of dealing with the case of file names in Windows.
> Philippe and I had to deal it with this in Jikes, the folks from OTI
> who wrote the Java compiler now used in Eclipse must have had to deal with
> it also, and I suspect there are other Eclipse projects that have faced
> the same problem.
>
> Since Eclipse is all in Java, the code we need for Windows is most likely
> to be found in one or more of the Eclipse source trees.
Eclipse has an interface called IResource, which has lots of subtypes. In
particular, there is IFile, which is the Eclipse interface for a file in the
filesystem, and IFolder, which is the interface for a directory. They're both
in the plugin org.eclipse.core.resources.
From a quick look, I think it's possible to use the IResource framework
independent of the Eclipse GUI. There's a bit of weight there, in services
that we don't use. But I'm not sure if that will have any effect: it looks
like we might be able to just use what we want from it, and the major cost
will be increasing the code size. But adopting the IResource stuff will make
it much easier for me and Jim to get the Eclipse interface working more
tightly and smoothly.
-Mark
>
> The key piece of code I'm looking for is some Java code that, given a
> Windows directory, returns a list of the paths of all the files contained
> in the directory and its subdirectores, with the paths showing the precise
> case used when the file was created.
>
> By the way, could someone running Java in Windows see if it's possible to
> create files 'a' and 'A' in the same directory, and, if so, report the
> values of file.getCanonicalPath() that are returned?
>
> If above doesn't work, anyone willing to volunteer to rummage about
> the Eclipse source trees?
>
> dave
--
Mark Craig Chu-Carroll, IBM T.J. Watson Research Center
*** The Stellation project: Advanced SCM for Collaboration
*** http://www.eclipse.org/stellation
*** Work Email: mcc@xxxxxxxxxxxxxx ------- Personal Email: markcc@xxxxxxxxxxx