Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Correct call for ASTParser.setEnvironment(...)
Correct call for ASTParser.setEnvironment(...) [message #1724567] Wed, 24 February 2016 16:54
Sergey Toshin is currently offline Sergey ToshinFriend
Messages: 56
Registered: May 2015
Member
Hi, I'm reading documentation http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fjdt%2Fcore%2Fdom%2FASTParser.html
Let's assume that I have a few jars
lib/Foo.jar
lib/Boo.jar


and some path with sources, for example
src/com/pathkitty/Foo.java
src/com/pathkitty/Boo.java
src/com/pathfoxy/Baz.java
src/com/pathfoxy/Foo.java
src/org/lib/Boo.java
src/org/lib/Bar.java


What should I set to setEnvironment()?
astParser.setEnvironment(new String[] {"C:\\Proj\\lib\\Foo.jar", "C:\\Proj\\lib\\Boo.jar"}, new String[] { "C:\\Proj\\src" }, null, true);

Is that corrent? Thanks!
Previous Topic:ITypeBinding.getQualifiedName() ignores imports in case of implemented interface
Next Topic:Obtaining method bindings for types not explicitly declaring them
Goto Forum:
  


Current Time: Fri Apr 19 06:08:24 GMT 2024

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

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

Back to the top