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

[174624] check for ISystemRemoteElementAdapter before calling updateRemoteObjectProperties()

This commit is contained in:
David McKnight 2007-02-19 16:07:32 +00:00
parent c853fcc372
commit 38ee12cb91

View file

@ -2003,7 +2003,7 @@ public class SystemView extends SafeTreeViewer implements ISystemTree, ISystemRe
case EVENT_PROPERTY_CHANGE:
if (debug) logDebugMsg("SV event: EVENT_PROPERTY_CHANGE "); //$NON-NLS-1$
String[] allProps = { IBasicPropertyConstants.P_TEXT, IBasicPropertyConstants.P_IMAGE };
ISystemViewElementAdapter ra = getViewAdapter(src);
ISystemRemoteElementAdapter ra = (ISystemRemoteElementAdapter)((IAdaptable)src).getAdapter(ISystemRemoteElementAdapter.class);
if (ra != null) {
updateRemoteObjectProperties(src);
} else