Source:
private void createControl(Composite parent, Object input, IStructuredSelection selection) { fSelection = selection; if(fSelection == null) { IViewPart fViewpart = DebugUIPlugin.getActiveWorkbenchWindow().getActivePage().findView(IDebugUIConstants.ID_BREAKPOINT_VIEW); if(fViewpart != null) { fSelection = (IStructuredSelection)fViewpart.getViewSite().getSelectionProvider().getSelection(); } else { fSelection = new StructuredSelection(); } } Composite composite = SWTFactory.createComposite(parent, parent.getFont(), 1, 1, GridData.FILL_BOTH, 0, 0); fTree = new Tree(composite, SWT.BORDER | SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CHECK); GridData gd = new GridData(GridData.FILL_BOTH); gd.heightHint = 150; fTree.setLayoutData(gd); fProvider = new BreakpointsContentProvider(); BreakpointsView view = ((BreakpointsView)DebugUIPlugin.getActiveWorkbenchWindow().getActivePage().findView(IDebugUIConstants.ID_BREAKPOINT_VIEW)); fViewer = new BreakpointsViewer(fTree); BreakpointsLabelProvider labelprovider = new BreakpointsLabelProvider(); if(view != null) { Map<String, Object> map = null; IDebugModelPresentation current = view.getAdapter(IDebugModelPresentation.class); if (current instanceof DelegatingModelPresentation) { map = ((DelegatingModelPresentation) current).getAttributes(); } if(map != null) { Object key = null; IDebugModelPresentation newpres = labelprovider.getPresentation(); for (String string : map.keySet()) { key = string; newpres.setAttribute((String) key, map.get(key)); } } } fViewer.setComparator(new BreakpointsComparator()); fViewer.setLabelProvider(labelprovider); fViewer.addCheckStateListener(fCheckListener); IBreakpointOrganizer[] orgs = null; if(view != null) { orgs = view.getBreakpointOrganizers(); } fViewer.setContentProvider(fProvider); fViewer.setInput(input); fProvider.setOrganizers(orgs); initViewerState(); }

Target:
private void createControl(Composite parent, Object input, IStructuredSelection selection) { fSelection = selection; if(fSelection == null) { IViewPart fViewpart = DebugUIPlugin.getActiveWorkbenchWindow().getActivePage().findView(IDebugUIConstants.ID_BREAKPOINT_VIEW); if(fViewpart != null) { fSelection = (IStructuredSelection)fViewpart.getViewSite().getSelectionProvider().getSelection(); } else { fSelection = new StructuredSelection(); } } Composite composite = SWTFactory.createComposite(parent, parent.getFont(), 1, 1, GridData.FILL_BOTH, 0, 0); fTree = new Tree(composite, SWT.BORDER | SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CHECK); GridData gd = new GridData(GridData.FILL_BOTH); gd.heightHint = 150; fTree.setLayoutData(gd); fProvider = new BreakpointsContentProvider(); BreakpointsView view = ((BreakpointsView)DebugUIPlugin.getActiveWorkbenchWindow().getActivePage().findView(IDebugUIConstants.ID_BREAKPOINT_VIEW)); fViewer = new BreakpointsViewer(fTree); BreakpointsLabelProvider labelprovider = new BreakpointsLabelProvider(); if(view != null) { Map<String, Object> map = null; IDebugModelPresentation current = view.getAdapter(IDebugModelPresentation.class); if (current instanceof DelegatingModelPresentation) { map = ((DelegatingModelPresentation) current).getAttributes(); } if(map != null) { IDebugModelPresentation newpres = labelprovider.getPresentation(); for (String key : map.keySet()) { newpres.setAttribute(key, map.get(key)); } } } fViewer.setComparator(new BreakpointsComparator()); fViewer.setLabelProvider(labelprovider); fViewer.addCheckStateListener(fCheckListener); IBreakpointOrganizer[] orgs = null; if(view != null) { orgs = view.getBreakpointOrganizers(); } fViewer.setContentProvider(fProvider); fViewer.setInput(input); fProvider.setOrganizers(orgs); initViewerState(); }