fdlValName.left = new FormAttachment(0, 0);
fdlValName.right = new FormAttachment(middle, -margin);
fdlValName.top = new FormAttachment(wServerURLField, margin);
wlValName.setLayoutData(fdlValName);
wFilenameField = new TextVar(transMeta, shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
props.setLook(wFilenameField);
wFilenameField.addModifyListener(lsMod);
FormData fdValName = new FormData();
fdValName.left = new FormAttachment(middle, 0);
fdValName.right = new FormAttachment(100, 0);
fdValName.top = new FormAttachment(wServerURLField, margin);
wFilenameField.setLayoutData(fdValName);
// processtype value
Label wlProcessTypeName = new Label(shell, SWT.RIGHT);
wlProcessTypeName.setText(BaseMessages.getString(PKG, "FilemgrGet.ProcessType.Label"));
props.setLook(wlProcessTypeName);
FormData fdlProcessTypeName = new FormData();
fdlProcessTypeName.left = new FormAttachment(0, 0);
fdlProcessTypeName.right = new FormAttachment(middle, -margin);
fdlProcessTypeName.top = new FormAttachment(wFilenameField, margin);
wlProcessTypeName.setLayoutData(fdlProcessTypeName);
Composite composite = new Composite(shell, SWT.NULL);
composite.setLayout(new RowLayout());
radioButtons2[0] = new Button(composite, SWT.RADIO);
radioButtons2[0].setSelection(true);
radioButtons2[0].setText("List Products");
radioButtons2[0].pack();
radioButtons2[1] = new Button(composite, SWT.RADIO);
radioButtons2[1].setSelection(false);
radioButtons2[1].setText("Get Product");
radioButtons2[1].pack();
props.setLook(radioButtons2[0]);
props.setLook(radioButtons2[1]);
//wFilenameField.addModifyListener(lsMod);
FormData fdProcessTypeName = new FormData();
fdProcessTypeName.left = new FormAttachment(middle, 0);
fdProcessTypeName.right = new FormAttachment(100, 0);
fdProcessTypeName.top = new FormAttachment(wFilenameField, margin);
composite.setLayoutData(fdProcessTypeName);
// search type value
Label wlSearchName = new Label(shell, SWT.RIGHT);
wlSearchName.setText(BaseMessages.getString(PKG, "FilemgrGet.SearchType.Label"));
props.setLook(wlSearchName);
FormData fdlSearchName = new FormData();
fdlSearchName.left = new FormAttachment(0, 0);
fdlSearchName.right = new FormAttachment(middle, -margin);
fdlSearchName.top = new FormAttachment(composite, margin);
wlSearchName.setLayoutData(fdlSearchName);
Composite composite1 = new Composite(shell, SWT.NULL);
composite1.setLayout(new RowLayout());
radioButtons[0] = new Button(composite1, SWT.RADIO);
radioButtons[0].setSelection(true);
radioButtons[0].setText("Name");
radioButtons[0].pack();
radioButtons[1] = new Button(composite1, SWT.RADIO);
radioButtons[1].setSelection(false);
radioButtons[1].setText("ID");
radioButtons[1].pack();
props.setLook(radioButtons[0]);
props.setLook(radioButtons[1]);
radioButtons[0].addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
selectedsearch = Search.NAME;
}
});
radioButtons[1].addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
selectedsearch = Search.ID;
}
});
FormData fdSearchName = new FormData();
fdSearchName.left = new FormAttachment(middle, 0);
fdSearchName.right = new FormAttachment(100, 0);
fdSearchName.top = new FormAttachment(composite, margin);
composite1.setLayoutData(fdSearchName);
if(meta.getProcessType()==Process.LIST){
radioButtons[0].setEnabled(false);
radioButtons[1].setEnabled(false);
}
// servername field value
Label wlResultName = new Label(shell, SWT.RIGHT);
wlResultName.setText(BaseMessages.getString(PKG, "FilemgrGet.Result.Label"));
props.setLook(wlResultName);
FormData fdlResultName = new FormData();
fdlResultName.left = new FormAttachment(0, 0);
fdlResultName.right = new FormAttachment(middle, -margin);
fdlResultName.top = new FormAttachment(composite1, margin);
wlResultName.setLayoutData(fdlResultName);
wResultField = new TextVar(transMeta, shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
props.setLook(wResultField);
wResultField.addModifyListener(lsMod);
FormData fdResultName = new FormData();
fdResultName.left = new FormAttachment(middle, 0);
fdResultName.right = new FormAttachment(100, 0);