| Summary: | [Viewers]ViewerCell and ViewerRow should provide API to find neighbors | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Thomas Schindl <tom.schindl> | ||||||||||
| Component: | UI | Assignee: | Boris Bokowski <bokowski> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | bokowski, bradleyjames, cgross, rmcamara, Tod_Creasey | ||||||||||
| Version: | 3.3 | ||||||||||||
| Target Milestone: | 3.3 M5 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows XP | ||||||||||||
| Whiteboard: | |||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 151295 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Thomas Schindl
Created attachment 55449 [details]
I banged my head against it now for a while but finally it's working ;-)
Support for Tables is really easy but the one for trees really really took sometime and I hope I have successfully identified all cases.
+1 but I would like us to use just one method per class together with constants for the direction: ViewerCell.getNeighbor(int direction) where direction can be one of ViewerCell.ABOVE ViewerCell.BELOW ViewerCell.LEFT ViewerCell.RIGHT Created attachment 55916 [details]
Addressing Boris requestes
This addresses Boris concerns, fixes internals to speed up the Tree-search, fixes small bugs and provides access cell e.g. in the upper-left of the current cell using BITMASKs. You can give it a try using the snippet contained in the patch:
- TAB to travers horizontal right (at the end jump to the next row)
- SHIFT+TAB to travers horizontal left (at the begining jump to the above row)
- CTRL+TAB to travers vertically to the next row
- CTRL+SHIFT+TAB tor travers vertically to the above row
When I think about the names wouldn't it make sense to use:
- NORTH
- SOUTH
- EAST
- WEST
instead?
Created attachment 56191 [details]
Apply to HEAD cleanly
cc'ing chris because this is something Nebula has to implement Created attachment 57078 [details]
Extracted from Mega-Patch in151295
Patch with improved Javadoc released >20070120. See bug 171126 for outstanding issues with the implementation. |