Skip to content

Package: ToolingModeUtil

ToolingModeUtil

nameinstructionbranchcomplexitylinemethod
isSegmentToolingEnabled()
M: 2 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: * Christian W. Damus - fix API breakage
14: ******************************************************************************/
15: package org.eclipse.emf.ecp.view.spi.editor.controls;
16:
17: /**
18: * Utility class that allows to query whether segment or dmr based tooling is used.
19: *
20: * @author Lucas Koehler
21: * @since 1.20
22: * @deprecated Since the 1.22 release, use the {@link org.eclipse.emfforms.spi.ide.view.segments.ToolingModeUtil} API,
23: * instead.
24: */
25: @Deprecated
26: public final class ToolingModeUtil {
27:
28:         /**
29:          * This flag enables the automatic generation of segments from existing DMRs.
30:          */
31:         public static final String ENABLE_SEGMENT_TOOLING = org.eclipse.emfforms.spi.ide.view.segments.ToolingModeUtil.ENABLE_SEGMENT_TOOLING;
32:
33:         // Utility classes should not be instantiated
34:         private ToolingModeUtil() {
35:         }
36:
37:         /**
38:          * Returns true if the <strong>-enableSegmentTooling</strong> program argument was set.
39:          *
40:          * @return <code>true</code> if the tooling creates segment based DMRs, or <code>false</code> if legacy DMRs are
41:          * created
42:          */
43:         public static boolean isSegmentToolingEnabled() {
44:                 return org.eclipse.emfforms.spi.ide.view.segments.ToolingModeUtil.isSegmentToolingEnabled();
45:         }
46:
47: }