Interface MultiAttributeSWTRendererCellEditorTester

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static double NOT_APPLICABLE
      Return this whenever the renderer should not be used for the tested ViewModelContext.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double isApplicable​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EAttribute multiAttribute, ViewModelContext viewModelContext)
      Returns the priority of the corresponding celleditor for the combination of the EObject and the multi-valued EAttribute.
    • Method Detail

      • isApplicable

        double isApplicable​(org.eclipse.emf.ecore.EObject eObject,
                            org.eclipse.emf.ecore.EAttribute multiAttribute,
                            ViewModelContext viewModelContext)
        Returns the priority of the corresponding celleditor for the combination of the EObject and the multi-valued EAttribute.
        Parameters:
        multiAttribute - the EAttribute to test
        eObject - the EObject to test
        viewModelContext - the ViewModelContext to check
        Returns:
        NOT_APPLICABLE if the corresponding celleditor should not be used, a positive integer value otherwise. The celleditor with the highest priority will be taken.