protected Control createDialogArea(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); GridLayout layout = new GridLayout(); layout.numColumns = 1; composite.setLayout(layout); CompareViewerPane pane = new CompareViewerPane(composite, SWT.BORDER | SWT.FLAT); pane.setText(fTestName); GridData data = new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL); data.widthHint = convertWidthInCharsToPixels(120); data.heightHint = convertHeightInCharsToPixels(13); pane.setLayoutData(data); Control previewer = createPreviewer(pane); pane.setContent(previewer); GridData gd = new GridData(GridData.FILL_BOTH); previewer.setLayoutData(gd); applyDialogFont(parent); return composite; }
Label l1= new Label(c, SWT.NONE); l1.setText(Utilities.getString(fBundle, "memberDescription")); //$NON-NLS-1$ fMemberPane= new CompareViewerPane(c, SWT.BORDER | SWT.FLAT); GridData gd= new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL); fMemberPane.setLayoutData(gd); Label l2= new Label(c, SWT.NONE); l2.setText(Utilities.getString(fBundle, "editionDescription")); //$NON-NLS-1$ fEditionPane= new CompareViewerPane(c, SWT.BORDER | SWT.FLAT); gd= new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL); fEditionPane.setLayoutData(gd);
Label l1= new Label(c, SWT.NONE); l1.setText(Utilities.getString(fBundle, "memberDescription")); //$NON-NLS-1$ fMemberPane= new CompareViewerPane(c, SWT.BORDER | SWT.FLAT); GridData gd= new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL); fMemberPane.setLayoutData(gd); Label l2= new Label(c, SWT.NONE); l2.setText(Utilities.getString(fBundle, "editionDescription")); //$NON-NLS-1$ fEditionPane= new CompareViewerPane(c, SWT.BORDER | SWT.FLAT); gd= new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL); fEditionPane.setLayoutData(gd);
fEditionPane = new CompareViewerPane(hsplitter, SWT.BORDER | SWT.FLAT); fStructuredComparePane = new CompareViewerSwitchingPane(hsplitter, SWT.BORDER | SWT.FLAT, true) { protected Viewer getViewer(Viewer oldViewer, Object input) {
fEditionPane = new CompareViewerPane(hsplitter, SWT.BORDER | SWT.FLAT); fStructuredComparePane = new CompareViewerSwitchingPane(hsplitter, SWT.BORDER | SWT.FLAT, true) { @Override
fMemberPane= new CompareViewerPane(hsplitter, SWT.BORDER | SWT.FLAT); fMemberPane.setText(Utilities.getString(fBundle, "memberPaneTitle")); //$NON-NLS-1$ fMemberTable.setFocus(); fEditionPane= new CompareViewerPane(hsplitter, SWT.BORDER | SWT.FLAT); } else { if (fStructureCompare) { fEditionPane= new CompareViewerPane(hsplitter, SWT.BORDER | SWT.FLAT); fStructuredComparePane= new CompareViewerSwitchingPane(hsplitter, SWT.BORDER | SWT.FLAT, true) { protected Viewer getViewer(Viewer oldViewer, Object input) { } else { fEditionPane= new CompareViewerPane(vsplitter, SWT.BORDER | SWT.FLAT);
fMemberPane= new CompareViewerPane(hsplitter, SWT.BORDER | SWT.FLAT); fMemberPane.setText(Utilities.getString(fBundle, "memberPaneTitle")); //$NON-NLS-1$ fMemberTable.setFocus(); fEditionPane= new CompareViewerPane(hsplitter, SWT.BORDER | SWT.FLAT); } else { if (fStructureCompare) { fEditionPane= new CompareViewerPane(hsplitter, SWT.BORDER | SWT.FLAT); fStructuredComparePane= new CompareViewerSwitchingPane(hsplitter, SWT.BORDER | SWT.FLAT, true) { @Override } else { fEditionPane= new CompareViewerPane(vsplitter, SWT.BORDER | SWT.FLAT);
public Control createPartControl(Composite parent) { Composite top = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.verticalSpacing = 0; top.setLayout(layout); shell = parent.getShell(); fEditionPane = new CompareViewerPane(top, SWT.BORDER | SWT.FLAT); fEditionPane.setText(TeamUIMessages.ParticipantPageSaveablePart_0); fEditionPane.setLayoutData(SWTUtils.createHVFillGridData()); fPage = participant.createPage(pageConfiguration); site = new DialogSynchronizePageSite(shell, isModal); ((SynchronizePageConfiguration)pageConfiguration).setSite(site); ToolBarManager tbm = CompareViewerPane.getToolBarManager(fEditionPane); site.createActionBars(tbm); try { ((ISynchronizePage)fPage).init(pageConfiguration.getSite()); } catch (PartInitException e1) { TeamUIPlugin.log(IStatus.ERROR, TeamUIMessages.ParticipantPagePane_0, e1); } fPage.createControl(fEditionPane); fPage.setActionBars(site.getActionBars()); fEditionPane.setContent(fPage.getControl()); tbm.update(true); return top; }
fEditionPane = new CompareViewerPane(top, SWT.BORDER | SWT.FLAT);
layout.verticalSpacing= 2; leftPane.setLayout(layout); fHistoryPane= new CompareViewerPane(leftPane, SWT.BORDER | SWT.FLAT); fHistoryPane.setTopLeft(new RefactoringHistoryLabel(fHistoryPane, SWT.NONE)); fHistoryPane.setText(getHistoryPaneText());