Class GenerateTableColumnSegmentDmrsForSubclassesHandler

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

    public class GenerateTableColumnSegmentDmrsForSubclassesHandler
    extends GenerateTableColumnSegmentDmrsHandler
    Tree master detail action that generates segment based table column DMRs based on a subclass of the table elements. This subclass is selected by the user. This action is only used in the segment mode of the tooling.
    Author:
    Lucas Koehler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Optional<org.eclipse.emf.ecore.EClass> getColumnDmrRootEClass​(org.eclipse.emf.ecore.EClass baseEClass)
      Returns the root EClass of the generated column dmrs.
      • Methods inherited from class org.eclipse.core.commands.AbstractHandler

        addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenerateTableColumnSegmentDmrsForSubclassesHandler

        public GenerateTableColumnSegmentDmrsForSubclassesHandler()
    • Method Detail

      • getColumnDmrRootEClass

        protected java.util.Optional<org.eclipse.emf.ecore.EClass> getColumnDmrRootEClass​(org.eclipse.emf.ecore.EClass baseEClass)
        Description copied from class: GenerateTableColumnSegmentDmrsHandler
        Returns the root EClass of the generated column dmrs. By default this is the same as the given baseEClass. This can be overridden to select a subclass of the base EClass.
        Overrides:
        getColumnDmrRootEClass in class GenerateTableColumnSegmentDmrsHandler
        Parameters:
        baseEClass - The reference type which the multi dmr points to
        Returns:
        The root EClass for the column dmrs or nothing if none was determined