Issue #1196 Changes for AfosIdSelectionDialog.
Change-Id: Ic25b78840899ec5bb0f00272004c683535afc992 Former-commit-id:a1e7271a63
[formerlya1e7271a63
[formerly 5e2aa722f39f38bf70331ad161d8740e84bb4af2]] Former-commit-id:5687572616
Former-commit-id:aa0a8ce32c
This commit is contained in:
parent
f34bb941c0
commit
1bce82f551
2 changed files with 21 additions and 2 deletions
|
@ -766,7 +766,14 @@ public class AWIPSHeaderBlockDlg extends CaveSWTDialog implements
|
|||
|
||||
AfosIdSelectionDialog dlg = new AfosIdSelectionDialog(
|
||||
shell, this, afosIds);
|
||||
dlg.setBlockOnOpen(true);
|
||||
dlg.setCloseCallback(new ICloseCallback() {
|
||||
|
||||
@Override
|
||||
public void dialogClosed(Object returnValue) {
|
||||
lookupAllowed = true;
|
||||
}
|
||||
});
|
||||
dlg.setBlockOnOpen(false);
|
||||
dlg.open();
|
||||
return;
|
||||
} else if (list.size() == 1) {
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.eclipse.jface.dialogs.IDialogConstants;
|
|||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.events.SelectionEvent;
|
||||
import org.eclipse.swt.events.SelectionListener;
|
||||
import org.eclipse.swt.graphics.Point;
|
||||
import org.eclipse.swt.layout.GridData;
|
||||
import org.eclipse.swt.layout.GridLayout;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
|
@ -43,6 +44,8 @@ import com.raytheon.viz.ui.dialogs.CaveJFACEDialog;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Aug 28, 2009 2924 rjpeter Initial creation.
|
||||
* Sep 20, 1010 1196 rferrel Scroll bar now displays and limit placed
|
||||
* on the height of the dialog.
|
||||
* </pre>
|
||||
*
|
||||
* @author rjpeter
|
||||
|
@ -120,7 +123,7 @@ public class AfosIdSelectionDialog extends CaveJFACEDialog {
|
|||
label.setLayoutData(data);
|
||||
|
||||
afosIdList = new List(top, SWT.SINGLE | SWT.BORDER | SWT.V_SCROLL);
|
||||
data = new GridData(SWT.BEGINNING, SWT.DEFAULT, true, false);
|
||||
data = new GridData(SWT.CENTER, SWT.FILL, false, true);
|
||||
afosIdList.setLayoutData(data);
|
||||
|
||||
for (String id : afosIds) {
|
||||
|
@ -158,4 +161,13 @@ public class AfosIdSelectionDialog extends CaveJFACEDialog {
|
|||
top.layout();
|
||||
return top;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Point getInitialSize() {
|
||||
Point point = super.getInitialSize();
|
||||
if (point.y > 500) {
|
||||
point.y = 500;
|
||||
}
|
||||
return point;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue