Class GenerateTableColumnSegmentDmrsForSubclassesHandler
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- org.eclipse.emf.ecp.view.spi.treemasterdetail.ui.swt.MasterDetailAction
-
- org.eclipse.emf.ecp.view.internal.editor.handler.GenerateTableColumnSegmentDmrsHandler
-
- org.eclipse.emf.ecp.view.internal.editor.handler.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
-
-
Constructor Summary
Constructors Constructor Description GenerateTableColumnSegmentDmrsForSubclassesHandler()
-
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.emf.ecp.view.internal.editor.handler.GenerateTableColumnSegmentDmrsHandler
execute, execute, shouldShow
-
Methods inherited from class org.eclipse.emf.ecp.view.spi.treemasterdetail.ui.swt.MasterDetailAction
getTreeViewer
-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
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 classGenerateTableColumnSegmentDmrsHandler
- 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
-
-