Search in sources :

Example 1 with ComplexTypeInputDialogR

use of com.amalto.workbench.dialogs.ComplexTypeInputDialogR in project tmdm-studio-se by Talend.

the class XSDAddComplexTypeElementAction method openDialog.

private int openDialog() {
    XSDSimpleTypeDefinition simpleTypeDefinition = schema.resolveSimpleTypeDefinition(schema.getSchemaForSchemaNamespace(), defaultTypeName);
    List<XSDComplexTypeDefinition> types = Util.getComplexTypes(schema);
    dialogR = new ComplexTypeInputDialogR(page.getSite().getShell(), Messages._AddCType, modelGroup, schema, types, simpleTypeDefinition, false, false);
    dialogR.setBlockOnOpen(true);
    int ret = dialogR.open();
    return ret;
}
Also used : ComplexTypeInputDialogR(com.amalto.workbench.dialogs.ComplexTypeInputDialogR) XSDSimpleTypeDefinition(org.eclipse.xsd.XSDSimpleTypeDefinition) XSDComplexTypeDefinition(org.eclipse.xsd.XSDComplexTypeDefinition)

Aggregations

ComplexTypeInputDialogR (com.amalto.workbench.dialogs.ComplexTypeInputDialogR)1 XSDComplexTypeDefinition (org.eclipse.xsd.XSDComplexTypeDefinition)1 XSDSimpleTypeDefinition (org.eclipse.xsd.XSDSimpleTypeDefinition)1