org.eclipse.emf.ecp.view.internal.editor.controls
Class ControlRootEClassControl2SWTRendererTester

java.lang.Object
  extended by org.eclipse.emf.ecp.view.internal.editor.controls.ControlRootEClassControl2SWTRendererTester
All Implemented Interfaces:
ECPRendererTester
Direct Known Subclasses:
RootEClassControlECPTester

public class ControlRootEClassControl2SWTRendererTester
extends Object
implements ECPRendererTester

Author:
Alexandra Buzila

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

Constructor Detail

ControlRootEClassControl2SWTRendererTester

public ControlRootEClassControl2SWTRendererTester()
Method Detail

isApplicable

public int isApplicable(VElement vElement,
                        ViewModelContext context)
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
context - 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.


Copyright © 2015. All Rights Reserved.