// Stepname line
wlStepname = new Label(shell, SWT.RIGHT);
wlStepname.setText(BaseMessages.getString(PKG, "System.Label.StepName"));
props.setLook(wlStepname);
fdlStepname = new FormData();
fdlStepname.left = new FormAttachment(0, 0);
fdlStepname.right = new FormAttachment(middle, -margin);
fdlStepname.top = new FormAttachment(0, margin);
wlStepname.setLayoutData(fdlStepname);
wStepname = new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
wStepname.setText(stepname);
props.setLook(wStepname);
wStepname.addModifyListener(lsMod);
fdStepname = new FormData();
fdStepname.left = new FormAttachment(middle, 0);
fdStepname.top = new FormAttachment(0, margin);
fdStepname.right = new FormAttachment(100, 0);
wStepname.setLayoutData(fdStepname);
SashForm wSash = new SashForm(shell, SWT.VERTICAL);
props.setLook(wSash);
/*------------------------------------------------------------------------------------------------------------------------------------------------
* Upper part of form
------------------------------------------------------------------------------------------------------------------------------------------------*/
// top part
wTop = new SashForm(wSash, SWT.HORIZONTAL);
FormLayout topLayout = new FormLayout();
topLayout.marginWidth = Const.FORM_MARGIN;
topLayout.marginHeight = Const.FORM_MARGIN;
wTop.setLayout(topLayout);
props.setLook(wTop);
addLeftArea();
addScriptArea();
FormData fdTop = new FormData();
fdTop.left = new FormAttachment(0, 0);
fdTop.top = new FormAttachment(0, 0);
fdTop.right = new FormAttachment(100, 0);
fdTop.bottom = new FormAttachment(100, 0);
wTop.setLayoutData(fdTop);
wTop.SASH_WIDTH = margin;
wTop.setWeights(new int[] { 32, 68 });
/*------------------------------------------------------------------------------------------------------------------------------------------------
* Bottom part of form
------------------------------------------------------------------------------------------------------------------------------------------------*/
Composite wBottom = new Composite(wSash, SWT.NONE);
props.setLook(wBottom);
FormLayout bottomLayout = new FormLayout();
bottomLayout.marginWidth = Const.FORM_MARGIN;
bottomLayout.marginHeight = Const.FORM_MARGIN;
wBottom.setLayout(bottomLayout);
// separator
wSeparator = new Label(wBottom, SWT.SEPARATOR | SWT.HORIZONTAL);
FormData fdSeparator = new FormData();
fdSeparator.left = new FormAttachment(0, 0);
fdSeparator.right = new FormAttachment(100, 0);
fdSeparator.top = new FormAttachment(0, -margin);
wSeparator.setLayoutData(fdSeparator);
props.setLook(wSeparator);
// bottom tab folder
wBottomFolder = new CTabFolder(wBottom, SWT.BORDER | SWT.RESIZE);
wBottomFolder.setSimple(false);
wBottomFolder.setUnselectedImageVisible(true);
wBottomFolder.setUnselectedCloseVisible(false);
wBottomFolder.setMaximizeVisible(false);
wBottomFolder.setMinimizeVisible(false);
props.setLook(wBottomFolder);
addOutputFieldsTab();
prevStepNames = transMeta.getPrevStepNames(stepMeta);
addInfoStepsTab();
nextStepNames = transMeta.getNextStepNames(stepMeta);
addTargetStepsTab();
addScopeVariablesTab();
addRuntimeTab();
// set selected item in tab
wBottomFolder.setSelection(0);
// layout tab folder below the label
FormData fdBottomFolder = new FormData();
fdBottomFolder.left = new FormAttachment(0, 0);
fdBottomFolder.top = new FormAttachment(wSeparator, margin);
fdBottomFolder.right = new FormAttachment(100, 0);
fdBottomFolder.bottom = new FormAttachment(100, 0);
wBottomFolder.setLayoutData(fdBottomFolder);
FormData fdBottom = new FormData();
fdBottom.left = new FormAttachment(0, 0);
fdBottom.top = new FormAttachment(0, 0);
fdBottom.right = new FormAttachment(100, 0);
fdBottom.bottom = new FormAttachment(100, 0);
wBottom.setLayoutData(fdBottom);
/*------------------------------------------------------------------------------------------------------------------------------------------------
* Wrapping up form
------------------------------------------------------------------------------------------------------------------------------------------------*/
FormData fdSash = new FormData();
fdSash.left = new FormAttachment(0, 0);
fdSash.top = new FormAttachment(wStepname, margin);
fdSash.right = new FormAttachment(100, 0);
fdSash.bottom = new FormAttachment(100, -50);
wSash.setLayoutData(fdSash);