Lines 212-218
Link Here
|
212 |
if (f != null && f instanceof FormOutlinePage) { |
212 |
if (f != null && f instanceof FormOutlinePage) { |
213 |
// get the tree viewer for the outline |
213 |
// get the tree viewer for the outline |
214 |
Class clazz2 = FormOutlinePage.class; |
214 |
Class clazz2 = FormOutlinePage.class; |
215 |
Field field2 = clazz2.getDeclaredField("treeViewer"); |
215 |
Field field2 = null; |
|
|
216 |
try { |
217 |
field2 = clazz2.getDeclaredField("treeViewer"); |
218 |
} catch (NoSuchFieldException e) { |
219 |
field2 = clazz2.getDeclaredField("fTreeViewer"); |
220 |
} |
216 |
field2.setAccessible(true); |
221 |
field2.setAccessible(true); |
217 |
Object f2 = field2.get(f); |
222 |
Object f2 = field2.get(f); |
218 |
if (f2 != null && f2 instanceof TreeViewer) { |
223 |
if (f2 != null && f2 instanceof TreeViewer) { |