mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-07 16:26:11 +02:00
[241726] Move doesn't select the moved items
This commit is contained in:
parent
e54169e16d
commit
84c1a81398
1 changed files with 13 additions and 1 deletions
|
@ -75,6 +75,7 @@
|
|||
* Uwe Stieber (Wind River) - [238519] [usability][api] Adapt RSE view(s) to follow decoration style of the Eclipse platform common navigator
|
||||
* David McKnight (IBM) - [330973] Drag/drop a local file generates an error message in the Remote system view
|
||||
* David McKnight (IBM) - [308783] Value in Properties view remains "Pending..."
|
||||
* David McKnight (IBM) - [241726] Move doesn't select the moved items
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
@ -2681,7 +2682,18 @@ public class SystemView extends SafeTreeViewer
|
|||
if (originatedHere){
|
||||
// first, restore previous selection...
|
||||
if (prevSelection != null) selectRemoteObjects(prevSelection, ss, parentSelectionItem);
|
||||
TreeItem selectedItem = getFirstSelectedTreeItem();
|
||||
|
||||
TreeItem selectedItem = null;
|
||||
if (remoteResourceParent instanceof String)
|
||||
selectedItem = (TreeItem)findFirstRemoteItemReference((String)remoteResourceParent, ss, parentSelectionItem);
|
||||
else
|
||||
selectedItem = (TreeItem)findFirstRemoteItemReference(remoteResourceParent, parentSelectionItem);
|
||||
|
||||
if (selectedItem == null){
|
||||
selectedItem = getFirstSelectedTreeItem();
|
||||
}
|
||||
|
||||
|
||||
if (selectedItem != null)
|
||||
{
|
||||
Object data = selectedItem.getData();
|
||||
|
|
Loading…
Add table
Reference in a new issue