Class FormItemPropertyContextDefInferrer

    • Constructor Detail

      • FormItemPropertyContextDefInferrer

        public FormItemPropertyContextDefInferrer()
    • Method Detail

      • expandFormItemContextDefProperties

        public void expandFormItemContextDefProperties​(org.eclipse.emf.ecore.resource.Resource resourceContext,
                                                       com._1c.g5.v8.dt.internal.form.item.command.ContextDefPropertyByFormItemCreator command,
                                                       IEObjectProvider typeProvider,
                                                       Version version)
        Expand type "FormItems" contextDef for form items. The property of this type should have child properties with name of child item elements
        Parameters:
        resourceContext - resource for resolving base type, can't be null
        command - ContextDefPropertyByFormItemCreator contains all properties of all items, can't be null
        typeProvider - for getting base type, can't be null
        version - actual project Version, can't be null
      • expandCommandBarContextDefProperties

        public void expandCommandBarContextDefProperties​(org.eclipse.emf.ecore.resource.Resource resourceContext,
                                                         com._1c.g5.v8.dt.internal.form.item.command.ContextDefPropertyByFormItemCreator command,
                                                         IEObjectProvider typeProvider,
                                                         Version version)
        Expand type "FormGroup" contextDef for form commandBar. The property of this type should have child properties with name of child items of commandBar
        Parameters:
        resourceContext - resource for resolving base type, can't be null
        command - ContextDefPropertyByFormItemCreator contains all properties of all items in commandBar, can't be null
        typeProvider - for getting base type, can't be null
        version - actual project Version, can't be null
      • expandContextMenuContextDefProperties

        public void expandContextMenuContextDefProperties​(org.eclipse.emf.ecore.resource.Resource resourceContext,
                                                          com._1c.g5.v8.dt.internal.form.item.command.ContextDefPropertyByFormItemCreator command,
                                                          IEObjectProvider typeProvider,
                                                          Version version)
        Expand type "FormGroup" contextDef for form contextMenu. The property of this type should have child properties with name of child items of contextMenu
        Parameters:
        resourceContext - resource for resolving base type, can't be null
        command - ContextDefPropertyByFormItemCreator contains all properties of all items in contextMenu, can't be null
        typeProvider - for getting base type, can't be null
        version - actual project Version, can't be null
      • visit

        public boolean visit​(org.eclipse.emf.ecore.EObject object)
        Description copied from interface: Visitors.IVisitor
        Visits the given object. Returns whether the contents of the object should also be visited.
        Specified by:
        visit in interface Visitors.IVisitor
        Parameters:
        object - not null
        Returns:
        true if the contents of the given object should be visited, and false otherwise
      • _infer

        protected boolean _infer​(org.eclipse.emf.ecore.EObject object,
                                 IEObjectProvider typeProvider,
                                 Version version)
      • infer

        public boolean infer​(org.eclipse.emf.ecore.EObject form,
                             IEObjectProvider typeProvider,
                             Version version)