@Override protected Control createDialogArea(Composite parent) { Composite composite= (Composite) super.createDialogArea(parent); Control includeMask= createIncludeMask(composite); includeMask.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false)); return composite; }
@Override protected void configureShell(Shell newShell) { super.configureShell(newShell); newShell.setText(Messages.ArgumentsFromContainerSelectionDialog_0); }
@Override public boolean close() { return super.close(); }
@Override protected void okPressed() { fConfigurationBlock.performOk(); super.okPressed(); } }
@Override protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.OK_ID) { value= text.getText(); } else { value= null; } super.buttonPressed(buttonId); } /* (non-Javadoc)
/** * {@inheritDoc} */ public void create() { super.create(); getButton(OK).setEnabled(!fHistory.isEmpty()); }
protected Point getInitialSize() { Point initialSize = super.getInitialSize(); if (hasSettings) { return initialSize; } return getDefaultSize(); }
@Override protected void okPressed() { updateValues(); super.okPressed(); }
protected void buttonPressed( int buttonId ) { if ( buttonId == IDialogConstants.OK_ID ) { this.selectStr = cCombo.getText( ); } super.buttonPressed( buttonId ); }
@Override public void create() { super.create(); getButton(OK).setEnabled(!fHistory.isEmpty()); }
@Override protected Point getInitialSize() { Point initialSize = super.getInitialSize(); if (hasSettings) { return initialSize; } return getDefaultSize(); }
@Override protected Control createDialogArea(Composite parent) { Composite composite= (Composite) super.createDialogArea(parent); Control includeMask= createIncludeMask(composite); includeMask.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false)); return composite; }
/** * Initializes the dialog shell with a title. */ protected void configureShell(Shell newShell) { super.configureShell(newShell); newShell.setText(ActionMessages.ExpressionInputDialog_2); }
@Override public boolean close() { boolean closed= super.close(); if (closed && fNewBounds != null) saveBounds(fNewBounds); return closed; }
@Override protected void okPressed() { fSelectedApplication = applicationCombo.getText(); super.okPressed(); }
protected void buttonPressed(int id) { if (id == IDialogConstants.DETAILS_ID) { // was the details button pressed? toggleDetailsArea(); } else { super.buttonPressed(id); } }
@Override public void create() { super.create(); getButton(OK).setEnabled(!fHistory.isEmpty()); }
/** * The <code>TitleAreaDialog</code> implementation of this * <code>Window</code> methods returns an initial size which is at least * some reasonable minimum. * * @return the initial size of the dialog */ protected Point getInitialSize() { Point shellSize = super.getInitialSize(); return new Point(Math.max( convertHorizontalDLUsToPixels(MIN_DIALOG_WIDTH), shellSize.x), Math.max(convertVerticalDLUsToPixels(MIN_DIALOG_HEIGHT), shellSize.y)); }
protected Control createDialogArea(Composite parent) { Composite outer = (Composite) super.createDialogArea(parent); Text text = new Text(outer, SWT.MULTI | SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.NO_FOCUS | SWT.H_SCROLL); text.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND)); GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL); gridData.grabExcessVerticalSpace = true; gridData.grabExcessHorizontalSpace = true; text.setLayoutData(gridData); text.setText(getLogSummary()); return outer; }
@Override protected void configureShell(Shell shell) { super.configureShell(shell); if (title != null) shell.setText(title); } /* (non-Javadoc)