Skip to content
Advertisement

Eclipse API Read all submodules/child modules

I am trying to read all submodules of project. Below is the code which I wrote it is working as expected but I am not sure if this is an efficient way of reading all submodules of project. Please advice.

JavaScript

Advertisement

Answer

children[i].FOLDER == IResource.FOLDER doesn’t do anything – FOLDER is a constant so it is always true.

You should never have to use toString to work out member types.

If you want a list of folders in a project you would use something like:

JavaScript

or even:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement