Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » finding all packages referred to by a compilation unit
finding all packages referred to by a compilation unit [message #258422] Tue, 03 February 2009 03:59
Eclipse UserFriend
Hi,

I need to find all packages that a compilation unit refers to. My first
attempt was to simply analyzing the import statements, and that worked
nicely. This, however, requires users to actually use import statements,
which is no always desired and in case of name clashes not possible.

My next attempt would be to use AST with bindings to scan through
everything that can be qualified.

Or does anybody have another suggestion? Is there some built-in
depdendency analysis in JDT I could use?

Thanks so much in advance!

Fredrik
Previous Topic:inclusion and exclusion pattern resolutions
Next Topic:How to disable wrapping for assignments?
Goto Forum:
  


Current Time: Sat Apr 26 21:20:22 EDT 2025

Powered by FUDForum. Page generated in 0.02895 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top