org.eclipse.emf.ecp.makeithappen.ui.emailcontrol
Class EmailControlRendererTest

java.lang.Object
  extended by org.eclipse.emf.ecp.makeithappen.ui.emailcontrol.EmailControlRendererTest
All Implemented Interfaces:
ECPRendererTester

public class EmailControlRendererTest
extends Object
implements ECPRendererTester

The renderer tester for the email control renderer.

Author:
Eclipse Modeling Project

Field Summary
 
Fields inherited from interface org.eclipse.emf.ecp.view.model.common.ECPRendererTester
NOT_APPLICABLE
 
Constructor Summary
EmailControlRendererTest()
           
 
Method Summary
 int isApplicable(VElement vElement, ViewModelContext viewModelContext)
          Check whether the provided VElement and ViewModelContext are fitting for the provided renderer.
 int isApplicableForFeature(org.eclipse.emf.ecore.EStructuralFeature feature, VElement vElement, ViewModelContext context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailControlRendererTest

public EmailControlRendererTest()
Method Detail

isApplicableForFeature

public int isApplicableForFeature(org.eclipse.emf.ecore.EStructuralFeature feature,
                                  VElement vElement,
                                  ViewModelContext context)
Parameters:
feature - the structural feature.
vElement - the VElement.
context - the view model context.
Returns:
whether the renderer is applicable for the feature.

isApplicable

public int isApplicable(VElement vElement,
                        ViewModelContext viewModelContext)
Check whether the provided VElement and ViewModelContext are fitting for the provided renderer.

Specified by:
isApplicable in interface ECPRendererTester
Parameters:
vElement - the VElement to check
viewModelContext - the ViewModelContext to check
Returns:
ECPRendererTester.NOT_APPLICABLE if the corresponding renderer should not be used, a positive integer value otherwise. The renderer with the highest priority will be taken.
See Also:
ECPRendererTester.isApplicable(org.eclipse.emf.ecp.view.spi.model.VElement, org.eclipse.emf.ecp.view.spi.context.ViewModelContext)


Copyright © 2014. All Rights Reserved.