use of org.eclipse.ui.part.DrillDownAdapter in project yamcs-studio by yamcs.
the class DrillDownComposite method setChildTree.
/**
* Sets the child viewer. This method should only be called once, after the
* viewer has been created.
*
* @param aViewer
* the new child viewer
*/
public final void setChildTree(final TreeViewer aViewer) {
// Save viewer.
_fChildTree = aViewer;
// Create adapter.
_adapter = new DrillDownAdapter(_fChildTree);
_adapter.addNavigationActions(_toolBarMgr);
_toolBarMgr.update(true);
// Set tree layout.
_fChildTree.getTree().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
layout();
}
use of org.eclipse.ui.part.DrillDownAdapter in project yamcs-studio by yamcs.
the class DrillDownComposite method setChildTree.
/**
* Sets the child viewer. This method should only be called once, after the
* viewer has been created.
*
* @param aViewer the new child viewer
*/
public final void setChildTree(final TreeViewer aViewer) {
// Save viewer.
_fChildTree = aViewer;
// Create adapter.
_adapter = new DrillDownAdapter(_fChildTree);
_adapter.addNavigationActions(_toolBarMgr);
_toolBarMgr.update(true);
// Set tree layout.
_fChildTree.getTree().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
layout();
}
use of org.eclipse.ui.part.DrillDownAdapter in project erlide_eclipse by erlang.
the class TraceLogView method createPartControl.
/**
* This is a callback that will allow us to create the viewer and initialize it.
*/
@Override
public void createPartControl(final Composite parent) {
viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
drillDownAdapter = new DrillDownAdapter(viewer);
viewer.setContentProvider(new ViewContentProvider());
viewer.setLabelProvider(new ViewLabelProvider());
viewer.setComparator(new NameSorter());
viewer.setInput(getViewSite());
makeActions();
hookContextMenu();
hookDoubleClickAction();
contributeToActionBars();
}
Aggregations