Source:
public void createPartControl(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(1, false)); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); final DebugPatternFilter filter = new DebugPatternFilter(); FilteredTree tree = new FilteredTree(composite, SWT.MULTI | SWT.FULL_SELECTION | SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER, filter, true); tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); tree.getFilterControl().setToolTipText(DebugSourcesMessages.DebugSourcesMessages_filter_search_tooltip); viewer = tree.getViewer(); viewer.getTree().setLinesVisible(true); viewer.getTree().setHeaderVisible(true); viewer.setContentProvider(new DebugSourcesTreeContentProvider()); viewer.setUseHashlookup(true); comparator = new DebugSourcesViewComparator<Object>(); createColumns(viewer); viewer.setComparator(comparator); viewer.setInput(DebugSourcesMessages.DebugSourcesMessages_initializing); viewer.addDoubleClickListener(new IDoubleClickListener() { @Override public void doubleClick(DoubleClickEvent event) { IStructuredSelection thisSelection = (IStructuredSelection) event.getSelection(); Object selectedNode = thisSelection.getFirstElement(); if (selectedNode instanceof IDebugSourceFileInfo) { IDebugSourceFileInfo new_name = (IDebugSourceFileInfo) selectedNode; openSourceFile(new_name.getPath()); } if (selectedNode instanceof DebugTree) { DebugTree<?> node = (DebugTree<?>) selectedNode; if (!node.hasChildren()) { openSourceFile((String) node.getLeafData()); } } } }); createActions(viewer); registerForEvents(); DebugUITools.getDebugContextManager().getContextService(getSite().getWorkbenchWindow()) .addDebugContextListener(this); }

Target:
public void createPartControl(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(1, false)); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); final DebugPatternFilter filter = new DebugPatternFilter(); FilteredTree tree = new FilteredTree(composite, SWT.MULTI | SWT.FULL_SELECTION | SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER, filter, true); tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); tree.getFilterControl().setToolTipText(DebugSourcesMessages.DebugSourcesMessages_filter_search_tooltip); viewer = tree.getViewer(); viewer.getTree().setLinesVisible(true); viewer.getTree().setHeaderVisible(true); viewer.setContentProvider(new DebugSourcesTreeContentProvider()); viewer.setUseHashlookup(true); comparator = new DebugSourcesViewComparator<DebugTree>(); createColumns(viewer); viewer.setComparator(comparator); viewer.setInput(DebugSourcesMessages.DebugSourcesMessages_initializing); viewer.addDoubleClickListener(new IDoubleClickListener() { @Override public void doubleClick(DoubleClickEvent event) { IStructuredSelection thisSelection = (IStructuredSelection) event.getSelection(); Object selectedNode = thisSelection.getFirstElement(); if (selectedNode instanceof IDebugSourceFileInfo) { IDebugSourceFileInfo new_name = (IDebugSourceFileInfo) selectedNode; openSourceFile(new_name.getPath()); } if (selectedNode instanceof DebugTree) { DebugTree<?> node = (DebugTree<?>) selectedNode; if (!node.hasChildren()) { openSourceFile((String) node.getLeafData()); } } } }); createActions(viewer); registerForEvents(); DebugUITools.getDebugContextManager().getContextService(getSite().getWorkbenchWindow()) .addDebugContextListener(this); }