Class TableControlDetailPanelRenderer

    • 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
      • createDetailManager

        protected void createDetailManager​(org.eclipse.swt.widgets.Composite parent)
        Create the detail manager in the given parent.
        Parameters:
        parent - the parent composite in which to present details
        Since:
        1.27
      • getDetailPanelHeightHint

        protected int getDetailPanelHeightHint()
        Returns the prefereed height for the detail panel. This will be passed to the layoutdata.
        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

        @Deprecated
        protected VView getView()
        Deprecated.
        Returns a fresh copy of the VView used for detail editing.
        Returns:
        the view
      • 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
        Since:
        1.6