mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-01 12:43:26 +02:00
[244824] filter not refreshed if child is "empty list" or system message node
This commit is contained in:
parent
46fec63545
commit
3edcbb2ece
1 changed files with 25 additions and 12 deletions
|
@ -29,6 +29,7 @@
|
||||||
* David McKnight (IBM) - [232148] Invalid thread access exception from SystemViewFilterReferenceAdapter.internalGetChildren()
|
* David McKnight (IBM) - [232148] Invalid thread access exception from SystemViewFilterReferenceAdapter.internalGetChildren()
|
||||||
* David McKnight (IBM) - [233494] Show in Table Action should be removed from promptable filters
|
* David McKnight (IBM) - [233494] Show in Table Action should be removed from promptable filters
|
||||||
* David McKnight (IBM) - [238507] Promptable Filters refreshed after modifying filter strings
|
* David McKnight (IBM) - [238507] Promptable Filters refreshed after modifying filter strings
|
||||||
|
* David McKnight (IBM) - [244824] filter not refreshed if child is "empty list" or system message node
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.ui.view;
|
package org.eclipse.rse.internal.ui.view;
|
||||||
|
@ -421,18 +422,30 @@ public class SystemViewFilterReferenceAdapter
|
||||||
children = fRef.getContents(SystemChildrenContentsType.getInstance());
|
children = fRef.getContents(SystemChildrenContentsType.getInstance());
|
||||||
if (children != null)
|
if (children != null)
|
||||||
{
|
{
|
||||||
// check for stale children
|
if (children.length == 0){
|
||||||
for (int i = 0; i < children.length && !doQuery; i++)
|
doQuery = true;
|
||||||
{
|
fRef.markStale(true);
|
||||||
Object child = children[i];
|
}
|
||||||
if (child instanceof ISystemContainer)
|
else {
|
||||||
{
|
// check for stale children
|
||||||
if (((ISystemContainer)child).isStale())
|
for (int i = 0; i < children.length && !doQuery; i++)
|
||||||
{
|
{
|
||||||
doQuery = true;
|
Object child = children[i];
|
||||||
fRef.markStale(true);
|
if (child instanceof ISystemContainer)
|
||||||
}
|
{
|
||||||
}
|
if (((ISystemContainer)child).isStale())
|
||||||
|
{
|
||||||
|
doQuery = true;
|
||||||
|
fRef.markStale(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (child instanceof ISystemMessageObject){
|
||||||
|
if (((ISystemMessageObject)child).isTransient()){
|
||||||
|
doQuery = true;
|
||||||
|
fRef.markStale(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue