in plugins/org.apache.karaf.eik.workbench/src/main/java/org/apache/karaf/eik/workbench/ui/editor/KarafPlatformGeneralFormPage.java [178:221]
private void createKarafPlatformDetailsSection(final IManagedForm managedForm, final Composite parent) {
final Section section = managedForm.getToolkit().createSection(
parent,
Section.TITLE_BAR
| Section.EXPANDED);
section.setText("Installation Details");
GridData data = new GridData(GridData.FILL_HORIZONTAL);
section.setLayout(new GridLayout(1, true));
section.setLayoutData(data);
data = new GridData(GridData.FILL_HORIZONTAL);
final Composite sectionClient = managedForm.getToolkit().createComposite(section);
sectionClient.setLayout(new GridLayout(2, true));
sectionClient.setLayoutData(data);
section.setClient(sectionClient);
managedForm.getToolkit().createLabel(sectionClient, "Name");
final String name = editor.getPlatformDetails().getName();
platformName = managedForm.getToolkit().createText(sectionClient, name, SWT.BORDER);
data = new GridData(GridData.FILL_HORIZONTAL);
platformName.setLayoutData(data);
platformName.setEnabled(false);
managedForm.getToolkit().createLabel(sectionClient, "Version");
final String version = editor.getPlatformDetails().getVersion();
platformVersion = managedForm.getToolkit().createText(sectionClient, version, SWT.BORDER);
data = new GridData(GridData.FILL_HORIZONTAL);
platformVersion.setLayoutData(data);
platformVersion.setEnabled(false);
managedForm.getToolkit().createLabel(sectionClient, "Description");
final String description = editor.getPlatformDetails().getDescription();
platformDescription = managedForm.getToolkit().createText(sectionClient, description, SWT.BORDER);
data = new GridData(GridData.FILL_HORIZONTAL);
platformDescription.setLayoutData(data);
platformDescription.setEnabled(false);
}