Class AbstractTableAction<Viewer extends org.eclipse.jface.viewers.AbstractTableViewer>

  • Type Parameters:
    Viewer - the table viewer implementation to use
    All Implemented Interfaces:
    Action
    Direct Known Subclasses:
    TableRendererAction

    public abstract class AbstractTableAction<Viewer extends org.eclipse.jface.viewers.AbstractTableViewer>
    extends java.lang.Object
    implements Action
    Base class for table actions.
    Since:
    1.18
    Author:
    Mat Hansen
    • Method Detail

      • getTableViewer

        protected org.eclipse.jface.viewers.AbstractTableViewer getTableViewer()
        Returns the table viewer object.
        Returns:
        the table viewer
      • getEditingDomainForContainment

        protected org.eclipse.emf.edit.domain.EditingDomain getEditingDomainForContainment()
        Returns:
        the editingDomain
      • isTableDisabled

        protected boolean isTableDisabled()
        Returns whether the table is read-only.
        Returns:
        true when the table is read-only, false otherwise
      • isLowerBoundReached

        protected boolean isLowerBoundReached()
        Returns true when the lower bound of the table setting has been reached.
        Returns:
        true when the lower bound of the table setting has been reached, false otherwise
      • isUpperBoundReached

        protected boolean isUpperBoundReached()
        Returns true when the upper bound of the table setting has been reached.
        Returns:
        true when the upper bound of the table setting has been reached, false otherwise
      • isOrdered

        protected boolean isOrdered()
        Returns true when the table feature is ordered.
        Returns:
        true when the table feature is ordered, false otherwise
      • isViewerSelectionInvalid

        protected boolean isViewerSelectionInvalid()
        Returns true when the table is read-only.
        Returns:
        true when the table is read-only, false otherwise
      • getNumberOfVisibleRows

        protected int getNumberOfVisibleRows()
        Returns the number of visible viewer rows for the table control.
        Returns:
        the number of visible rows