| Summary: | "Copy Qualified Name" action not working for method bindings | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Objectteams | Reporter: | Stephan Herrmann <stephan.herrmann> | ||||
| Component: | OTDT | Assignee: | Stephan Herrmann <stephan.herrmann> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 0.7 | ||||||
| Target Milestone: | 0.7.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Stephan Herrmann
Created attachment 175617 [details]
fix
The fix consists of two parts:
- OTJavaElement.getCorrespondingResource() was not working because it called
exists() on the correspondingJavaElement which however is fake thus cannot
fetch infos.
Solution is to copy the method body from SourceRefElement, which uses the
right version of exists() and in case of success(!) returns null.
At this point the exception was fixed, but the action did not fetch a
qualified name.
- ViewAdaptor.JavaElementLabels.getElementLabel did check for M_POST_QUALIFIED
but failed to handle M_FULLY_QUALIFIED. Fixed.
Fix has been committed as r651 - r653. Verified using I201009211735 |