Source:
public void createPartControl(Composite parent) { super.createPartControl(parent); fSashForm = new SashForm(parent, SWT.NONE); fTmfViewer = createLeftChildViewer(fSashForm); fXYViewerContainer = new Composite(fSashForm, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; fXYViewerContainer.setLayout(layout); fChartViewer = createChartViewer(fXYViewerContainer); fChartViewer.setSendTimeAlignSignals(true); fChartViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); fChartViewer.getSwtChart().addMouseListener(new MouseAdapter() { @Override public void mouseDoubleClick(MouseEvent e) { super.mouseDoubleClick(e); resetStartFinishTime(); } }); fChartViewer.getControl().addPaintListener(new PaintListener() { @Override public void paintControl(PaintEvent e) { if (fSashDragListener == null) { for (Control control : fSashForm.getChildren()) { if (control instanceof Sash) { fSashDragListener = new Listener() { @Override public void handleEvent(Event event) { TmfSignalManager.dispatchSignal(new TmfTimeViewAlignmentSignal(fSashForm, getTimeViewAlignmentInfo())); } }; control.removePaintListener(this); control.addListener(SWT.Selection, fSashDragListener); break; } } } } }); fSashForm.setWeights(DEFAULT_WEIGHTS); getViewSite().getActionBars().getToolBarManager().appendToGroup(IWorkbenchActionConstants.MB_ADDITIONS, fResetScaleAction); ITmfTrace trace = TmfTraceManager.getInstance().getActiveTrace(); if (trace != null) { setTrace(trace); loadTrace(); } IStatusLineManager statusLineManager = getViewSite().getActionBars().getStatusLineManager(); fChartViewer.setStatusLineManager(statusLineManager); fOriginalTabLabel = getPartName(); }

Target:
public void createPartControl(Composite parent) { super.createPartControl(parent); fSashForm = new SashForm(parent, SWT.NONE); fTmfViewer = createLeftChildViewer(fSashForm); fXYViewerContainer = new Composite(fSashForm, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; fXYViewerContainer.setLayout(layout); fChartViewer = createChartViewer(fXYViewerContainer); fChartViewer.setSendTimeAlignSignals(true); fChartViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); fChartViewer.getSwtChart().addMouseListener(new MouseAdapter() { @Override public void mouseDoubleClick(MouseEvent e) { super.mouseDoubleClick(e); resetStartFinishTime(); } }); fChartViewer.getControl().addPaintListener(new PaintListener() { @Override public void paintControl(PaintEvent e) { if (fSashDragListener == null) { for (Control control : fSashForm.getChildren()) { if (control instanceof Sash) { fSashDragListener = new Listener() { @Override public void handleEvent(Event event) { TmfSignalManager.dispatchSignal(new TmfTimeViewAlignmentSignal(fSashForm, getTimeViewAlignmentInfo())); } }; control.removePaintListener(this); control.addListener(SWT.Selection, fSashDragListener); break; } } } } }); fSashForm.setWeights(DEFAULT_WEIGHTS); getViewSite().getActionBars().getToolBarManager().appendToGroup(IWorkbenchActionConstants.MB_ADDITIONS, fResetScaleAction); ITmfTrace trace = TmfTraceManager.getInstance().getActiveTrace(); if (trace != null) { loadTrace(); } IStatusLineManager statusLineManager = getViewSite().getActionBars().getStatusLineManager(); fChartViewer.setStatusLineManager(statusLineManager); fOriginalTabLabel = getPartName(); }