TypeDescription td = getTypeDescriptionFromTableTreeItem(parent);
// guaranteed non-null - otherwise add button disabled
TypeDescription localTd = getLocalTypeDefinition(td);
//
AddFeatureDialog dialog = new AddFeatureDialog(this, td, null);
if (dialog.open() == Window.CANCEL) {
return;
}
FeatureDescription fd = localTd.addFeature(null, null, null);
featureUpdate(fd, dialog);