Skip to content

Package: GenerateTableColumnSegmentDmrsForSubclassesHandler

GenerateTableColumnSegmentDmrsForSubclassesHandler

nameinstructionbranchcomplexitylinemethod
GenerateTableColumnSegmentDmrsForSubclassesHandler()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getColumnDmrRootEClass(EClass)
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2019 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Lucas Koehler - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.view.internal.editor.handler;
15:
16: import java.util.Optional;
17:
18: import org.eclipse.emf.ecore.EClass;
19:
20: /**
21: * Tree master detail action that generates segment based table column DMRs based on a subclass of the table elements.
22: * This subclass is selected by the user. This action is only used in the segment
23: * mode of the tooling.
24: *
25: * @author Lucas Koehler
26: *
27: */
28: public class GenerateTableColumnSegmentDmrsForSubclassesHandler extends GenerateTableColumnSegmentDmrsHandler {
29:
30:         @Override
31:         protected Optional<EClass> getColumnDmrRootEClass(EClass baseEClass) {
32:                 return GenerateTableColumnsUtil.selectSubClass(baseEClass);
33:         }
34: }