Search in sources :

Example 1 with Category

use of org.eclipse.sirius.properties.Category in project sirius-components by eclipse-sirius.

the class FormRendererTests method createSiriusProperties.

private ViewExtensionDescription createSiriusProperties() {
    ViewExtensionDescription viewExtensionDescription = PropertiesFactory.eINSTANCE.createViewExtensionDescription();
    Category category = PropertiesFactory.eINSTANCE.createCategory();
    viewExtensionDescription.getCategories().add(category);
    org.eclipse.sirius.properties.GroupDescription groupDescription = this.createGroupDescription();
    org.eclipse.sirius.properties.PageDescription pageDescription = this.createPageDescription(groupDescription);
    org.eclipse.sirius.properties.TextDescription textDescription = this.createTextfield();
    org.eclipse.sirius.properties.TextAreaDescription textAreaDescription = this.createTextArea();
    org.eclipse.sirius.properties.CheckboxDescription checkboxDescription = this.createCheckbox();
    org.eclipse.sirius.properties.RadioDescription radioDescription = this.createRadio();
    org.eclipse.sirius.properties.SelectDescription selectDescription = this.createSelect();
    org.eclipse.sirius.properties.DynamicMappingForDescription forDescription = this.createForDescription();
    org.eclipse.sirius.properties.CheckboxDescription ifCheckboxDescription = this.createCheckbox();
    org.eclipse.sirius.properties.DynamicMappingIfDescription ifDescription = this.createIfDescription(ifCheckboxDescription);
    forDescription.getIfs().add(ifDescription);
    groupDescription.getControls().add(textDescription);
    groupDescription.getControls().add(textAreaDescription);
    groupDescription.getControls().add(checkboxDescription);
    groupDescription.getControls().add(radioDescription);
    groupDescription.getControls().add(selectDescription);
    groupDescription.getControls().add(forDescription);
    category.getGroups().add(groupDescription);
    category.getPages().add(pageDescription);
    return viewExtensionDescription;
}
Also used : Category(org.eclipse.sirius.properties.Category) ViewExtensionDescription(org.eclipse.sirius.properties.ViewExtensionDescription)

Aggregations

Category (org.eclipse.sirius.properties.Category)1 ViewExtensionDescription (org.eclipse.sirius.properties.ViewExtensionDescription)1