}
}
// Richiama la dialog per l'acquisizione delle informazioni
ShowInFormDialog showInFormDialog = new ShowInFormDialog(null, Utils.getIntegerValue(annotationCode, "order").toString(), getImplementationType(annotationCode), Utils.getBooleanValue(annotationCode, "required"), Utils.getBooleanValue(annotationCode, "help"));
showInFormDialog.pack();
showInFormDialog.setLocationRelativeTo(null);
showInFormDialog.setVisible(true);
String order = showInFormDialog.getOrder();
String implementationType = showInFormDialog.getType();
if (order == null)
return;
IType type = compilationUnit.getTypes()[0];
//Rimuove il campo esistente
type.getField(field.getElementName()).delete(true, null);
if (implementationType.contains("TEXTAREA"))
{
newFieldSourceCode += "\r\n\r\n@ShowInForm(order=" + order + ",type=" + implementationType + ", rows=" + showInFormDialog.getRows() + ", columns=" + showInFormDialog.getColumns();
}
else
{
newFieldSourceCode += "\r\n\r\n@ShowInForm(order=" + order + ",type=" + implementationType;
}
if (showInFormDialog.getRequired())
{
newFieldSourceCode += ", required=true";
}
if (showInFormDialog.getHelp())
{
newFieldSourceCode += ", help=true";
}
newFieldSourceCode += ")\r\n";