Reputation: 27
i`m actually working for a tool, which counts the methods in a class and the number of the if statements. the purpose is to estimate the quantity of test cases to write.
I've noticed that the Eclipse outline box has some interesting information and it would be really nice to get the code which produces the outline information.
I`ve already browsed through the Eclipse Git site, but I am a beginner and there are so many packages, can anybody tell me where I can find the source code for the Outline view, or point me in a good direction?
Best regards.
Upvotes: 1
Views: 1372
Reputation: 22650
See this article about how to access the Java model from your plugin. IJavaProject is the relevant API.
Upvotes: 0
Reputation: 94429
Download Eclipse Classic which contains the source code for Eclipse. It also allows you to sniff which packages are being used by Eclipse using the plugin-spy. You can then import the specific package and set debug points within it to view the source being executed when a specific event occurs.
The following article provides a good tutorial on the steps mentioned above: Eclipse Source Code Tutorial
Upvotes: 2