| Summary: | [Viewers] Viewer#remove() Trys to select previously removed Elements | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Benjamin Pasero <bpasero> |
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | bokowski, Michael.Valenta, Mike_Wilson, mlists, Tod_Creasey, tom.schindl |
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
|
Description
Benjamin Pasero
Looks like a regression due to Bug 125708. I dont see this behaviour in RC2. ben Does this cause any exceptions, or is it just surprising behaviour? It is just surprising behaviour. I get a Callback into my ContentProvider#getParent() with the element that just got deleted. I do some lookup then to get the parent, but since the element was deleted before, my model fails to resolve the parent. Ben I agree that this is surprising behaviour, but I am quite sure that this behaviour was there for a long time, i.e. even before TreeViewer was changed to allow multiple equal elements and to use TreeSelection. Susan, comments?? Could this be considered for 3.3? Actually what would be cool to have is a feature that selects the next item that is following the deleted one. This would extend the meaning of presering the selection a bit, but its something that I often implement on my own. Ben Would you like to contribute a patch for this, Ben? Even better than a patch, and maybe easier to write: a test case (new method for SimpleTableViewerTest/SimpleTreeViewerTest) that defines the desired behaviour. Sure. I can attach a patch soon. Ben Hitesh is now responsible for watching bugs in the [Viewers] component area. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |