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

[187016] reapplying Xuan's patch. Not sure why it didn't get in first time.

This commit is contained in:
David McKnight 2007-07-12 14:46:01 +00:00
parent cb211e9fba
commit 76448cea22

View file

@ -950,27 +950,29 @@ public class SystemTableView
{
// treat this as refresh all
child = _objectInput;
}
if (child == _objectInput)
{
//the whole table need to be refreshed, will be handled by code below
break;
}
try
{
Widget w = findItem(child);
if (w != null && w.getData() != _objectInput)
if (w != null && w.getData() != _objectInput)
{
child = _objectInput; // refresh the parent
//Only one item of table need to be updated.
//updateItem(w, child);
//child is the children of this table input.
//Need to refresh the whole view to handler
//And we need to make _objectInput to stale, otherwise deleted object
//could not be removed from the table.
if (_objectInput instanceof ISystemContainer)
{
((ISystemContainer)_objectInput).markStale(true);
}
child = _objectInput;
}
}
catch (Exception e)
{
SystemBasePlugin.logError(e.getMessage());
}
}
break;
default :