use of org.eclipse.swt.custom.SashForm in project yamcs-studio by yamcs.
the class AlphaNumericEditor method createPartControl.
@Override
public void createPartControl(Composite parent) {
FillLayout fl = new FillLayout();
fl.marginHeight = 0;
fl.marginWidth = 0;
parent.setLayout(fl);
SashForm sash = new SashForm(parent, SWT.VERTICAL);
Composite tableWrapper = new Composite(sash, SWT.NONE);
tableWrapper.setLayoutData(new GridData(GridData.FILL_BOTH));
parameterTable = new ParameterTableViewer(tableWrapper);
ParameterContentProvider provider = (ParameterContentProvider) parameterTable.getContentProvider();
provider.load(loadData());
for (ParameterInfo info : loadData()) parameterTable.addParameter(info);
parameterTable.refresh();
}
Aggregations