| Summary: | AST utility class for quick fixes | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Tomasz Wesolowski <kosashi> | ||||||
| Component: | cdt-codan | Assignee: | Elena Laskavaia <elaskavaia.cdt> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Elena Laskavaia <elaskavaia.cdt> | ||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | CC: | cdtdoug | ||||||
| Version: | 7.0 | ||||||||
| Target Milestone: | 8.0 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | 312736 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Tomasz Wesolowski
Created attachment 172668 [details]
ASTQuickFixUtil class
used in a few fixes (soon to be committed)
Location of utility is not correct. checkers.ui is only intended for checker quickfixes itself. All framework parts should in codan.ui. Second it has two independent group of functions ast manipulation and text manipulaton. Ast manipulation can go into class org.eclipse.cdt.codan.core.cxx.CxxAstUtils (already exists). And we can create one in ui for text manipulation and name it appropriately. Created attachment 172923 [details]
CxxAstUtils extended, TextUtils created
I agree.
Changed according to your suggestions
I cannot commit it because it depends on a class that does not exist in the patch import org.eclipse.cdt.core.dom.rewrite.DeclarationGenerator I assume it is part of patch for refactoring: 312736. I added dependency. I applied it, but I renamed TextUtils to JFaceTextUtils for clarity Thanks *** cdt cvs genie on behalf of elaskavaia *** Bug 317875: extended utility classes [*] CxxAstUtils.java 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/CxxAstUtils.java?root=Tools_Project&r1=1.3&r2=1.4 [+] JFaceTextUtils.java http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/ui/JFaceTextUtils.java?root=Tools_Project&revision=1.1&view=markup |