DetailViewCache API, instead, or extend the BasicDetailViewCache
class@Deprecated public interface TreeMasterDetailCache extends DetailViewCache
DETAIL_VIEW_CACHE_SIZE, EMPTY| Modifier and Type | Method and Description |
|---|---|
void |
cache(ECPSWTView ecpView)
Deprecated.
Caches the provided
ECPSWTView to allow it to be reused later. |
default boolean |
cacheView(ECPSWTView ecpView)
Deprecated.
Caches the provided
ECPSWTView to allow it to be reused later, if there is
room for it the cache. |
ECPSWTView |
getCachedView(org.eclipse.emf.ecore.EObject selection)
Deprecated.
Returns the previously cached view for the provided selection.
|
default boolean |
isCached(org.eclipse.emf.ecore.EObject selection)
Deprecated.
Checks whether there is already a cached view available.
|
boolean |
isChached(org.eclipse.emf.ecore.EObject selection)
Deprecated.
Checks whether there is already a cached view available.
|
clear, createCacheboolean isChached(org.eclipse.emf.ecore.EObject selection)
selection - The new selection of the treedefault boolean isCached(org.eclipse.emf.ecore.EObject selection)
DetailViewCacheisCached in interface DetailViewCacheselection - The new master object selectiontrue if there is a cached view for the provided selection; false otherwiseECPSWTView getCachedView(org.eclipse.emf.ecore.EObject selection)
getCachedView in interface DetailViewCacheselection - The new selection of the treeDetailViewCache.isCached(EObject)void cache(ECPSWTView ecpView)
ECPSWTView to allow it to be reused later.ecpView - The ECPSWTView to cache.default boolean cacheView(ECPSWTView ecpView)
DetailViewCache
Caches the provided ECPSWTView to 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.
cacheView in interface DetailViewCacheecpView - the ECPSWTView to cachetrue if the view was added to the cache; false otherwise (in which
case it would be disposed)Copyright © 2019. All rights reserved.