protected Label createMessageArea(Composite parent) { Composite composite= new Composite(parent, SWT.NONE); GridLayout layout= new GridLayout(); layout.marginHeight= 0; layout.marginWidth= 0; layout.horizontalSpacing= 5; layout.numColumns= 2; composite.setLayout(layout); GridData data= new GridData(GridData.HORIZONTAL_ALIGN_FILL); composite.setLayoutData(data); Label messageLabel= super.createMessageArea(composite); fPageInfoLabel= new Label(composite, SWT.NULL); fPageInfoLabel.setText(getPageInfoMessage()); data= new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalAlignment= GridData.END; fPageInfoLabel.setLayoutData(data); applyDialogFont(messageLabel); return messageLabel; }
@Override protected Label createMessageArea(Composite parent) { Composite composite= new Composite(parent, SWT.NONE); GridLayout layout= new GridLayout(); layout.marginHeight= 0; layout.marginWidth= 0; layout.horizontalSpacing= 5; layout.numColumns= 2; composite.setLayout(layout); GridData data= new GridData(GridData.HORIZONTAL_ALIGN_FILL); composite.setLayoutData(data); Label messageLabel= super.createMessageArea(composite); fPageInfoLabel= new Label(composite, SWT.NULL); fPageInfoLabel.setText(getPageInfoMessage()); data= new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalAlignment= GridData.END; fPageInfoLabel.setLayoutData(data); applyDialogFont(messageLabel); return messageLabel; }
@Override protected Label createMessageArea(Composite parent) { Composite composite= new Composite(parent, SWT.NONE); GridLayout layout= new GridLayout(); layout.marginHeight= 0; layout.marginWidth= 0; layout.horizontalSpacing= 5; layout.numColumns= 2; composite.setLayout(layout); GridData data= new GridData(GridData.HORIZONTAL_ALIGN_FILL); composite.setLayoutData(data); Label messageLabel= super.createMessageArea(composite); fPageInfoLabel= new Label(composite, SWT.NULL); fPageInfoLabel.setText(getPageInfoMessage()); data= new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalAlignment= GridData.END; fPageInfoLabel.setLayoutData(data); applyDialogFont(messageLabel); return messageLabel; }
private void turnPage(boolean toNextPage) { Page page= fPages[fCurrentPage]; // store filter String filter= getFilter(); if (filter == null) filter= ""; //$NON-NLS-1$ page.filter= filter; // store selection Object[] selectedElements= getSelectedElements(); List<Object[]> list= getInitialElementSelections(); list.set(fCurrentPage, selectedElements); // store result setResult(fCurrentPage, selectedElements); if (toNextPage) { if (fCurrentPage + 1 >= fNumberOfPages) return; fCurrentPage++; } else { if (fCurrentPage - 1 < 0) return; fCurrentPage--; } if (fPageInfoLabel != null && !fPageInfoLabel.isDisposed()) fPageInfoLabel.setText(getPageInfoMessage()); setPageData(); validateCurrentSelection(); }
fPageInfoLabel.setText(getPageInfoMessage());
private void turnPage(boolean toNextPage, boolean skipSelection) { Page page= fPages[fCurrentPage]; // store filter String filter= getFilter(); if (filter == null) filter= ""; //$NON-NLS-1$ page.filter= filter; if (skipSelection) { setSelection(null); } // store selection Object[] selectedElements= getSelectedElements(); List<Object[]> list= getInitialElementSelections(); list.set(fCurrentPage, selectedElements); // store result setResult(fCurrentPage, selectedElements); if (toNextPage) { if (fCurrentPage + 1 >= fNumberOfPages) return; fCurrentPage++; } else { if (fCurrentPage - 1 < 0) return; fCurrentPage--; } if (fPageInfoLabel != null && !fPageInfoLabel.isDisposed()) fPageInfoLabel.setText(getPageInfoMessage()); setPageData(); validateCurrentSelection(); }