public class DefaultTreeMasterDetailCache extends Object implements TreeMasterDetailCache
| Constructor and Description |
|---|
DefaultTreeMasterDetailCache()
Creates a cache with maximal 5 entries.
|
DefaultTreeMasterDetailCache(int maxEntries)
Creates a cache with a custom number of maximal entries.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cache(ECPSWTView ecpView)
Caches the provided
ECPSWTView to allow it to be reused later. |
ECPSWTView |
getCachedView(org.eclipse.emf.ecore.EObject selection)
Returns the previously cached view for the provided selection.
|
boolean |
isChached(org.eclipse.emf.ecore.EObject selection)
Checks whether there is already a cached view available.
|
public DefaultTreeMasterDetailCache()
public DefaultTreeMasterDetailCache(int maxEntries)
maxEntries - The number of maximal entries to cachepublic boolean isChached(org.eclipse.emf.ecore.EObject selection)
isChached in interface TreeMasterDetailCacheselection - The new selection of the treeTreeMasterDetailCache.isChached(org.eclipse.emf.ecore.EObject)public ECPSWTView getCachedView(org.eclipse.emf.ecore.EObject selection)
getCachedView in interface TreeMasterDetailCacheselection - The new selection of the treeTreeMasterDetailCache.getCachedView(org.eclipse.emf.ecore.EObject)public void cache(ECPSWTView ecpView)
ECPSWTView to allow it to be reused later.cache in interface TreeMasterDetailCacheecpView - The ECPSWTView to cache.TreeMasterDetailCache.cache(org.eclipse.emf.ecp.ui.view.swt.ECPSWTView)Copyright © 2016. All rights reserved.