Class NavigatorTreeDialogModel

    • Constructor Detail

      • NavigatorTreeDialogModel

        public NavigatorTreeDialogModel​(ISubtreeInducer subtreeInducer,
                                        Map<IV8Project,​EObjectTrie> trieMap,
                                        Class<?>[] nodesToFlatten,
                                        List<Object> initialSelected)
        Creates new navigator tree dialog model.
        Parameters:
        subtreeInducer - the subtree inducer, can be null
        trieMap - the trie map, cannot be null
        nodesToFlatten - the nodes to flatten in FlatteningTreeContentProvider, can be null.
        initialSelected - the initial selected objects, cannot be null
    • Method Detail

      • dispose

        public void dispose()
        Description copied from interface: IModel
        Disposes this model.
        Specified by:
        dispose in interface IModel
        Overrides:
        dispose in class Model
      • getChange

        public IChange getChange()
        Returns:
        change describing the modifications done to the model.
      • getCheckedObjects

        public List<Object> getCheckedObjects()
        Returns checked objects.
        Returns:
        the checked objects, cannot be null
      • getNavigatorTreeModel

        public NavigatorTreeModel getNavigatorTreeModel()
        Returns navigator tree model.
        Returns:
        the navigator tree model, cannot be null
      • getPresentationValue

        public String getPresentationValue​(MdObject mdObject,
                                           boolean qualifiedNamePresentation)
        Returns md-object presentation.
        Parameters:
        mdObject - the md-object, cannot be null
        qualifiedNamePresentation - the qualified name presentation flag
        Returns:
        the md-object presentation or empty if object null or proxy
      • setAbcNodeComparator

        public void setAbcNodeComparator()
        Sets the IEObjectTrie.INode comparator to abc-sort child nodes in the trie.
      • restoreInitialNodeComparator

        public void restoreInitialNodeComparator()
        Restore the IEObjectTrie.INode initial comparator to sort child nodes in the trie.
      • isInitialNodeComparatorUsed

        public boolean isInitialNodeComparatorUsed()
        Returns true if initial trie comparator used.
        Returns:
        True if initial trie comparator used.
      • createCheckStateProvider

        protected ICheckStateProvider createCheckStateProvider​(NavigatorTreeModel navigatorTreeModel)
        Creates check state provider for navigator tree model.
        Parameters:
        navigatorTreeModel - - navigator tree model to create check state provider for. Cannot be null.
        Returns:
        check state provider. Cannot return null.