Community
Participate
Working Groups
After deleting the folder that is shown in the Remote System Details view the contents of the view shows: "Folder PATH_TO_FOLDER is not readable. Cannot Expand". Instead the view should display the parents contents of the deleted folder or go back to the list of connections. Steps to Reproduce: 1. Do Show in Table on some folder. 2. Delete that folder. 3. The Remote System Details View is refreshed and displays the message: "Folder PATH_TO_FOLDER is not readable. Cannot Expand" -----------Enter bugs above this line----------- TM 2.0RC3 Testing installation : eclipse-SDK-3.3RC4 RSE install : RSE 2.0 RC3 java.runtime : Sun 1.5.0_11-b03 os.name: : Windows XP, Service Pack 2 ------------------------------------------------
*** 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.