Interface TreeMasterDetailCache
-
- All Superinterfaces:
DetailViewCache
- All Known Implementing Classes:
DefaultTreeMasterDetailCache
@Deprecated public interface TreeMasterDetailCache extends DetailViewCache
Deprecated.As of 1.22, use theDetailViewCacheAPI, instead, or extend theBasicDetailViewCacheclassA cache for the TreeMasterDetail that allows to cache rendered ECPSWTViews and reuse them when switching between elements in the tree.- Since:
- 1.9
- Author:
- Eugen Neufeld
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emf.ecp.view.spi.swt.masterdetail.DetailViewCache
DETAIL_VIEW_CACHE_SIZE, EMPTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidcache(ECPSWTView ecpView)Deprecated.Caches the providedECPSWTViewto allow it to be reused later.default booleancacheView(ECPSWTView ecpView)Deprecated.Caches the providedECPSWTViewto allow it to be reused later, if there is room for it the cache.ECPSWTViewgetCachedView(org.eclipse.emf.ecore.EObject selection)Deprecated.Returns the previously cached view for the provided selection.default booleanisCached(org.eclipse.emf.ecore.EObject selection)Deprecated.Checks whether there is already a cached view available.booleanisChached(org.eclipse.emf.ecore.EObject selection)Deprecated.Checks whether there is already a cached view available.-
Methods inherited from interface org.eclipse.emf.ecp.view.spi.swt.masterdetail.DetailViewCache
clear
-
-
-
-
Method Detail
-
isChached
boolean isChached(org.eclipse.emf.ecore.EObject selection)
Deprecated.Checks whether there is already a cached view available.- Parameters:
selection- The new selection of the tree- Returns:
- true if there is a cached view for the provided selection, false otherwise
-
isCached
default boolean isCached(org.eclipse.emf.ecore.EObject selection)
Deprecated.Description copied from interface:DetailViewCacheChecks whether there is already a cached view available.- Specified by:
isCachedin interfaceDetailViewCache- Parameters:
selection- The new master object selection- Returns:
trueif there is a cached view for the providedselection;falseotherwise
-
getCachedView
ECPSWTView getCachedView(org.eclipse.emf.ecore.EObject selection)
Deprecated.Returns the previously cached view for the provided selection.- Specified by:
getCachedViewin interfaceDetailViewCache- Parameters:
selection- The new selection of the tree- Returns:
- The cached view
- See Also:
DetailViewCache.isCached(EObject)
-
cache
void cache(ECPSWTView ecpView)
Deprecated.Caches the providedECPSWTViewto allow it to be reused later.- Parameters:
ecpView- TheECPSWTViewto cache.
-
cacheView
default boolean cacheView(ECPSWTView ecpView)
Deprecated.Description copied from interface:DetailViewCacheCaches the provided
ECPSWTViewto allow it to be reused later, if there is room for it the cache.Note that a view is cached when it is no longer required, usually because another detail view is taking its place in the editor. Consequently, if the cache is size-limited and cannot actually cache the view, it must dispose that view.
- Specified by:
cacheViewin interfaceDetailViewCache- Parameters:
ecpView- theECPSWTViewto cache- Returns:
trueif the view was added to the cache;falseotherwise (in which case it would be disposed)
-
-