Class AbstractJFaceTreeRenderer<VELEMENT extends VElement>

    • Method Detail

      • createTreeViewer

        protected org.eclipse.jface.viewers.TreeViewer createTreeViewer​(org.eclipse.swt.widgets.Composite parent)
        Creates a TreeViewer. Sub classes can override to influence the TreeViewer.
        Parameters:
        parent - the parent Composite
        Returns:
        a TreeViewer
        Since:
        1.14
      • getCategorizationElement

        protected abstract VCategorizationElement getCategorizationElement()
        The VCategorizationElement to set the current selection onto.
        Returns:
        the VCategorizationElement
      • createdEditorPane

        protected org.eclipse.swt.custom.ScrolledComposite createdEditorPane​(org.eclipse.swt.widgets.Composite composite)
        Created editor pane.
        Parameters:
        composite - the composite
        Returns:
        the created editor composite
      • setupTreeViewer

        protected void setupTreeViewer​(org.eclipse.jface.viewers.TreeViewer treeViewer,
                                       org.eclipse.swt.custom.ScrolledComposite editorComposite)
        Configures the passed tree viewer.
        Parameters:
        treeViewer - the TreeViewer to configure
        editorComposite - the composite of the editor
      • initTreeViewer

        protected void initTreeViewer​(org.eclipse.jface.viewers.TreeViewer treeViewer)
        Inits the tree viewer.
        Parameters:
        treeViewer - the tree viewer
      • addTreeEditor

        protected void addTreeEditor​(org.eclipse.jface.viewers.TreeViewer treeViewer,
                                     org.eclipse.emf.ecore.EObject view,
                                     java.util.List<org.eclipse.swt.custom.TreeEditor> editors)
        Adds the tree editor.
        Parameters:
        treeViewer - the tree viewer
        view - the view
        editors - the list of tree editors
      • addButtons

        protected void addButtons​(org.eclipse.jface.viewers.TreeViewer treeViewer,
                                  org.eclipse.jface.viewers.TreeSelection treeSelection,
                                  java.util.List<org.eclipse.swt.custom.TreeEditor> editors)
        Adds the buttons.
        Parameters:
        treeViewer - the tree viewer
        treeSelection - the tree selection
        editors - the list of tree editors
      • showCategorization

        public boolean showCategorization​(VAbstractCategorization categorization)
        Reveal the control that renders the given categorization.
        Parameters:
        categorization - a categorization to reveal
        Returns:
        whether the categorization was successfully revealed
        Since:
        1.22