1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-23 08:13:50 +02:00

[341616] SystemResourceSelectionForm needs to check whether selected is an IAdaptable

This commit is contained in:
David McKnight 2011-04-01 13:16:38 +00:00
parent 5e79253a7c
commit b658348edb

View file

@ -21,6 +21,7 @@
* David McKnight (IBM) - [244430] [regression] Incorrect behaviour for SystemSelectRemoteFolderAction * David McKnight (IBM) - [244430] [regression] Incorrect behaviour for SystemSelectRemoteFolderAction
* David McKnight (IBM) - [267061] resource dialog/form to allow custom host combo label * David McKnight (IBM) - [267061] resource dialog/form to allow custom host combo label
* David McKnight (IBM) - [339282] SystemResourceSelectionForm.selectionChanged() should check for null subsystem * David McKnight (IBM) - [339282] SystemResourceSelectionForm.selectionChanged() should check for null subsystem
* David McKnight (IBM) - [341616] SystemResourceSelectionForm needs to check whether selected is an IAdaptable
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.internal.ui.view; package org.eclipse.rse.internal.ui.view;
@ -527,7 +528,7 @@ public class SystemResourceSelectionForm implements ISelectionChangedListener
_history.put(outputConnection, previousSelection); _history.put(outputConnection, previousSelection);
} }
else else if (selectedObject instanceof IAdaptable)
{ {
ISystemViewElementAdapter elementAdapter = (ISystemViewElementAdapter)((IAdaptable)selectedObject).getAdapter(ISystemViewElementAdapter.class); ISystemViewElementAdapter elementAdapter = (ISystemViewElementAdapter)((IAdaptable)selectedObject).getAdapter(ISystemViewElementAdapter.class);
if (elementAdapter != null) if (elementAdapter != null)