mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-27 02:45:32 +02:00
[385774] select folder dialog doesn't update enablement properly after new folder created
This commit is contained in:
parent
a54a198bd0
commit
0de7b7ba58
1 changed files with 14 additions and 5 deletions
|
@ -83,6 +83,7 @@
|
||||||
* David McKnight (IBM) - [372976] ClassCastException when SystemView assumes widget a TreeItem when it's a Tree
|
* David McKnight (IBM) - [372976] ClassCastException when SystemView assumes widget a TreeItem when it's a Tree
|
||||||
* David Dykstal (IBM) - [257110] Prompting filter called twice on double click rather than just once
|
* David Dykstal (IBM) - [257110] Prompting filter called twice on double click rather than just once
|
||||||
* David McKnight (IBM) - [380613] Problem in SystemView with disposed TreeItem when Link With Editor toolbar icon is used
|
* David McKnight (IBM) - [380613] Problem in SystemView with disposed TreeItem when Link With Editor toolbar icon is used
|
||||||
|
* David McKnight (IBM) - [385774] select folder dialog doesn't update enablement properly after new folder created
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.ui.view;
|
package org.eclipse.rse.internal.ui.view;
|
||||||
|
@ -3732,7 +3733,15 @@ public class SystemView extends SafeTreeViewer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (selItems.size() > 0) {
|
if (selItems.size() > 0) {
|
||||||
setSelection(selItems);
|
List dataList = new ArrayList();
|
||||||
|
for (int i = 0; i < selItems.size(); i++){
|
||||||
|
Item item = (Item)selItems.get(i);
|
||||||
|
if (item != null){
|
||||||
|
dataList.add(item.getData());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
IStructuredSelection sel = new StructuredSelection(dataList);
|
||||||
|
setSelection(sel);
|
||||||
updatePropertySheet();
|
updatePropertySheet();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -3744,9 +3753,9 @@ public class SystemView extends SafeTreeViewer
|
||||||
selItem = findFirstRemoteItemReference(src, parentItem);
|
selItem = findFirstRemoteItemReference(src, parentItem);
|
||||||
|
|
||||||
if (selItem != null) {
|
if (selItem != null) {
|
||||||
ArrayList selItems = new ArrayList();
|
|
||||||
selItems.add(selItem);
|
IStructuredSelection sel = new StructuredSelection(selItem.getData());
|
||||||
setSelection(selItems);
|
setSelection(sel);
|
||||||
updatePropertySheet();
|
updatePropertySheet();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue