| Summary: | [Cell Editors] CellEditor class is hard to use outside of Tables | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Randy Hudson <hudsonr> |
| Component: | UI | Assignee: | Andrew Irvine <airvine> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P2 | CC: | n.a.edgar |
| Version: | 2.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
| Bug Depends on: | 15923 | ||
| Bug Blocks: | |||
|
Description
Randy Hudson
The TableViewers expect the cell editors to be created eagerly, then manage their visibility using Control.setVisibility. Can you do it this way? I can't think of any reason why I would want to create hundreds of Text controls eagerly. Certainly there is no performance problem in creating a CellEditor. This will create needless listeners on the Figures that own the cell editors, slow down scrolling performance (our scrolling is not native), and will complicate the code. I looked at TableEditor class. It seems to only hold onto a single TableItem. And TableViewer only holds onto a single TableEditor instance. I don't see where multiple CellEditors are managed. There is also a problem of lifetime management. Controls must be disposed, and I am doing so when the change has been applied. I don't want a mechanism to dispose the controls at a later time. The priority on this defect report does not look right to me. Fix submitted to 20021122 build. Three constructors on cell editors CellEditor CellEditor(Composite) CellEditor(Composite, int (style)) New methods setStyle(style) getStyle() create(composite) UI subclasses of celleditors updated appropriately. |