org.eclipse.gmf.runtime.lite.edit.parts.update.canonical
Class DelegatingViewService

java.lang.Object
  extended by org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.DelegatingViewService
All Implemented Interfaces:
IViewService
Direct Known Subclasses:
EditPartRegistryBasedViewService, NaiveViewService

public abstract class DelegatingViewService
extends Object
implements IViewService

This implementation of IViewService delegates to another view service to locate an exact match. If no exact match is found, the same procedure is attempted for ancestors recursively until the match is found. Then, the element chain is traversed in the opposite direction trying to find a match in the context of the parent element's match.


Nested Class Summary
static interface DelegatingViewService.IExactMatchFinder
           
 
Constructor Summary
DelegatingViewService(DelegatingViewService.IExactMatchFinder exactMatchFinder)
           
 
Method Summary
 org.eclipse.gmf.runtime.notation.View findView(org.eclipse.emf.ecore.EObject modelElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingViewService

public DelegatingViewService(DelegatingViewService.IExactMatchFinder exactMatchFinder)
Method Detail

findView

public org.eclipse.gmf.runtime.notation.View findView(org.eclipse.emf.ecore.EObject modelElement)
Specified by:
findView in interface IViewService


Copyright © 2012. All Rights Reserved.