*/
class ShowFindDialogAction extends Action {
- private static final int SHELL_MINIMUM_SIZE = 320;
private static TimeGraphFindDialog fDialog;
private FindTarget fFindTarget;
if (fDialog != null) {
fDialog.update(findTarget);
fDialog.open();
- fDialog.getShell().setMinimumSize(SHELL_MINIMUM_SIZE, SHELL_MINIMUM_SIZE);
}
}
// get find string
initFindStringFromSelection();
+ shell.setMinimumSize(shell.getSize());
+
// set dialog position
if (fDialogPositionInit != null) {
shell.setBounds(fDialogPositionInit);
panel.setLayout(layout);
fStatusLabel = new Label(panel, SWT.LEFT);
+ fStatusLabel.setText(Messages.TimeGraphFindDialog_StatusWrappedLabel);
setGridData(fStatusLabel, SWT.FILL, true, SWT.CENTER, false);
+ GridData gd = (GridData) fStatusLabel.getLayoutData();
+ gd.widthHint = fStatusLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
+ fStatusLabel.setText(""); //$NON-NLS-1$
Composite buttonSection = new Composite(panel, SWT.NULL);
GridLayout buttonLayout = new GridLayout();