sourceTableStack = new Composite(composite, SWT.NONE);
sourceTableStack.setLayout(sourceTableStackLayout);
sourceTableStack.setLayoutData(tableGridLayout);
CLabel sourceTablesLabel = new CLabel(composite, SWT.SHADOW_ETCHED_IN);
sourceTablesLabel.setBackground(labelColor, new int[] { 100 });
sourceTablesLabel.setFont(new Font(null, "Tahoma", 8, SWT.BOLD));
sourceTablesLabel.setText("Source tables");
sourceTablesLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false, 1, 1));
sourceFileList = new List(composite, SWT.BORDER | SWT.SIMPLE | SWT.H_SCROLL | SWT.V_SCROLL);
sourceFileList.setToolTipText("Select which table you want to edit");
sourceFileList.setLayoutData(fileListLayoutData);
sourceFileList.addSelectionListener(sourceFileListSelectionListener);
sourceFileList.add("Resource needs", 0);
sourceFileList.add("Atomic jobs", 1);
sourceFileList.add("Resources", 2);
sourceFileList.add("Traffic periods", 3);
sourceFileList.add("Places", 4);
sourceFileList.add("Permissions", 5);
sourceFileList.add("Shifts", 6);
sourceFileList.add("Travellings", 7);
sourceFileList.add("Starting state", 8);
sourceFileList.setSelection(0);
CLabel algGroupLabel = new CLabel(composite, SWT.SHADOW_ETCHED_IN);
algGroupLabel.setBackground(labelColor, new int[] { 100 });
algGroupLabel.setFont(new Font(null, "Tahoma", 8, SWT.BOLD));
algGroupLabel.setText("Algorithms");
algGroupLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 1, 1));
algSelector = new Combo(composite, SWT.SIMPLE | SWT.DROP_DOWN | SWT.READ_ONLY);
algSelector.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 1, 1));
algSelector.setEnabled(false);
algSelector.addListener(SWT.Selection, algSelectorListener);
for (int i = 0; i < ResourceAllocation.algorithms.length; i++) {
algSelector.add(ResourceAllocation.algorithms[i]);
}
CLabel optionsLabel = new CLabel(composite, SWT.SHADOW_ETCHED_IN);
optionsLabel.setBackground(labelColor, new int[] { 100 });
optionsLabel.setFont(new Font(null, "Tahoma", 8, SWT.BOLD));
optionsLabel.setText("Parameters");
optionsLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 1, 1));
optionsGroup = new Group(composite, SWT.NONE);
optionsGroup.setLayout(new GridLayout(8, false));
optionsGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
optionsGroup.setToolTipText("Possible modifiers for selected algorithm.");