mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 02:15:31 +02:00
[257110] Prompting filter called twice on double click rather than just once
This commit is contained in:
parent
badcba3afc
commit
92aec7ec61
1 changed files with 5 additions and 1 deletions
|
@ -81,6 +81,7 @@
|
||||||
* David McKnight (IBM) - [342208] potential NPE in SystemView$ExpandRemoteObjects.execute()
|
* David McKnight (IBM) - [342208] potential NPE in SystemView$ExpandRemoteObjects.execute()
|
||||||
* David McKnight (IBM) - [342095] Properties in Properties view remain "Pending..." in some cases
|
* David McKnight (IBM) - [342095] Properties in Properties view remain "Pending..." in some cases
|
||||||
* 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
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.ui.view;
|
package org.eclipse.rse.internal.ui.view;
|
||||||
|
@ -671,7 +672,8 @@ public class SystemView extends SafeTreeViewer
|
||||||
|
|
||||||
if (!alreadyHandled && isExpandable(element)) {
|
if (!alreadyHandled && isExpandable(element)) {
|
||||||
boolean expandedState = getExpandedState(elementPath);
|
boolean expandedState = getExpandedState(elementPath);
|
||||||
setExpandedState(elementPath, !expandedState);
|
// TL: need postpone this ExpandState change to avoid an extra createfilter
|
||||||
|
//setExpandedState(elementPath, !expandedState);
|
||||||
// DWD: fire collapse / expand event
|
// DWD: fire collapse / expand event
|
||||||
Event baseEvent = new Event();
|
Event baseEvent = new Event();
|
||||||
baseEvent.item = findItem(element);
|
baseEvent.item = findItem(element);
|
||||||
|
@ -682,6 +684,8 @@ public class SystemView extends SafeTreeViewer
|
||||||
} else {
|
} else {
|
||||||
handleTreeExpand(treeEvent);
|
handleTreeExpand(treeEvent);
|
||||||
}
|
}
|
||||||
|
// TL: post-change ExpandState
|
||||||
|
setExpandedState(elementPath, !expandedState);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue