Class RTable

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.eco.bio7.rbridge.RTable
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class RTable extends org.eclipse.ui.part.ViewPart
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
    The data key of a sheet (Grid) for a java.util.function.Consumer of int[] which removes the selected rows (the indices) instead of the table, e.g., the 3D measurements of the rows (the owner of the sheet updates it).
    static final String
    The data key of a sheet (Grid) for a Runnable which is called when the sheet is closed (e.g., the 3D measurements of the sheet are removed).
    protected String[][]
     
    org.eclipse.swt.widgets.Text
     
    protected boolean
     

    Fields inherited from interface org.eclipse.ui.IWorkbenchPart

    PROP_TITLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createPartControl(org.eclipse.swt.widgets.Composite parent)
    Create contents of the view part
    void
     
    static org.eclipse.nebula.widgets.grid.Grid
     
    static RTable
     
    static org.eclipse.swt.custom.CTabFolder
     
    static void
    Redoes the last undone change of the selected sheet (see GridHistory).
    void
     
    static void
    setGrid(org.eclipse.nebula.widgets.grid.Grid grid)
     
    static void
    Undoes the last change of the selected sheet (see GridHistory).

    Methods inherited from class org.eclipse.ui.part.ViewPart

    checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName

    Methods inherited from class org.eclipse.ui.part.WorkbenchPart

    addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy

    Methods inherited from class org.eclipse.core.commands.common.EventManager

    addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ID

      public static final String ID
      See Also:
    • SHEET_CLOSED

      public static final String SHEET_CLOSED
      The data key of a sheet (Grid) for a Runnable which is called when the sheet is closed (e.g., the 3D measurements of the sheet are removed).
      See Also:
    • ROWS_REMOVED

      public static final String ROWS_REMOVED
      The data key of a sheet (Grid) for a java.util.function.Consumer of int[] which removes the selected rows (the indices) instead of the table, e.g., the 3D measurements of the rows (the owner of the sheet updates it).
      See Also:
    • sheetdata

      protected String[][] sheetdata
    • withHead

      protected boolean withHead
    • txt

      public org.eclipse.swt.widgets.Text txt
  • Constructor Details

    • RTable

      public RTable()
  • Method Details

    • getGrid

      public static org.eclipse.nebula.widgets.grid.Grid getGrid()
    • setGrid

      public static void setGrid(org.eclipse.nebula.widgets.grid.Grid grid)
    • getTabFolder

      public static org.eclipse.swt.custom.CTabFolder getTabFolder()
    • getInstance

      public static RTable getInstance()
    • undo

      public static void undo()
      Undoes the last change of the selected sheet (see GridHistory).
    • redo

      public static void redo()
      Redoes the last undone change of the selected sheet (see GridHistory).
    • createPartControl

      public void createPartControl(org.eclipse.swt.widgets.Composite parent)
      Create contents of the view part
      Specified by:
      createPartControl in interface org.eclipse.ui.IWorkbenchPart
      Specified by:
      createPartControl in class org.eclipse.ui.part.WorkbenchPart
      Parameters:
      parent -
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.ui.IWorkbenchPart
      Overrides:
      dispose in class org.eclipse.ui.part.WorkbenchPart
    • setFocus

      public void setFocus()
      Specified by:
      setFocus in interface org.eclipse.ui.IWorkbenchPart
      Specified by:
      setFocus in class org.eclipse.ui.part.WorkbenchPart