in uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/editor/CEVAnnotationEditorPage.java [167:233]
public void createControl(Composite parent) {
pane = new Composite(parent, SWT.NONE);
FormLayout formLayout = new FormLayout();
FormData formData;
pane.setLayout(formLayout);
createButton = new Button(pane, SWT.PUSH);
createButton.addSelectionListener(this);
createButton.setText("Create Annotations");
formData = new FormData();
formData.left = new FormAttachment(null, 5);
formData.bottom = new FormAttachment(100, -5);
createButton.setLayoutData(formData);
SashForm sashForm2 = new SashForm(pane, SWT.HORIZONTAL);
formData = new FormData();
formData.top = new FormAttachment(0, 0);
formData.left = new FormAttachment(0, 0);
formData.right = new FormAttachment(100, 0);
formData.bottom = new FormAttachment(createButton);
sashForm2.setLayoutData(formData);
SashForm sashForm = new SashForm(sashForm2, SWT.VERTICAL);
formData = new FormData();
formData.top = new FormAttachment(0, 0);
formData.left = new FormAttachment(0, 0);
formData.right = new FormAttachment(100, 0);
formData.bottom = new FormAttachment(createButton);
sashForm.setLayoutData(formData);
table = new Table(sashForm, SWT.SINGLE | SWT.BORDER);
table.addSelectionListener(this);
table.addMouseListener(this);
TableColumn tableColumn = new TableColumn(table, SWT.BORDER);
textView = new StyledText(sashForm, SWT.READ_ONLY | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
textView.addMouseListener(this);
selected = new ArrayList<String>();
types = new ArrayList<String>(Arrays.asList(getCurrentCEVData().getTypeNames()));
Collections.sort(types);
Composite typeComposite = new Composite(sashForm2, SWT.NONE);
GridLayout layout = new GridLayout();
layout.marginHeight = 0;
layout.marginWidth = 0;
layout.verticalSpacing = 0;
layout.horizontalSpacing = 0;
typeComposite.setLayout(layout);
typeComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
typeFilterText = newText(typeComposite, SWT.SINGLE, "Specify the type name");
typeFilterText.addListener(SWT.Modify, this);
typeTable = newTable(typeComposite, SWT.CHECK);
((GridData) typeTable.getLayoutData()).heightHint = 250;
((GridData) typeTable.getLayoutData()).minimumHeight = 100;
typeFilterText.addListener(SWT.CHECK, this);
displayFilteredTypes("");
sashForm.setWeights(new int[] { 1, 1 });
sashForm2.setWeights(new int[] { 2, 1 });
casDataChanged();
tableColumn.setWidth(1280);
CEVPlugin.getDefault().getPluginPreferences().addPropertyChangeListener(this);
}