| Summary: | JUnit Plugin: Color heirarchy tree | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Channing Walton <channingwalton> |
| Component: | UI | Assignee: | Erich Gamma <erich_gamma> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P2 | Keywords: | helpwanted |
| Version: | 2.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Attachments: | |||
|
Description
Channing Walton
yes! this would be consistent with the way we show error ticks, but not high priority. Cool. From NG: Randy Hudson - 2001-12-31 - Re: Color tree/table widget needed - bounty offered You cannot "overpaint" on a native Tree. Why? There are times when the Tree will paint and you will not get notification from the OS. I was told this by someone on the SWT team. I believe one of the examples was scrolling with a wheelmouse. The heavyweight approach wouldn't look right with the smooth expand/collapse on windows. The "right" way (IMHO) to make coloring possible (and lots of other things too) would be a JTree-like approach of painting the entire tree yourself. Besides the visual flexibility, JTree's performance is much better at handling large models. The downside is you would have to implement keyboard handling and other stuff. Created attachment 377 [details]
patch uses the OK/FAILURE/ERROR icons to indicate the test suite's status; if there's a test case with ERROR then the test suite will get the ERROR icon; if there's a FAILURE but no ERROR then the FAILURE icon is used; otherwise the OK icon is used
Actually icons is what I really would like - just an indication of which suites have failures and /or errors (perhaps a special icon to indicate a suite that has both errors and failures?) Channing The patch uses the familiar icons from the test cases. Only one Image can be associated to a TreeItem, i.e. in this context test suite. That "special icon" would have to be created from scratch. IMO it's OK for a test suite with ERRORs and FAILUREs to have only the ERROR icon. Yes, the error icon should overide the failure one. Thanks for this stuff :-) Channing changed prio given that we got this as a patch (thanks!) From looking at the patch it looks like the error state is only propagated up
one level to the parent but not to the root, e.g.
SuiteRoot
SuiteParent
ErrorTestCase
with the current code only SuiteParent gets the error icon. I think we sould be
consistent with the error tick scheme used in JDT and propagate the error icon
to the root.
now using the same "error tick" scheme as in the Java view. |