Class AbstractSelectionComponent<M extends IEmfSelectionModel<? extends org.eclipse.emf.ecore.EObject>,​P extends ISelectionParameterization>

    • Constructor Detail

      • AbstractSelectionComponent

        protected AbstractSelectionComponent​(P parameterization)
        Creates a new component.
        Parameters:
        parameterization - the parameterization, cannot be null
    • Method Detail

      • getPresentationValue

        protected String getPresentationValue​(M model,
                                              Object fromObject)
        Returns value presentation from selection model label provider.
        Parameters:
        model - the value model, cannot be null
        fromObject - the model object, cannot be null
        Returns:
        the presentation value, can be null
      • getSelectedObjects

        protected abstract Object[] getSelectedObjects​(M model)
        Returns the selected objects for dialog init.
        Parameters:
        model - the model.
        Returns:
        the selected objects.
      • setValueOnDialogResult

        protected abstract void setValueOnDialogResult​(List<Object> result)
        Sets the result objects obtained from dialog to component model.
        Parameters:
        result - the dialog result.