mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 21:05:37 +02:00
[420578] Refresh action on connection level after a file deletion
results in a problem occurred pop-up
This commit is contained in:
parent
b896bfa678
commit
e180459ff4
1 changed files with 11 additions and 3 deletions
|
@ -88,6 +88,7 @@
|
|||
* 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) - [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;
|
||||
|
@ -330,8 +331,15 @@ public class SystemView extends SafeTreeViewer
|
|||
else {
|
||||
// some objects might need explicit comparison
|
||||
Object object = itemToExpand.data;
|
||||
ISystemRemoteElementAdapter adapter = itemToExpand.remoteAdapter;
|
||||
String childParentName = adapter.getAbsoluteParentName(object);
|
||||
String childParentName = null;
|
||||
ISystemRemoteElementAdapter elementAdapter = getRemoteAdapter(object);
|
||||
if (elementAdapter != null){
|
||||
childParentName = elementAdapter.getAbsoluteParentName(object);
|
||||
}
|
||||
else {
|
||||
ISystemViewElementAdapter viewAdapter = getViewAdapter(object);
|
||||
childParentName = viewAdapter.getName(object);
|
||||
}
|
||||
if (absoluteParentName.equals(childParentName)){
|
||||
subChildren.add(itemToExpand);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue