}
@Override
protected Control buildControl(Composite composite) {
Composite control = new Composite(composite, SWT.NONE);
control.setLayout(new RowLayout(SWT.VERTICAL));
//region Description
Link text = new Link(control, SWT.HORIZONTAL | SWT.WRAP);
text.setLayoutData(new RowData(400, 110));
text.setText(Messages.Wizard_CS_Description);
text.addListener (SWT.Selection, new Listener () {
public void handleEvent(Event event) {
Program.launch(Messages.Wizard_CS_UrlTileNames);
}
});
//endregion
//region URL
Label lblUrl = new Label (control, SWT.HORIZONTAL | SWT.BOLD);
lblUrl.setText(Messages.Wizard_CS_Url);
Font boldFont = JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT);
lblUrl.setFont(boldFont);
txtUrl = new Text (control, SWT.BORDER);
txtUrl.setLayoutData(new RowData(380, 20));
txtUrl.setText(Messages.Wizard_CS_UrlDefault);
//endregion
// type
typeButton = new Button(control, SWT.CHECK);
typeButton.setLayoutData(new RowData(380, 20));
typeButton.setText("Handle as TMS as opposed to Google tile schema.");
// end type
//region Zoom-Range
Composite compositeRow = new Composite(control, SWT.NONE);
compositeRow.setLayout(new RowLayout(SWT.HORIZONTAL));
Composite compositeZoom = new Composite(compositeRow, SWT.NONE);
compositeZoom.setLayout(new RowLayout(SWT.VERTICAL));
compositeZoom.setLayoutData(new RowData(200, 100));
Label lblZoom = new Label (compositeZoom, SWT.HORIZONTAL | SWT.BOLD);
lblZoom.setText(Messages.Wizard_CS_ZoomLevel);
lblZoom.setFont(boldFont);
//region Zoom-Min
Composite compositeRowZoom = new Composite(compositeZoom, SWT.NONE);
compositeRowZoom.setLayout(new GridLayout(2, true));
Label lblZoomMin = new Label (compositeRowZoom, SWT.HORIZONTAL | SWT.BOLD);
lblZoomMin.setText(Messages.Wizard_CS_Min);
spZoomMin = new Spinner (compositeRowZoom, SWT.BORDER | SWT.READ_ONLY);
spZoomMin.setMinimum(0);
spZoomMin.setMaximum(22);
spZoomMin.setSelection(2);
spZoomMin.setIncrement(1);
spZoomMin.pack();
//endregion
//region Zoom-Max
Label lblZoomMax = new Label (compositeRowZoom, SWT.HORIZONTAL | SWT.BOLD);
lblZoomMax.setText(Messages.Wizard_CS_Max);
spZoomMax = new Spinner (compositeRowZoom, SWT.BORDER | SWT.READ_ONLY);
spZoomMax.setMinimum(0);
spZoomMax.setMaximum(22);
spZoomMax.setSelection(18);
spZoomMax.setIncrement(1);
spZoomMax.pack();
//endregion
//endregion
//region Tags
Composite compositeTags = new Composite(compositeRow, SWT.NONE);
compositeTags.setLayout(new RowLayout(SWT.VERTICAL));
Label lblTags = new Label (compositeTags, SWT.HORIZONTAL | SWT.BOLD);
lblTags.setText(Messages.Wizard_CS_AvailableTags);
lblTags.setFont(boldFont);