Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to do a similar function like OpenDeclaration with JDT?
https://www.eclipse.org/forums/index.php/mv/msg/1090493/1778039/#msg_1778039
Federer Roger 2017-12-08T13:10:44-00:00Re: How to do a similar function like OpenDeclaration with JDT?
https://www.eclipse.org/forums/index.php/mv/msg/1090493/1778207/#msg_1778207
If you need search functionality, you first need to define a search scope. In JDT this is defined via IJavaProject and similar.
So if you want to reuse code, try to reuse it all. Present your source code as IJavaProjects and then feel free to use any of JDT's API that suits your needs.
In particular, when implementing IDE-like functions as "OpenDeclaration" doing so in an IDE environment is the way to go :)
Finally note that JavaModel is not just about a specific representation, it is also about being light-weight, about well-balanced caching, change propagation and more.]]>Stephan Herrmann2017-12-12T00:49:26-00:00Re: How to do a similar function like OpenDeclaration with JDT?
https://www.eclipse.org/forums/index.php/mv/msg/1090493/1778213/#msg_1778213
Federer Roger 2017-12-12T02:26:39-00:00Re: How to do a similar function like OpenDeclaration with JDT?
https://www.eclipse.org/forums/index.php/mv/msg/1090493/1778250/#msg_1778250
Federer Roger 2017-12-12T10:21:56-00:00