|
|
|
| Re: Question about access to AST model in JDT [message #903745 is a reply to message #903264] |
Sat, 25 August 2012 07:56  |
Stephan Herrmann Messages: 779 Registered: July 2009 |
Senior Member |
|
|
The Java model is cached, but that happens transparently. Client plug-ins typically request fresh handles from JavaCore ("create" methods). Only when structure from an IJavaElement is requested, the cache is consulted to see if this structure is already known. -> Don't worry about creating lots of handles, the cache will work behind the scenes to minimize re-computing structure. But keep in mind: these handles (IJavaElement) should always be compared using equals() never using ==.
HTH,
Stephan
|
|
|
Powered by
FUDForum. Page generated in 0.02905 seconds