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:
parent
cb211e9fba
commit
76448cea22
1 changed files with 11 additions and 9 deletions
|
@ -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 :
|
||||
|
|
Loading…
Add table
Reference in a new issue