[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] Java source folder as a subfolder in hierarchy

Hello,

I am developing a Eclipse plugin for the academic component system which uses own nature as well as Java nature. Each folder in project root represents entity. Some entities can contain Java source files which are then placed in entity folder subfolder named 'code'. Then in Project Explorer, it looks like this:

project
+ entity1
- entity2
 + code
+ entity3

Therefore, I would like to add these folders to Java Project classpath to utilize Java environment. Till now it works fine. The problem is, that the 'code' subfolders placed in classpath are then displayed in project root with the full path which is unwanted behavior. Then in Project Explorer, it looks like this:

project
+ entity2/code
+ entity1
+ entity2
+ entity3

The question is, whether this behavior can be changed so that the 'code' folder will be displayed as the entity subfolder and will be in the Java Project classpath at the same time (so it will look like the first example in the Project Explorer)?

I have already gone through documentation and tried several experiments, but I was unsuccessful so far. Therefore I hope that someone here could help me with this problem and point me towards the right direction.

Thank you very much for any advice in advance.

Best Regards,

Petr Hosek