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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringThe 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 StringThe 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.Textprotected booleanFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePartControl(org.eclipse.swt.widgets.Composite parent) Create contents of the view partvoiddispose()static org.eclipse.nebula.widgets.grid.GridgetGrid()static RTablestatic org.eclipse.swt.custom.CTabFolderstatic voidredo()Redoes the last undone change of the selected sheet (see GridHistory).voidsetFocus()static voidsetGrid(org.eclipse.nebula.widgets.grid.Grid grid) static voidundo()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, setPartNameMethods 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, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Field Details
-
ID
- See Also:
-
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
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
-
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
-
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:
createPartControlin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
createPartControlin classorg.eclipse.ui.part.WorkbenchPart- Parameters:
parent-
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
disposein classorg.eclipse.ui.part.WorkbenchPart
-
setFocus
public void setFocus()- Specified by:
setFocusin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
setFocusin classorg.eclipse.ui.part.WorkbenchPart
-