mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 04:55:22 +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
|
// treat this as refresh all
|
||||||
child = _objectInput;
|
child = _objectInput;
|
||||||
}
|
|
||||||
if (child == _objectInput)
|
|
||||||
{
|
|
||||||
//the whole table need to be refreshed, will be handled by code below
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Widget w = findItem(child);
|
Widget w = findItem(child);
|
||||||
if (w != null && w.getData() != _objectInput)
|
if (w != null && w.getData() != _objectInput)
|
||||||
{
|
{
|
||||||
child = _objectInput; // refresh the parent
|
//child is the children of this table input.
|
||||||
//Only one item of table need to be updated.
|
//Need to refresh the whole view to handler
|
||||||
//updateItem(w, child);
|
//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)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
SystemBasePlugin.logError(e.getMessage());
|
SystemBasePlugin.logError(e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
|
|
Loading…
Add table
Reference in a new issue