Class GridControlDetailPanelRenderer

    • Method Detail

      • dispose

        protected void dispose()
        Description copied from class: AbstractSWTRenderer
        Disposes all resources used by the renderer. Don't forget to call super.dispose if overwriting this method.
        Overrides:
        dispose in class TableControlSWTRenderer
      • createControlComposite

        protected org.eclipse.swt.widgets.Composite createControlComposite​(org.eclipse.swt.widgets.Composite composite)
        Description copied from class: TableControlSWTRenderer
        Creates and returns the composite which will be the parent for the table viewer.
        Overrides:
        createControlComposite in class TableControlSWTRenderer
        Parameters:
        composite - the parent composite including the title/button bar
        Returns:
        the parent for the table viewer
      • createBorderComposite

        protected org.eclipse.swt.widgets.Composite createBorderComposite​(org.eclipse.swt.widgets.Composite parent)
        Creates a composite with a border to surround the grid and detail panel.
        Parameters:
        parent - The parent Composite
        Returns:
        The border Composite
      • createSash

        protected org.eclipse.swt.custom.SashForm createSash​(org.eclipse.swt.widgets.Composite parent)
        Creates the SashForm for the grid and the detail panel.
        Parameters:
        parent - the parent
        Returns:
        the SashForm
      • createTableComposite

        protected org.eclipse.swt.widgets.Composite createTableComposite​(org.eclipse.swt.widgets.Composite parent)
        Creates the Composite that will contain the grid.
        Parameters:
        parent - The parent Composite to create the grid composite on
        Returns:
        The grid Composite
      • createScrolledDetail

        protected org.eclipse.swt.custom.ScrolledComposite createScrolledDetail​(org.eclipse.swt.widgets.Composite parent)
        Creates a scrolled Composite that contains the detail panel.
        Parameters:
        parent - The parent Composite to create the scrolled composite on
        Returns:
        The ScrolledComposite containing the detail panel
      • getDetailPanelHeightHint

        protected int getDetailPanelHeightHint()
        Returns the preferred height for the detail panel. This will be passed to the layout data.
        Returns:
        the height in px
      • createDetailPanel

        protected org.eclipse.swt.widgets.Composite createDetailPanel​(org.eclipse.swt.custom.ScrolledComposite composite)
        Creates the detail panel.
        Parameters:
        composite - the parent
        Returns:
        the detail panel
      • getView

        protected VView getView​(org.eclipse.emf.ecore.EObject selectedEObject)
        Returns a fresh copy of the VView used for detail editing based on the provided EObject.
        Parameters:
        selectedEObject - The selected EObject for which to provide the View
        Returns:
        the view
      • handleSingleSelection

        protected void handleSingleSelection​(org.eclipse.jface.viewers.IStructuredSelection selection)
        Handle a single selection.
        Parameters:
        selection - the selection
      • renderSelectedObject

        protected void renderSelectedObject​(org.eclipse.swt.widgets.Composite composite,
                                            org.eclipse.emf.ecore.EObject eObject)
        Called in order to render the selectedObject onto the created detail pane.
        Parameters:
        composite - The Composite to render on
        eObject - The selected EObject to render
        Since:
        1.9
      • handleMultiSelection

        protected void handleMultiSelection​(org.eclipse.jface.viewers.IStructuredSelection selection)
        Handle multi selection.
        Parameters:
        selection - the selection
      • handleEmptySelection

        protected void handleEmptySelection()
        Handle empty selection.
      • deleteRows

        @Deprecated
        protected void deleteRows​(java.util.List<org.eclipse.emf.ecore.EObject> deletionList,
                                  org.eclipse.emf.ecore.EObject eObject,
                                  org.eclipse.emf.ecore.EStructuralFeature structuralFeature)
        Deprecated.
        Description copied from class: TableControlSWTRenderer
        This is called by #deleteRowUserConfirmDialog(List) after the user confirmed to delete the selected elements.
        Overrides:
        deleteRows in class TableControlSWTRenderer
        Parameters:
        deletionList - the list of EObjects to delete
        eObject - The containment reference EObject
        structuralFeature - The containment reference EStructuralFeature