Interface TreeMasterDetailCache

    • 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: DetailViewCache
        Checks whether there is already a cached view available.
        Specified by:
        isCached in interface DetailViewCache
        Parameters:
        selection - The new master object selection
        Returns:
        true if there is a cached view for the provided selection; false otherwise
      • cache

        void cache​(ECPSWTView ecpView)
        Deprecated.
        Caches the provided ECPSWTView to allow it to be reused later.
        Parameters:
        ecpView - The ECPSWTView to cache.
      • cacheView

        default boolean cacheView​(ECPSWTView ecpView)
        Deprecated.
        Description copied from interface: 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.

        Specified by:
        cacheView in interface DetailViewCache
        Parameters:
        ecpView - the ECPSWTView to cache
        Returns:
        true if the view was added to the cache; false otherwise (in which case it would be disposed)