_container.setLayout(layout);
Label label = new Label(_container, SWT.NONE);
label.setText("Local runtime:");
_lblLocalRuntime = new Label(_container, SWT.NONE);
_lblLocalRuntime.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
label = new Label(_container, SWT.NONE);
label.setText("Local web application:");
_lblWebApplication = new Label(_container, SWT.NONE);
_lblWebApplication.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
label = new Label(_container, SWT.NONE);
label.setText("Remote location:");
_lblRemoteLocation = new Label(_container, SWT.NONE);
_lblRemoteLocation.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
label = new Label(_container, SWT.NONE);
label.setText("Remote database server:");
_lblRemoteDatabaseServer = new Label(_container, SWT.NONE);
_lblRemoteDatabaseServer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
label = new Label(_container, SWT.NONE);
label.setText("Remote database name:");
_lblRemoteDatabaseName = new Label(_container, SWT.NONE);
_lblRemoteDatabaseName.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
label = new Label(_container, SWT.NONE);
GridData chkGridData = new GridData(GridData.FILL_HORIZONTAL);
_chkCopyLocalContent = new Button(_container, SWT.CHECK);
_chkCopyLocalContent.setText("copy local content");
_chkCopyLocalContent.setLayoutData(chkGridData);
_chkCopyLocalContent.setEnabled(false);
label = new Label(_container, SWT.NONE);
_chkIncludeACL = new Button(_container, SWT.CHECK);
_chkIncludeACL.setText("include ACL on content copy");
_chkIncludeACL.setLayoutData(GridDataFactory.copyData(chkGridData));
_chkIncludeACL.setEnabled(false);
_multiTaskStatusControl = new MultiTaskStatusControl(_container, SWT.NONE);
_multiTaskStatusControl.setLayoutData(new GridData(GridData.FILL_BOTH));
_taskStatusMap = new LinkedHashMap<String, TaskStatus>();
_taskStatusMap.put(DBNAME_TASK, new TaskStatus("Name for new database is available on database server"));
_taskStatusMap.put(DESIGN_TASK,new TaskStatus("WebTML design"));
_taskStatusMap.put(PLUGINS_TASK,new TaskStatus("Plugin status:"));
List<TaskStatus> statusList = new ArrayList<TaskStatus>();
statusList.addAll(_taskStatusMap.values());
_multiTaskStatusControl.init(statusList);
_multiTaskStatusControl.getRefreshButton().addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
performCheck();
}
public void widgetDefaultSelected(SelectionEvent e) {
}
});
GridData statusLayoutData = new GridData(GridData.FILL_BOTH);
statusLayoutData.horizontalSpan = 2;
_multiTaskStatusControl.setLayoutData(statusLayoutData);
setControl(_container);
}