1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[190001] [refresh] Avoid unnecessary duplicate queries during drag&drop to filter

This commit is contained in:
David McKnight 2009-05-12 17:59:25 +00:00
parent 33d77f1a23
commit ca138aa9fe

View file

@ -68,6 +68,7 @@
* David McKnight (IBM) - [251625] Widget disposed exception when renaming/pasting a folder
* David McKnight (IBM) - [257721] Doubleclick doing special handling and expanding
* David McKnight (IBM) - [190805] [performance][dstore] Right-click > Disconnect on a dstore connection is slow and spawns many Jobs
* David McKnight (IBM) - [190001] [refresh] Avoid unnecessary duplicate queries during drag&drop to filter
********************************************************************************/
package org.eclipse.rse.internal.ui.view;
@ -2649,7 +2650,11 @@ public class SystemView extends SafeTreeViewer
if (selectedFilters == null) selectedFilters = new ArrayList();
selectedFilters.add(filterItem);
}
smartRefresh(new TreeItem[] { filterItem }, null, true);
Object filterRef = filterItem.getData();
if (filterRef != remoteResourceParent){ // don't refresh it here if the filter reference is the object to refresh anyway
smartRefresh(new TreeItem[] { filterItem }, null, true);
}
}
}
// now, refresh all occurrences of the remote parent object.