Source:
<code>public void createControl(Composite parent) { super.createControl(parent); final Composite control = (Composite) this.getControl(); scanThread = createScanThread(); scanThread.start(); traceTypeViewer = new CheckboxTreeViewer(control, SWT.CHECK); traceTypeViewer.setContentProvider(getBatchWizard().getScannedTraces()); traceTypeViewer.getTree().setHeaderVisible(true); traceTypeViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); traceTypeViewer.setInput(getBatchWizard().getScannedTraces()); traceTypeViewer.addCheckStateListener(new ImportTraceCheckStateListener()); TreeViewerFocusCellManager focusCellManager = new TreeViewerFocusCellManager(traceTypeViewer, new FocusCellOwnerDrawHighlighter(traceTypeViewer)); ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(traceTypeViewer) { }; TreeViewerEditor.create(traceTypeViewer, focusCellManager, actSupport, ColumnViewerEditor.TABBING_HORIZONTAL | ColumnViewerEditor.TABBING_MOVE_TO_ROW_NEIGHBOR | ColumnViewerEditor.TABBING_VERTICAL | ColumnViewerEditor.KEYBOARD_ACTIVATION); TreeViewerColumn column = new TreeViewerColumn(traceTypeViewer, SWT.NONE); column.getColumn().setWidth(200); <START> column.getColumn().setText("Trace to import"); <END> column.setLabelProvider(new FirstColumnLabelProvider()); final TextCellEditor textCellEditor = new TextCellEditor(traceTypeViewer.getTree()); column = new TreeViewerColumn(traceTypeViewer, SWT.NONE); column.getColumn().setWidth(200); column.getColumn().setText("Trace display name"); column.setLabelProvider(new ColumnLabelProvider() { @Override public String getText(Object element) { if (element instanceof FileAndName) { FileAndName elem = (FileAndName) element; return elem.getName(); } return null; } }); column.setEditingSupport(new ColumnEditorSupport(traceTypeViewer, textCellEditor)); pb = new ProgressBar(control, SWT.SMOOTH); pb.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); pb.setMaximum(100); pb.setMinimum(0); }</code><technical_language>externalized string</technical_language>

Target:
public void createControl(Composite parent) { super.createControl(parent); final Composite control = (Composite) this.getControl(); fScanThread = getScanThread(); fScanThread.start(); traceTypeViewer = new CheckboxTreeViewer(control, SWT.CHECK); traceTypeViewer.setContentProvider(getBatchWizard().getScannedTraces()); traceTypeViewer.getTree().setHeaderVisible(true); traceTypeViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); traceTypeViewer.setInput(getBatchWizard().getScannedTraces()); traceTypeViewer.addCheckStateListener(new ImportTraceCheckStateListener()); TreeViewerFocusCellManager focusCellManager = new TreeViewerFocusCellManager(traceTypeViewer, new FocusCellOwnerDrawHighlighter(traceTypeViewer)); ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(traceTypeViewer) { }; TreeViewerEditor.create(traceTypeViewer, focusCellManager, actSupport, ColumnViewerEditor.TABBING_HORIZONTAL | ColumnViewerEditor.TABBING_MOVE_TO_ROW_NEIGHBOR | ColumnViewerEditor.TABBING_VERTICAL | ColumnViewerEditor.KEYBOARD_ACTIVATION); TreeViewerColumn column = new TreeViewerColumn(traceTypeViewer, SWT.NONE); column.getColumn().setWidth(200); column.getColumn().setText(Messages.ImportTraceWizardPageScan_0); column.setLabelProvider(new FirstColumnLabelProvider()); final TextCellEditor textCellEditor = new TextCellEditor(traceTypeViewer.getTree()); column = new TreeViewerColumn(traceTypeViewer, SWT.NONE); column.getColumn().setWidth(200); column.getColumn().setText(Messages.ImportTraceWizardPageScan_1); column.setLabelProvider(new ColumnLabelProvider() { @Override public String getText(Object element) { if (element instanceof FileAndName) { FileAndName elem = (FileAndName) element; return elem.getName(); } return null; } }); column.setEditingSupport(new ColumnEditorSupport(traceTypeViewer, textCellEditor)); pb = new ProgressBar(control, SWT.SMOOTH); pb.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); pb.setMaximum(1); pb.setMinimum(0); init(); getBatchWizard().setTracesToScan(fTracesToScan); getBatchWizard().setTraceFolder(fTargetFolder); }