// ------------------------------------------------------------------------
// Attributes
// ------------------------------------------------------------------------
- /**
- * The dialog composite.
- */
- private Composite fDialogComposite = null;
/**
* The radio button for selecting the overwrite action
*/
*/
public ImportConfirmationDialog(Shell shell) {
super(shell);
- setShellStyle(SWT.RESIZE);
+ setShellStyle(SWT.RESIZE | getShellStyle());
}
// ------------------------------------------------------------------------
protected Control createDialogArea(Composite parent) {
// Main dialog panel
- fDialogComposite = new Composite(parent, SWT.NONE);
+ Composite dialogComposite = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout(1, true);
- fDialogComposite.setLayout(layout);
- fDialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
+ dialogComposite.setLayout(layout);
+ dialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
- Label sessionNameLabel = new Label(fDialogComposite, SWT.RIGHT);
+ Label sessionNameLabel = new Label(dialogComposite, SWT.RIGHT);
sessionNameLabel.setText(Messages.TraceControl_ImportDialogTraceAlreadyExistError + ": " + fTraceName); //$NON-NLS-1$
- fOverwriteButton = new Button(fDialogComposite, SWT.RADIO);
+ fOverwriteButton = new Button(dialogComposite, SWT.RADIO);
fOverwriteButton.setText(Messages.TraceControl_ImportDialogConfirmationOverwriteLabel);
fOverwriteButton.addSelectionListener(new SelectionAdapter() {
}
});
- fRenameButton = new Button(fDialogComposite, SWT.RADIO);
+ fRenameButton = new Button(dialogComposite, SWT.RADIO);
fRenameButton.setText(Messages.TraceControl_ImportDialogConfirmationRenameLabel);
fRenameButton.addSelectionListener(new SelectionAdapter() {
}
});
- fNewTraceNameText = new Text(fDialogComposite, SWT.NONE);
+ fNewTraceNameText = new Text(dialogComposite, SWT.NONE);
fNewTraceNameText.setToolTipText(Messages.TraceControl_ImportDialogConfirmationNewNameLabel);
fNewTraceNameText.setText(fTraceName);
getShell().setMinimumSize(new Point(300, 150));
- return fDialogComposite;
+ return dialogComposite;
}
@Override