Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Restricting Classpath Entries to a Subset of Source Folders
Restricting Classpath Entries to a Subset of Source Folders [message #505743] Mon, 04 January 2010 08:19
Eclipse UserFriend
Is it possible to configure a classpath entry on a project so that only code in some of the source folders of that project can access classes from that entry?

If not, could anyone give me any suggestions on how this might be implemented via a plugin?

One thing I was thinking is that it might be possible to write a builder that scans the AST's of Java files in the project and creates error markers for any references to classes accessed via the relevant classpath entries, when those references occur outside the allowed source folders. (I realize this is not a complete solution. E.g., it does not filter the list of types displayed by content assist. But it would be good enough for my purposes.) Is it possible to determine which classpath entry provides a particular type that appears in the AST? (I have a general understanding of what the AST is, although I have never actually used it.)

Thanks for any suggestions you might have.
Previous Topic:Remove All But Selected Breakpoints option
Next Topic:Event handling + annotation
Goto Forum:
  


Current Time: Sat Mar 15 23:08:57 EDT 2025

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

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

Back to the top