Class MultiReferenceRevealProvider

    • Constructor Detail

      • MultiReferenceRevealProvider

        public MultiReferenceRevealProvider()
    • Method Detail

      • canReveal

        public java.lang.Double canReveal​(ViewModelContext context,
                                          VControl control,
                                          EMFFormsDatabinding databinding)
                                   throws DatabindingFailedException
        I bid on the element if it is a simple VControl specified by a DMR that resolves to a multi-valued containment reference.
        Parameters:
        context - the view model context in which to resolve the DMR
        control - the control to bid on
        databinding - the databinding service in which to resolve the DMR
        Returns:
        my bid
        Throws:
        DatabindingFailedException - on failure to resolve the DMR
      • reveal

        public RevealStep reveal​(ViewModelContext context,
                                 RevealHelper helper,
                                 VControl control,
                                 org.eclipse.emf.ecore.EObject object,
                                 EMFFormsDatabinding databinding)
                          throws DatabindingFailedException
        Create a terminal reveal step to select and reveal the object in the rendered element.
        Parameters:
        context - the view model context in which to find a renderer for the tree
        helper - a helper for deferred revealing
        control - the multi-reference control view model
        object - the object to reveal
        databinding - the databinding service in which to resolve the DMR
        Returns:
        the drill-down reveal step
        Throws:
        DatabindingFailedException - on failure to resolve the DMR