Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen/templates.qvtlib/org/eclipse/papyrus/gmf/internal/codegen/util/GenModelUtils.java')
-rw-r--r--plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen/templates.qvtlib/org/eclipse/papyrus/gmf/internal/codegen/util/GenModelUtils.java60
1 files changed, 0 insertions, 60 deletions
diff --git a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen/templates.qvtlib/org/eclipse/papyrus/gmf/internal/codegen/util/GenModelUtils.java b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen/templates.qvtlib/org/eclipse/papyrus/gmf/internal/codegen/util/GenModelUtils.java
deleted file mode 100644
index ad00755dbb8..00000000000
--- a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen/templates.qvtlib/org/eclipse/papyrus/gmf/internal/codegen/util/GenModelUtils.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/******************************************************************************
- * Copyright (c) 2009, 2020 Borland Software Corporation, CEA LIST, Artal
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
- * https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- * Aurelien Didier (ARTAL) - aurelien.didier51@gmail.com - Bug 569174
- *****************************************************************************/
-package org.eclipse.papyrus.gmf.internal.codegen.util;
-
-import org.eclipse.emf.codegen.ecore.genmodel.GenClass;
-import org.eclipse.emf.codegen.ecore.genmodel.GenClassifier;
-import org.eclipse.emf.codegen.ecore.genmodel.GenFeature;
-import org.eclipse.emf.codegen.ecore.genmodel.GenModel;
-import org.eclipse.emf.codegen.ecore.genmodel.GenPackage;
-import org.eclipse.emf.ecore.EClassifier;
-import org.eclipse.m2m.qvt.oml.blackbox.java.Operation;
-import org.eclipse.m2m.qvt.oml.blackbox.java.Operation.Kind;
-
-public class GenModelUtils {
-
- @Operation(contextual = false, kind = Kind.HELPER)
- public static GenClass getDocumentRoot(GenPackage genPackage) {
- return genPackage.hasDocumentRoot() ? genPackage.getDocumentRoot() : null;
- }
-
- @Operation(contextual = false, kind = Kind.HELPER)
- public static GenClassifier findGenClassifier(GenModel genModel, EClassifier eClassifier) {
- return genModel.findGenClassifier(eClassifier);
- }
-
- @Operation(contextual = false, kind = Kind.HELPER)
- public static Boolean isListType(GenFeature genFeature) {
- // can't implement in .qvto because
- // XMLTypePackage.eNS_URI.equals(getExtendedMetaData().getNamespace((EStructuralFeature)eTypedElement));
- // part of the check seems to be essential
- return genFeature.isListType();
- }
-
- @Operation(contextual = false, kind = Kind.HELPER)
- public static Boolean isDerived(GenFeature genFeature) {
- return genFeature.isDerived();
- }
-
- @Operation(contextual = false, kind = Kind.HELPER)
- public static GenClass getTypeGenClassX(GenFeature genFeature) {
- return genFeature.getTypeGenClass();
- }
-
- @Operation(contextual = false, kind = Kind.HELPER)
- public static String getGetAccessor(GenFeature genFeature) {
- return genFeature.getGetAccessor();
- }
-} \ No newline at end of file

Back to the top