1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-01 13:25:45 +02:00

[420578] Refresh action on connection level after a file deletion

results in a problem occurred pop-up
This commit is contained in:
Dave McKnight 2013-10-29 10:40:21 -04:00
parent b896bfa678
commit e180459ff4

View file

@ -88,6 +88,7 @@
* David Mcknight (IBM) - [374681] Incorrect number of children on the properties page of a directory * David Mcknight (IBM) - [374681] Incorrect number of children on the properties page of a directory
* David McKnight (IBM) - [404396] delete doesn't always properly unmap tree items in SystemView * David McKnight (IBM) - [404396] delete doesn't always properly unmap tree items in SystemView
* David McKnight (IBM) - [411398] SystemView event handling for icon changes needs to handle multi-source * David McKnight (IBM) - [411398] SystemView event handling for icon changes needs to handle multi-source
* Yang Yang (IBM) - [420578] Refresh action on connection level after a file deletion results in a problem occurred pop-up
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.internal.ui.view; package org.eclipse.rse.internal.ui.view;
@ -328,10 +329,17 @@ public class SystemView extends SafeTreeViewer
subChildren.add(itemToExpand); subChildren.add(itemToExpand);
} }
else { else {
// some objects might need explicit comparison // some objects might need explicit comparison
Object object = itemToExpand.data; Object object = itemToExpand.data;
ISystemRemoteElementAdapter adapter = itemToExpand.remoteAdapter; String childParentName = null;
String childParentName = adapter.getAbsoluteParentName(object); ISystemRemoteElementAdapter elementAdapter = getRemoteAdapter(object);
if (elementAdapter != null){
childParentName = elementAdapter.getAbsoluteParentName(object);
}
else {
ISystemViewElementAdapter viewAdapter = getViewAdapter(object);
childParentName = viewAdapter.getName(object);
}
if (absoluteParentName.equals(childParentName)){ if (absoluteParentName.equals(childParentName)){
subChildren.add(itemToExpand); subChildren.add(itemToExpand);
} }