Resolve bindings without any working copies [message #1562167] |
Tue, 13 January 2015 09:36  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04828 seconds