/** * Set the title of the page's page to the given text. The title * will appear in the header of the pane containing the page. * @param title the page's title */ protected void setPageDescription(String title) { fEditionPane.setText(title); }
/** * Set the title of the page's page to the given text. The title * will appear in the header of the pane containing the page. * @param title the page's title */ protected void setPageDescription(String title) { fEditionPane.setText(title); }
/** * Set the title of the page's page to the given text. The title * will appear in the header of the pane containing the page. * @param title the page's title */ protected void setPageDescription(String title) { pagePane.setText(title); }
/** * Set the title of the page's page to the given text. The title * will appear in the header of the pane containing the page. * @param title the page's title */ protected void setPageDescription(String title) { pagePane.setText(title); }
private void handleMemberSelect(Widget w) { Object data= w.getData(); if (data instanceof List) { List editions= (List) data; if (editions != fCurrentEditions) { fCurrentEditions= editions; fEditionTree.removeAll(); String pattern= Utilities.getString(fBundle, "treeTitleFormat"); //$NON-NLS-1$ String title= MessageFormat.format(pattern, new Object[] { ((Item)w).getText() }); fEditionPane.setText(title); Iterator iter= editions.iterator(); while (iter.hasNext()) { Object item= iter.next(); if (item instanceof Pair) addEdition((Pair) item); } } } }
private void handleMemberSelect(Widget w) { Object data= w.getData(); if (data instanceof List) { @SuppressWarnings("unchecked") List<Object> editions= (List<Object>) data; if (editions != fCurrentEditions) { fCurrentEditions= editions; fEditionTree.removeAll(); String pattern= Utilities.getString(fBundle, "treeTitleFormat"); //$NON-NLS-1$ String title= MessageFormat.format(pattern, new Object[] { ((Item)w).getText() }); fEditionPane.setText(title); Iterator<Object> iter= editions.iterator(); while (iter.hasNext()) { Object item= iter.next(); if (item instanceof Pair) addEdition((Pair) item); } } } }
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; }
String title= MessageFormat.format(format, root.getName()); fMemberPane.setImage(CompareUI.getImage(root)); fMemberPane.setText(title);
fEditionPane.setText(TeamUIMessages.ParticipantPageSaveablePart_0); fContentPane = new CompareViewerSwitchingPane(vsplitter, SWT.BORDER | SWT.FLAT) { protected Viewer getViewer(Viewer oldViewer, Object input) {
String title= MessageFormat.format(format, new Object[] { root.getName() }); fMemberPane.setImage(CompareUI.getImage(root)); fMemberPane.setText(title);
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.setText(TeamUIMessages.ParticipantPageSaveablePart_0); //
fEditionPane.setText(TeamUIMessages.ParticipantPageSaveablePart_0); fContentPane = new CompareViewerSwitchingPane(vsplitter, SWT.BORDER | SWT.FLAT) { @Override
fHistoryPane= new CompareViewerPane(leftPane, SWT.BORDER | SWT.FLAT); fHistoryPane.setTopLeft(new RefactoringHistoryLabel(fHistoryPane, SWT.NONE)); fHistoryPane.setText(getHistoryPaneText()); fHistoryPane.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL)); fHistoryViewer= createHistoryViewer(fHistoryPane);
fMemberPane.setText(Utilities.getString(fBundle, "memberPaneTitle")); //$NON-NLS-1$ String titleFormat= Utilities.getString(fBundle, "treeTitleFormat"); //$NON-NLS-1$ String title= MessageFormat.format(titleFormat, fTitleArg ); fEditionPane.setText(title); if (fTitleImage != null) fEditionPane.setImage(fTitleImage);
fMemberPane.setText(Utilities.getString(fBundle, "memberPaneTitle")); //$NON-NLS-1$ String titleFormat= Utilities.getString(fBundle, "treeTitleFormat"); //$NON-NLS-1$ String title= MessageFormat.format(titleFormat, new String[] { fTitleArg }); fEditionPane.setText(title); if (fTitleImage != null) fEditionPane.setImage(fTitleImage);
private void handleMemberSelect(Widget w) { Object data= null; if (w != null) data= w.getData(); if (data instanceof FileHistory) { FileHistory h= (FileHistory) data; fCurrentFileHistory= h; IFile file= h.getFile(); IFileState[] states= h.getStates(); fEditionPane.setImage(CompareUI.getImage(file)); String pattern= Utilities.getString(fBundle, "treeTitleFormat"); //$NON-NLS-1$ String title= MessageFormat.format(pattern, new Object[] { file.getName() }); fEditionPane.setText(title); if (fEditionTree != null) { fEditionTree.setRedraw(false); fEditionTree.removeAll(); for (int i= 0; i < states.length; i++) { addEdition(new HistoryInput(file, states[i]), h.isSelected(i)); } fEditionTree.setRedraw(true); } } else fCurrentFileHistory= null; }
private void handleMemberSelect(Widget w) { Object data= null; if (w != null) data= w.getData(); if (data instanceof FileHistory) { FileHistory h= (FileHistory) data; fCurrentFileHistory= h; IFile file= h.getFile(); IFileState[] states= h.getStates(); fEditionPane.setImage(CompareUI.getImage(file)); String pattern= Utilities.getString(fBundle, "treeTitleFormat"); //$NON-NLS-1$ String title= MessageFormat.format(pattern, file.getName()); fEditionPane.setText(title); if (fEditionTree != null) { fEditionTree.setRedraw(false); fEditionTree.removeAll(); for (int i= 0; i < states.length; i++) { addEdition(new HistoryInput(file, states[i]), h.isSelected(i)); } fEditionTree.setRedraw(true); } } else fCurrentFileHistory= null; }