Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Resolve bindings without any working copies
Resolve bindings without any working copies [message #1562167] Tue, 13 January 2015 14:36 Go to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hey JDT gurus,

in short: I want to ignore all primary working copies in
ASTParser.createBindings(..) but couldn't figure out how to do that.

What I learned from the code and call graph in
ASTParser.createBindings(IJavaElement[], IProgressMonitor), whenever I
configure a custome WorkingCopyOwner, all primary working copies are
mixed into the name lookup. I need to have a custom working copy owner
since we want to make types available to the ASTParser that are yet to
be generated to source code. Eventually I end up in
SearchableEnvironment(JavaProject, WorkingCopyOwner) which will fetch
all working copies via JavaModelManager.getWorkingCopies(owner,
true/*add primary WCs*/). Is there an official API to implement a
behavior similar to ecj (no editor content is taken into account) while
still being able to have a custom working copy owner?

Best,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: Resolve bindings without any working copies [message #1699883 is a reply to message #1562167] Sun, 28 June 2015 13:15 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
I still had a bookmark on this question (but no ready answer).
Is it still relevant for you?
Previous Topic:Java annotationіs analysis
Next Topic:JDT Weaving/Using call hierarchy in DSL
Goto Forum:
  


Current Time: Fri Apr 26 12:09:38 GMT 2024

Powered by FUDForum. Page generated in 0.02582 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top