Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] Get child folders of IScriptFolder

Hi Robert,

That's right. ISourceFolder contains only ISourceModules.
All folder tree is contained in IProjectFragment.

E.g. if you have

a/file1.rb
a/file2.rb
a/b/file3.rb
a/b/file4.rb

then project fragment contains the following folders
- a
- a/b

"a" folder contains
- file1.rb
- file2.rb

"b" folder contains
- file3.rb
- file4.rb

So, to collect subfolders you should filter folders from project fragment with the specified starting path.

You can find this code in
org.eclipse.dltk.internal.ui.navigator.ScriptExplorerContentProvider.getHierarchicalPackageChildren(IProjectFragment, IScriptFolder, Collection) method.

Regards,
Alex

----- Original Message -----
From: "Robert Gruendler" <doobre@xxxxxxxxx>
To: "DLTK Developer Discussions" <dltk-dev@xxxxxxxxxxx>
Sent: Saturday, June 20, 2009 3:15:54 AM GMT +06:00 Almaty, Novosibirsk
Subject: [Dltk-dev] Get child folders of IScriptFolder

Hi all,

sorry if this is a real basic question, but i couldn't find a way to do 
this:

I have an instance of an IScriptFolder, which contains both 
ISourceModules and other IScriptFolders.

The getChildren() method only returns the SourceModules, but i need to 
get further down into the subfolders.

How is this intended to be implemented ?


thanks !

-robert
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev


Back to the top