186187188189190191192193194195196
{ treeViewer.setInput( ldifEditor.getLdifModel() ); } } treeViewer.refresh(); // treeViewer.setSelection(selection); // treeViewer.setExpandedElements(expandedElements); } }
203204205206207208209210211212213
public void refresh( Object element ) { final TreeViewer treeViewer = getTreeViewer(); if ( treeViewer != null && treeViewer.getTree() != null && !treeViewer.getTree().isDisposed() ) { treeViewer.refresh( element ); } } /**
249250251252253254255256257258259
treeViewer.expandToLevel( 2 ); } } } treeViewer.refresh(); // treeViewer.setSelection(selection); // treeViewer.setExpandedElements(expandedElements); } }
156157158159160161162163164165166
182183184185186187188189190191192
212213214215216217218219220221222
{ treeViewer.setInput( ldifEditor.getLdifModel() ); } } treeViewer.refresh(); if ( isLinkedToLdapBrowser ) { treeViewer.setAutoExpandLevel( 2 ); }
if (viewer != null) { Control control = viewer.getControl(); if (control != null && !control.isDisposed()) { initRules(); populatePackageTreeNode(); viewer.refresh(); control.setRedraw(false); viewer.expandToLevel(2); control.setRedraw(true); } }