Summary: | [Table] After Deleting the folder shown in Table get an error | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Tools] Target Management | Reporter: | Kevin Doyle <kjdoyle> | ||||||
Component: | RSE | Assignee: | Kevin Doyle <kjdoyle> | ||||||
Status: | CLOSED FIXED | QA Contact: | Martin Oberhuber <mober.at+eclipse> | ||||||
Severity: | minor | ||||||||
Priority: | P3 | CC: | dmcknigh, kmunir | ||||||
Version: | 2.0 | Keywords: | contributed | ||||||
Target Milestone: | 2.0.1 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows XP | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Kevin Doyle
2007-06-19 16:26:08 EDT
*** This bug has been marked as a duplicate of bug 193390 *** Reopening as the reason why this happens is different from that of bug 193390. Created attachment 73369 [details]
Changed mentions of Vector to java.util.List as passed child is an ArrayList not a Vector
Legal Message: I, Kevin Doyle, declare that I developed attached code from
scratch, without referencing any 3rd party materials except material licensed
under the EPL. I am authorized by my employer, IBM Canada Ltd. to make this
contribution under the EPL.
I've applied the fix and updated cvs. Reopening. Doesn't work if you delete the parent of the folder shown in the table. Also since it uses the history it could take you back to a folder that was deleted. Created attachment 74382 [details]
Deleting parent of folder shown in table will no longer display error
This patch changes a couple things:
1. Added to SystemTableViewPart.dispose() --- registry.removeSystemRemoteChangeListener(this);
2. Deleting a resource will remove it from the history and deleting multiple resources now works.
3. Added isPartOf(parent, child) to determine if parent is the parent of child.
4. Modified removeFromHistory so it goes through the history and removes all object that match isPartOf(parent, child) and then changes the viewers input if the viewers input has been deleted.
Legal Message: I, Kevin Doyle, declare that I developed attached code from
scratch, without referencing any 3rd party materials except material licensed
under the EPL. I am authorized by my employer, IBM Canada Ltd. to make this
contribution under the EPL.
Oops. isPartOf should be isParentOf. I've committed the updated patch to deal with grandparents and beyond. Verified with I20070724-0735. |