| Summary: | Enhancement request for the Java AST/DOM package. A helper method to get a new Type ast node that corresponds to a given ITypeBinding. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Jochen Huck <jochen.huck> | ||||
| Component: | Core | Assignee: | Markus Keller <markus.kell.r> | ||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | amj87.iitr, deepakazad, markus.kell.r, Olivier_Thomann | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Jochen Huck
Created attachment 183304 [details]
This is the code I currently use to deal with the mentioned problem
Satyam, please follow up. Thanks! I think we should think of what helper methods we could provide as API. For DOM/AST usage, users need to do the same thing over and over again. It would be good if we could come up with a list of utility methods that could be reused by all users of DOM API. Markus, would you have any suggestions ? In general, the mapping from ITypeBinding to a Type node can only be done correctly when imports are taken into account. For this, there's already API, e.g.: org.eclipse.jdt.core.dom.rewrite.ImportRewrite#addImport(ITypeBinding, AST) |