if (index == 0) {
OpenTypeSelectionDialog2 dialog = getDialog(NewElementWizardPage.INTERFACES,
"Interface selection",
"Select interface",
true);
int result = dialog.open();
if (result != IDialogConstants.OK_ID)
return;
Object[] types = dialog.getResult();
for (Object type : types) {
field.addElement((IType) type);