BasicDetailViewCache
API, instead.@Deprecated public class DefaultTreeMasterDetailCache extends Object implements TreeMasterDetailCache
DETAIL_VIEW_CACHE_SIZE, EMPTY
Constructor and Description |
---|
DefaultTreeMasterDetailCache()
Deprecated.
Creates a cache with maximal 5 entries.
|
DefaultTreeMasterDetailCache(int maxEntries)
Deprecated.
Creates a cache with a custom number of maximal entries.
|
Modifier and Type | Method and Description |
---|---|
void |
cache(ECPSWTView ecpView)
Deprecated.
Caches the provided
ECPSWTView to allow it to be reused later. |
void |
clear()
Deprecated.
Dispose all cached views, emptying the cache.
|
ECPSWTView |
getCachedView(org.eclipse.emf.ecore.EObject selection)
Deprecated.
Returns the previously cached view for the provided selection.
|
boolean |
isChached(org.eclipse.emf.ecore.EObject selection)
Deprecated.
Checks whether there is already a cached view available.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cacheView, isCached
createCache
public DefaultTreeMasterDetailCache()
public DefaultTreeMasterDetailCache(int maxEntries)
maxEntries
- The number of maximal entries to cachepublic boolean isChached(org.eclipse.emf.ecore.EObject selection)
TreeMasterDetailCache
isChached
in interface TreeMasterDetailCache
selection
- The new selection of the treepublic ECPSWTView getCachedView(org.eclipse.emf.ecore.EObject selection)
TreeMasterDetailCache
getCachedView
in interface DetailViewCache
getCachedView
in interface TreeMasterDetailCache
selection
- The new selection of the treeDetailViewCache.isCached(EObject)
public void cache(ECPSWTView ecpView)
TreeMasterDetailCache
ECPSWTView
to allow it to be reused later.cache
in interface TreeMasterDetailCache
ecpView
- The ECPSWTView
to cache.public void clear()
DetailViewCache
clear
in interface DetailViewCache
Copyright © 2019. All rights reserved.