Class QueryWizardTreeViewer

    • Constructor Detail

      • QueryWizardTreeViewer

        public QueryWizardTreeViewer​(org.eclipse.swt.widgets.Tree tree)
        Constructor.
        Parameters:
        tree - - tree to create viewer for. Cannot be null.
      • QueryWizardTreeViewer

        public QueryWizardTreeViewer​(org.eclipse.swt.widgets.Composite treeComposite,
                                     int style)
        Constructor.
        Parameters:
        treeComposite - - parent composite. Cannot be null.
        style - - tree viewer style.
    • Method Detail

      • createDataSetsTree

        public static TreeViewer createDataSetsTree​(QueryWizardControl queryWizard,
                                                    org.eclipse.swt.widgets.Composite parent,
                                                    QueryWizardToolBarAction[] toolBarActions,
                                                    String[] columnsLabels)
        Create tree viewer for query wizard
        Parameters:
        queryWizard - - query wizard control
        parent - - parent composite
        toolBarActions - - tool bar actions
        columnsLabels - - columns labels
        Returns:
        new tree viewer
      • createDataSetsTree

        public static TreeViewer createDataSetsTree​(QueryWizardControl queryWizard,
                                                    org.eclipse.swt.widgets.Composite parent,
                                                    QueryWizardToolBarAction[] toolBarActions,
                                                    String[] columnsLabels,
                                                    int style)
        Create tree viewer for query wizard
        Parameters:
        queryWizard - - query wizard control
        parent - - parent composite
        toolBarActions - - tool bar actions
        columnsLabels - - columns labels
        style - - style
        Returns:
        new tree viewer
      • createDataSetsTree

        public static TreeViewer createDataSetsTree​(QueryWizardControl queryWizard,
                                                    org.eclipse.swt.widgets.Composite parent,
                                                    QueryWizardToolBarAction[] toolBarActions,
                                                    String[] columnsLabels,
                                                    int style,
                                                    boolean isVerticalToolBar)
        Create tree viewer for query wizard
        Parameters:
        queryWizard - - query wizard control
        parent - - parent composite
        toolBarActions - - tool bar actions
        columnsLabels - - columns labels
        style - - style
        isVerticalToolBar - - is vertical tool bar
        Returns:
        new tree viewer
      • createTreeColumn

        public static TreeViewerColumn createTreeColumn​(int position,
                                                        String label,
                                                        TreeViewer treeViewer,
                                                        org.eclipse.jface.layout.TreeColumnLayout layout)
        Creates tree column
        Parameters:
        columnsLabels -
        treeViewer -
        layout -
        i -
      • getViewerRow

        public ViewerRow getViewerRow​(org.eclipse.swt.widgets.Widget item)
      • enableExpandToLevel

        public void enableExpandToLevel()
        Disable expand to level mode
      • disableExpandToLevel

        public void disableExpandToLevel()
        Enable expand to level mode
      • handleTreeExpand

        protected void handleTreeExpand​(org.eclipse.swt.events.TreeEvent event)
        Overrides:
        handleTreeExpand in class TreeViewer