Lines 15-20
Link Here
|
15 |
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry |
15 |
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry |
16 |
* Kevin Doyle (IBM) - [182403] Double Click on an object that can be expanded |
16 |
* Kevin Doyle (IBM) - [182403] Double Click on an object that can be expanded |
17 |
* Kevin Doyle (IBM) - [195543] Double Clicking expands wrong folder when duplicate elements shown |
17 |
* Kevin Doyle (IBM) - [195543] Double Clicking expands wrong folder when duplicate elements shown |
|
|
18 |
* Kevin Doyle (IBM) - [193155] Double Clicking on a String in Scratchpad Errors |
18 |
********************************************************************************/ |
19 |
********************************************************************************/ |
19 |
|
20 |
|
20 |
package org.eclipse.rse.internal.ui.view.scratchpad; |
21 |
package org.eclipse.rse.internal.ui.view.scratchpad; |
Lines 182-188
Link Here
|
182 |
ITreeSelection s = (ITreeSelection) event.getSelection(); |
183 |
ITreeSelection s = (ITreeSelection) event.getSelection(); |
183 |
Object element = s.getFirstElement(); |
184 |
Object element = s.getFirstElement(); |
184 |
|
185 |
|
185 |
if (element == null) |
186 |
if (element == null || !(element instanceof IAdaptable)) |
186 |
return; |
187 |
return; |
187 |
|
188 |
|
188 |
ISystemViewElementAdapter adapter = (ISystemViewElementAdapter) ((IAdaptable) element).getAdapter(ISystemViewElementAdapter.class); |
189 |
ISystemViewElementAdapter adapter = (ISystemViewElementAdapter) ((IAdaptable) element).getAdapter(ISystemViewElementAdapter.class); |