gridData = new GridData(SWT.FILL, SWT.CENTER, true, false);
gridData.widthHint= 0;
gridData.heightHint= SWT.DEFAULT;
gridData.horizontalSpan= 1;
txtGroup.setLayoutData(gridData);
txtGroupCompleteField = new AutoCompleteField(txtGroup, new TextContentAdapter(), new String[] {});
txtGroupCompleteField.setProposals( reviewGroupNameList.toArray(new String[reviewGroupNameList.size()]) );
txtGroup.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
List<String> proposalTmp = getNewListForProposal( reviewGroupNameList, txtGroup.getText() );
txtGroupCompleteField.setProposals( proposalTmp.toArray(new String[proposalTmp.size()]) );
}
});
Label lblBranch = new Label(groupAttribute, SWT.NONE);
lblBranch.setText(RbSubclipseMessages.getString("PAGE_BRANCHES"));
textBranch = new Text(groupAttribute, SWT.BORDER);
gridData = new GridData(SWT.FILL, SWT.CENTER, true, false);
gridData.widthHint= 0;
gridData.heightHint= SWT.DEFAULT;
gridData.horizontalSpan= 1;
textBranch.setLayoutData(gridData);
textBranch.setEnabled(false);
Label lblPeople = new Label(groupAttribute, SWT.NONE);
lblPeople.setText(RbSubclipseMessages.getString("PAGE_REVIEWPEOPLES"));
txtPeople = new Text(groupAttribute, SWT.BORDER);
gridData = new GridData(SWT.FILL, SWT.CENTER, true, false);
gridData.widthHint= 0;
gridData.heightHint= SWT.DEFAULT;
gridData.horizontalSpan= 1;
txtPeople.setLayoutData(gridData);
txtPeopleCompleteField = new AutoCompleteField(txtPeople, new TextContentAdapter(), new String[] {});
txtPeopleCompleteField.setProposals( userNameList.toArray(new String[userNameList.size()]) );
txtPeople.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
List<String> proposalTmp = getNewListForProposal( userNameList, txtPeople.getText() );
txtPeopleCompleteField.setProposals( proposalTmp.toArray(new String[proposalTmp.size()]) );