Class AbstractQueryWizardLabelProvider

    • Constructor Detail

      • AbstractQueryWizardLabelProvider

        public AbstractQueryWizardLabelProvider()
    • Method Detail

      • isColumnHaveCustomLabelProvider

        public boolean isColumnHaveCustomLabelProvider​(int columnIndex)
        Is column have custom label provider
        Parameters:
        column - - column
        Returns:
        true if have custom label provider
      • update

        public void update​(int column,
                           ViewerCell cell,
                           org.eclipse.swt.widgets.Tree parent)
        Update the label for cell. Using for extending "update" method in "CellLabelProvider" class
        Parameters:
        column - - column
        cell - - column cell
        parent - - parent tree
      • getToolTipText

        public String getToolTipText​(Object element,
                                     int columnIndex)
        Get tool tip text
        Parameters:
        element - - element
        column - - column
        Returns:
        tool tip text or null if have no text
      • isToolTipTextRequired

        public boolean isToolTipTextRequired​(Object element,
                                             int columnIndex)
        Show tool tips for every elements
        Parameters:
        element - - element
        column - - column
        Returns:
        true if show tool tips for every elements, false if show only multilines tool tips
      • addOverlayIcon

        protected org.eclipse.swt.graphics.Image addOverlayIcon​(Object element,
                                                                org.eclipse.swt.graphics.Image image,
                                                                QueryWizardSource source)
        Adds overlay error/warning icon if there is one.
        Parameters:
        element - - element image was created for. Cannot be null.
        image - - image to add overlay icon to. Can be null.
        source - - query wizard source to look for issues. Cannot be null.
        Returns:
        image with overlay or original image. Cannot return null.
      • addIssueMessage

        protected String addIssueMessage​(Object element,
                                         String message,
                                         QueryWizardSource wizardSource)
        Adds issue message associated with given element if there is one to given message.
        Parameters:
        element - - element to look for issues. Cannot be null.
        message - - initial message. Cannot be null.
        wizardSource - - query wizard source. Cannot be null.
        Returns:
        message with issues text. Cannot return null.