use of org.talend.designer.runtime.visualization.internal.ui.properties.cpu.PackageLabelProvider in project tdi-studio-se by Talend.
the class ConfigurationDialog method createPackagesViewer.
/**
* Creates the packages viewer.
*
* @param parent The parent composite
*/
private void createPackagesViewer(Composite parent) {
Composite composite = new Composite(parent, SWT.NONE);
composite.setLayout(new GridLayout(2, false));
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
Label label = new Label(composite, SWT.NONE);
label.setText(Messages.profiledPackagesLabel);
GridData gridData = new GridData();
gridData.horizontalSpan = 2;
label.setLayoutData(gridData);
packagesViewer = new TableViewer(composite, SWT.BORDER | SWT.MULTI);
packagesViewer.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));
packagesViewer.setContentProvider(new ArrayContentProvider());
packagesViewer.setLabelProvider(new PackageLabelProvider());
packagesViewer.setInput(packages.toArray(new String[packages.size()]));
createAddRemoveButtons(composite);
}
Aggregations