Restricting Classpath Entries to a Subset of Source Folders [message #505743] |
Mon, 04 January 2010 08:19 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03140 seconds