| Summary: | [implementation] TextViewer returns null for getControl() although this is not spec'd in Viewer's javadoc API | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Remy Suen <remy.suen> |
| Component: | Text | Assignee: | Dani Megert <daniel_megert> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, markus.kell.r |
| Version: | 3.8 | ||
| Target Milestone: | 3.8 M3 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Remy Suen
Has been like this since day 0. > should a) not return null +1 > b) define that it will [return null] in its javadoc That would still violate the inherited contract of Viewer#getControl(). Note that we can't just remove the "fTextWidget= null;", since the class uses a lot of "if (fTextWidget == null ..." tests and ITextViewer#getTextWidget() specifies the current behavior. Fixed in master: 1e4b8d7f344d37183189f29a90c66f8970a946cf Verified through code inspection. |