Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Le Fevre - CEA2015-01-27 14:25:46 +0000
committerChristian W. Damus2015-01-28 19:39:12 +0000
commit2d6f7d56523c9ada236abab425b05b8ebd02a2ff (patch)
tree90dab8670ae5cfbd11e372add54e209de7fe77b8
parent6c518595d43e2d73cdc43694e79024f9d32a4479 (diff)
downloadorg.eclipse.papyrus-2d6f7d56523c9ada236abab425b05b8ebd02a2ff.tar.gz
org.eclipse.papyrus-2d6f7d56523c9ada236abab425b05b8ebd02a2ff.tar.xz
org.eclipse.papyrus-2d6f7d56523c9ada236abab425b05b8ebd02a2ff.zip
Bug 458511 : Applying xtend code generation at build time template to
others plugins deleting content of org.eclipse.papyrus.def/xtend-gen and specially the following java file https://bugs.eclipse.org/bugs/show_bug.cgi?id=372322 Change-Id: Ie9513f5f6a5cb3c6101846907d55ac6c3a74b5bc Signed-off-by: Francois Le Fevre - CEA <francois.le-fevre@cea.fr>
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/pom.xml5
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/xtend-gen/.gitignore2
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/xtend-gen/org/eclipse/papyrus/dsml/validation/generator/xtend/ClientSelectorGen.java116
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/xtend-gen/org/eclipse/papyrus/dsml/validation/generator/xtend/ConstraintGen.java229
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/pom.xml5
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/.gitignore2
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/diagram/editparts/.gitignore8
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/diagram/editparts/.gitignore10
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/diagram/update/.gitignore1
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/parsers/.gitignore1
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/preferences/.gitignore1
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/metamodel/.gitignore1
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/.gitignore1
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/commands/.gitignore2
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/edithelpers/.gitignore1
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/editparts/.gitignore2
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/editpolicies/.gitignore10
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/preferences/.gitignore2
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/updater/.gitignore2
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/updater/UpdateCommand.java90
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/views/.gitignore1
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/editor/.gitignore10
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/editor/palette/.gitignore2
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/expressions/.gitignore1
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/navigator/.gitignore7
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/plugin/.gitignore3
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/providers/.gitignore7
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend-gen/utils/.gitignore5
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/pom.xml19
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/xtend-gen/.gitignore2
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/xtend-gen/org/eclipse/papyrus/infra/gmfdiag/generator/.gitignore1
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/xtend-gen/org/eclipse/papyrus/infra/gmfdiag/generator/CSSGenerator.java14
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/pom.xml17
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/xtend-gen/.gitignore2
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/xtend-gen/org/eclipse/papyrus/uml/alf/generator/.gitignore1
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/xtend-gen/org/eclipse/papyrus/uml/alf/generator/AlfGenerator.java14
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/pom.xml17
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/xtend-gen/.gitignore2
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/generator/UmlCollaborationUseGenerator.java14
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/pom.xml17
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/xtend-gen/.gitignore2
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/common/xtext/generator/UmlCommonGenerator.java14
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/pom.xml17
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/xtend-gen/.gitignore2
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/generator/UMLConnectionPointReferenceGenerator.java14
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/pom.xml17
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/xtend-gen/.gitignore2
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/message/xtext/generator/UmlMessageGenerator.java14
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/pom.xml17
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/xtend-gen/.gitignore2
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/generator/UmlParameterGenerator.java14
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/pom.xml17
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/xtend-gen/.gitignore2
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/pom.xml17
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/xtend-gen/.gitignore2
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/property/xtext/generator/UmlPropertyGenerator.java23
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/pom.xml17
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/xtend-gen/.gitignore2
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/state/xtext/generator/UmlStateGenerator.java14
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/pom.xml17
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/.gitignore2
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/generator/.gitignore1
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/generator/AppliedStereotypePropertyGenerator.java14
63 files changed, 134 insertions, 756 deletions
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/pom.xml b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/pom.xml
index f0435123c86..52dc42afe6f 100644
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/pom.xml
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/pom.xml
@@ -26,8 +26,11 @@
<fileset>
<directory>xtend-gen</directory>
<includes>
- <include>**</include>
+ <include>**/*</include>
</includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
</fileset>
</filesets>
</configuration>
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/xtend-gen/.gitignore b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/xtend-gen/org/eclipse/papyrus/dsml/validation/generator/xtend/ClientSelectorGen.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/xtend-gen/org/eclipse/papyrus/dsml/validation/generator/xtend/ClientSelectorGen.java
deleted file mode 100644
index 06690486f5a..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/xtend-gen/org/eclipse/papyrus/dsml/validation/generator/xtend/ClientSelectorGen.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.dsml.validation.generator.xtend;
-
-import com.google.common.collect.Iterators;
-import java.util.Iterator;
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.papyrus.codegen.base.IPFileSystemAccess;
-import org.eclipse.papyrus.dsml.validation.model.profilenames.Utils;
-import org.eclipse.uml2.uml.Stereotype;
-import org.eclipse.xtend2.lib.StringConcatenation;
-
-/**
- * Generator for producing client selector files: Java files that filter the stereotype
- * for validation
- */
-@SuppressWarnings("all")
-public class ClientSelectorGen {
- public static CharSequence generateValidationContext(final Stereotype stereotype) {
- StringConcatenation _builder = new StringConcatenation();
- _builder.append("/**");
- _builder.newLine();
- _builder.append(" ");
- _builder.append("* Created by the Papyrus DSML plugin generator");
- _builder.newLine();
- _builder.append(" ");
- _builder.append("*/");
- _builder.newLine();
- _builder.newLine();
- _builder.append("package ");
- String _topPkg = Utils.getTopPkg();
- _builder.append(_topPkg, "");
- _builder.append(".selectors;");
- _builder.newLineIfNotEmpty();
- _builder.newLine();
- _builder.append("import org.eclipse.emf.validation.model.IClientSelector;");
- _builder.newLine();
- _builder.append("import org.eclipse.papyrus.uml.service.validation.StereotypeUtil;");
- _builder.newLine();
- _builder.newLine();
- _builder.append("/**");
- _builder.newLine();
- _builder.append(" ");
- _builder.append("* This class filters (selects) passed stereotype applications. It returns true, if the");
- _builder.newLine();
- _builder.append(" ");
- _builder.append("* associated stereotype (or one of its super-stereotypes) has the name \'[stereotype.name/]\'.");
- _builder.newLine();
- _builder.append(" ");
- _builder.append("*");
- _builder.newLine();
- _builder.append(" ");
- _builder.append("* @generated");
- _builder.newLine();
- _builder.append(" ");
- _builder.append("*/");
- _builder.newLine();
- _builder.append("public class ");
- String _name = stereotype.getName();
- _builder.append(_name, "");
- _builder.append("ClientSelector implements IClientSelector {");
- _builder.newLineIfNotEmpty();
- _builder.newLine();
- _builder.append("\t");
- _builder.append("public boolean selects(Object stereoApplicationObj) {");
- _builder.newLine();
- _builder.append("\t\t");
- _builder.append("return StereotypeUtil.checkStereoApplication(stereoApplicationObj, \"");
- String _name_1 = stereotype.getName();
- _builder.append(_name_1, "\t\t");
- _builder.append("\"); //$NON-NLS-1$");
- _builder.newLineIfNotEmpty();
- _builder.append("\t");
- _builder.append("}");
- _builder.newLine();
- _builder.append("}");
- _builder.newLine();
- return _builder;
- }
-
- /**
- * @see org.eclipse.xtext.generator.IGenerator#doGenerate(org.eclipse.emf.ecore.resource.Resource, org.eclipse.xtext.generator.IFileSystemAccess)
- *
- * @param input
- * @param fsa
- */
- public static void generate(final Resource input, final IPFileSystemAccess fsa) {
- TreeIterator<EObject> _allContents = input.getAllContents();
- final Iterator<Stereotype> contentIterator = Iterators.<Stereotype>filter(_allContents, Stereotype.class);
- while (contentIterator.hasNext()) {
- {
- final Stereotype stereotype = contentIterator.next();
- String _topPkg = Utils.getTopPkg();
- String _replaceAll = _topPkg.replaceAll("\\.", "/");
- String _plus = (_replaceAll + "/selectors/");
- String _name = stereotype.getName();
- String _plus_1 = (_plus + _name);
- final String fileName = (_plus_1 + "ClientSelector.java");
- CharSequence _generateValidationContext = ClientSelectorGen.generateValidationContext(stereotype);
- String _string = _generateValidationContext.toString();
- fsa.generateFile(fileName, _string);
- }
- }
- }
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/xtend-gen/org/eclipse/papyrus/dsml/validation/generator/xtend/ConstraintGen.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/xtend-gen/org/eclipse/papyrus/dsml/validation/generator/xtend/ConstraintGen.java
deleted file mode 100644
index 8a1f26915d1..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.generator/xtend-gen/org/eclipse/papyrus/dsml/validation/generator/xtend/ConstraintGen.java
+++ /dev/null
@@ -1,229 +0,0 @@
-package org.eclipse.papyrus.dsml.validation.generator.xtend;
-
-import com.google.common.base.Objects;
-import com.google.common.collect.Iterators;
-import java.util.Iterator;
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.papyrus.codegen.base.IPFileSystemAccess;
-import org.eclipse.papyrus.dsml.validation.model.profilenames.Utils;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.ValueSpecification;
-import org.eclipse.xtend2.lib.StringConcatenation;
-
-/**
- * A generator for Java based constraints
- */
-@SuppressWarnings("all")
-public class ConstraintGen {
- public static CharSequence generateConstraint(final Constraint constraint) {
- StringConcatenation _builder = new StringConcatenation();
- _builder.append("/**");
- _builder.newLine();
- _builder.append(" ");
- _builder.append("* Created by the Papyrus DSML plugin generator");
- _builder.newLine();
- _builder.append(" ");
- _builder.append("*/");
- _builder.newLine();
- _builder.newLine();
- _builder.append("package ");
- String _topPkg = Utils.getTopPkg();
- _builder.append(_topPkg, "");
- _builder.append(".constraints;");
- _builder.newLineIfNotEmpty();
- _builder.newLine();
- _builder.append("import org.eclipse.core.runtime.IStatus;");
- _builder.newLine();
- _builder.append("import org.eclipse.emf.validation.AbstractModelConstraint;");
- _builder.newLine();
- _builder.append("import org.eclipse.emf.validation.IValidationContext;");
- _builder.newLine();
- _builder.append("import org.eclipse.uml2.uml.Element;");
- _builder.newLine();
- _builder.append("import org.eclipse.uml2.uml.Stereotype;");
- _builder.newLine();
- _builder.newLine();
- _builder.append("public class ");
- String _name = constraint.getName();
- _builder.append(_name, "");
- _builder.append("Constraint extends AbstractModelConstraint {");
- _builder.newLineIfNotEmpty();
- _builder.newLine();
- _builder.append("\t");
- _builder.append("public IStatus validate(IValidationContext ctx) {");
- _builder.newLine();
- _builder.append("\t\t");
- _builder.append("if (ctx.getTarget() instanceof Element) {");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("Element element = (Element) ctx.getTarget();");
- _builder.newLine();
- _builder.newLine();
- {
- Boolean _isConstraintForStereotype = Utils.isConstraintForStereotype(constraint);
- if ((_isConstraintForStereotype).booleanValue()) {
- _builder.append("\t\t\t");
- _builder.append("Stereotype appliedStereotype = element.getAppliedStereotype(\"");
- String _constraintForStereotype = Utils.getConstraintForStereotype(constraint);
- _builder.append(_constraintForStereotype, "\t\t\t");
- _builder.append("\"); //$NON-NLS-1$");
- _builder.newLineIfNotEmpty();
- _builder.append("\t\t\t");
- _builder.append("if (appliedStereotype != null) {");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("\t");
- _builder.append("if (evaluateConstraint(element, appliedStereotype)) {");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("\t\t");
- _builder.append("return ctx.createSuccessStatus();");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("\t");
- _builder.append("}");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("\t");
- _builder.append("else {");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("\t\t");
- _builder.append("return ctx.createFailureStatus(\"Constraint not validated\"); //$NON-NLS-1$");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("\t");
- _builder.append("}");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("}");
- _builder.newLine();
- } else {
- _builder.append("\t\t\t");
- _builder.append("if (evaluateConstraint(element)) {");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("\t");
- _builder.append("return ctx.createSuccessStatus();");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("}");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("else {");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("\t");
- _builder.append("return ctx.createFailureStatus(\"Constraint not validated\");");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("}");
- _builder.newLine();
- }
- }
- _builder.append("\t\t");
- _builder.append("}");
- _builder.newLine();
- _builder.append("\t\t");
- _builder.append("return ctx.createSuccessStatus();");
- _builder.newLine();
- _builder.append("\t");
- _builder.append("}");
- _builder.newLine();
- _builder.newLine();
- {
- Boolean _isConstraintForStereotype_1 = Utils.isConstraintForStereotype(constraint);
- if ((_isConstraintForStereotype_1).booleanValue()) {
- _builder.append("\t");
- _builder.append("private boolean evaluateConstraint(Element self, Stereotype appliedStereotype) {");
- _builder.newLine();
- {
- ValueSpecification _specification = constraint.getSpecification();
- String _javaConstraintBody = Utils.getJavaConstraintBody(_specification);
- boolean _notEquals = (!Objects.equal(_javaConstraintBody, null));
- if (_notEquals) {
- _builder.append("\t");
- _builder.append("\t");
- ValueSpecification _specification_1 = constraint.getSpecification();
- String _javaConstraintBody_1 = Utils.getJavaConstraintBody(_specification_1);
- _builder.append(_javaConstraintBody_1, "\t\t");
- _builder.newLineIfNotEmpty();
- } else {
- _builder.append("\t");
- _builder.append("\t");
- _builder.append("return true;");
- _builder.newLine();
- }
- }
- _builder.append("\t");
- _builder.append("}");
- _builder.newLine();
- }
- }
- _builder.newLine();
- {
- Boolean _isConstraintForStereotype_2 = Utils.isConstraintForStereotype(constraint);
- boolean _not = (!(_isConstraintForStereotype_2).booleanValue());
- if (_not) {
- _builder.append("\t");
- _builder.append("private boolean evaluateConstraint(Element self) {");
- _builder.newLine();
- {
- ValueSpecification _specification_2 = constraint.getSpecification();
- String _javaConstraintBody_2 = Utils.getJavaConstraintBody(_specification_2);
- boolean _notEquals_1 = (!Objects.equal(_javaConstraintBody_2, null));
- if (_notEquals_1) {
- _builder.append("\t");
- _builder.append("\t");
- ValueSpecification _specification_3 = constraint.getSpecification();
- String _javaConstraintBody_3 = Utils.getJavaConstraintBody(_specification_3);
- _builder.append(_javaConstraintBody_3, "\t\t");
- _builder.newLineIfNotEmpty();
- } else {
- _builder.append("\t");
- _builder.append("\t");
- _builder.append("return true;");
- _builder.newLine();
- }
- }
- _builder.append("\t");
- _builder.append("}");
- _builder.newLine();
- }
- }
- _builder.append("}");
- _builder.newLine();
- return _builder;
- }
-
- /**
- * @see org.eclipse.xtext.generator.IGenerator#doGenerate(org.eclipse.emf.ecore.resource.Resource, org.eclipse.xtext.generator.IFileSystemAccess)
- *
- * @param input
- * @param fsa
- */
- public static void generate(final Resource input, final IPFileSystemAccess fsa) {
- TreeIterator<EObject> _allContents = input.getAllContents();
- final Iterator<Constraint> contentIterator = Iterators.<Constraint>filter(_allContents, Constraint.class);
- while (contentIterator.hasNext()) {
- {
- final Constraint constraint = contentIterator.next();
- Boolean _hasSpecificationForJava = Utils.hasSpecificationForJava(constraint);
- if ((_hasSpecificationForJava).booleanValue()) {
- String _topPkg = Utils.getTopPkg();
- String _replaceAll = _topPkg.replaceAll("\\.", "/");
- String _plus = (_replaceAll + "/constraints/");
- String _name = constraint.getName();
- String _plus_1 = (_plus + _name);
- final String fileName = (_plus_1 +
- "Constraint.java");
- CharSequence _generateConstraint = ConstraintGen.generateConstraint(constraint);
- String _string = _generateConstraint.toString();
- fsa.generateFile(fileName, _string);
- }
- }
- }
- }
-}
diff --git a/plugins/developer/org.eclipse.papyrus.def/pom.xml b/plugins/developer/org.eclipse.papyrus.def/pom.xml
index 94dfd9121f6..90f2ad1e6c5 100644
--- a/plugins/developer/org.eclipse.papyrus.def/pom.xml
+++ b/plugins/developer/org.eclipse.papyrus.def/pom.xml
@@ -26,8 +26,11 @@
<fileset>
<directory>xtend-gen</directory>
<includes>
- <include>**</include>
+ <include>**/*</include>
</includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
</fileset>
</filesets>
</configuration>
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/diagram/editparts/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/diagram/editparts/.gitignore
deleted file mode 100644
index 1a2600974d6..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/diagram/editparts/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-/ChildNodeLabelEditPart.java
-/CompartmentEditPart.java
-/DiagramEditPart.java
-/ExternalNodeLabelEditPart.java
-/LinkEditPart.java
-/LinkLabelEditPart.java
-/NodeEditPart.java
-/NodeLabelEditPart.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/diagram/editparts/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/diagram/editparts/.gitignore
deleted file mode 100644
index 34f20c26406..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/diagram/editparts/.gitignore
+++ /dev/null
@@ -1,10 +0,0 @@
-/TextAware.java
-/NodeEditPart.java
-/ChildNodeLabelEditPart.java
-/ChoiceUtils_qvto.java
-/CompartmentEditPart.java
-/DiagramEditPart.java
-/LinkEditPart.java
-/LinkLabelEditPart.java
-/NodeLabelEditPart.java
-/ExternalNodeLabelEditPart.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/diagram/update/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/diagram/update/.gitignore
deleted file mode 100644
index ed6fc740e88..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/diagram/update/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/CanonicalUpdate.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/parsers/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/parsers/.gitignore
deleted file mode 100644
index c89b20955f1..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/parsers/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/ParserProvider.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/preferences/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/preferences/.gitignore
deleted file mode 100644
index 6511bd48b3f..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/impl/preferences/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/StandardPage.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/metamodel/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/metamodel/.gitignore
deleted file mode 100644
index 9d2736b6052..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/metamodel/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/Facility.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/.gitignore
deleted file mode 100644
index 773023571e1..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/Common.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/commands/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/commands/.gitignore
deleted file mode 100644
index 5b0df3ff386..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/commands/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/CreateLinkUtils.java
-/CreateNodeCommand.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/edithelpers/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/edithelpers/.gitignore
deleted file mode 100644
index 03f041845c9..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/edithelpers/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/EditHelper.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/editparts/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/editparts/.gitignore
deleted file mode 100644
index 4c1df60d4fc..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/editparts/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/Common.java
-/EditPartFactory.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/editpolicies/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/editpolicies/.gitignore
deleted file mode 100644
index 329ccbbba6f..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/editpolicies/.gitignore
+++ /dev/null
@@ -1,10 +0,0 @@
-/BaseItemSemanticEditPolicy.java
-/CompartmentItemSemanticEditPolicy.java
-/DiagramItemSemanticEditPolicy.java
-/LinkItemSemanticEditPolicy.java
-/NodeItemSemanticEditPolicy.java
-/childContainerCreateCommand.java
-/linkCommands.java
-/TextNonResizableEditPolicy.java
-/Utils_qvto.java
-/OpenDiagram.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/preferences/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/preferences/.gitignore
deleted file mode 100644
index 52c1b8e9b16..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/preferences/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/PreferenceInitializer.java
-/extensions.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/updater/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/updater/.gitignore
deleted file mode 100644
index fd5fcc747d8..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/updater/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/DiagramUpdater.java
-/Extensions.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/updater/UpdateCommand.java b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/updater/UpdateCommand.java
deleted file mode 100644
index a72c0854979..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/updater/UpdateCommand.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/**
- * Copyright (c) 2007, 2009, 2013 Borland Software Corporation and others
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- * Michael Golubev (Montages) - #386838 - migrate to Xtend2
- */
-package aspects.xpt.diagram.updater;
-
-import com.google.inject.Inject;
-import com.google.inject.Singleton;
-import org.eclipse.gmf.codegen.gmfgen.GenDiagramUpdater;
-import org.eclipse.xtend2.lib.StringConcatenation;
-import org.eclipse.xtext.xbase.lib.Extension;
-import xpt.Common;
-
-@Singleton
-@SuppressWarnings("all")
-public class UpdateCommand extends xpt.diagram.updater.UpdateCommand {
- @Inject
- @Extension
- private Common _common;
-
- public CharSequence execute(final GenDiagramUpdater it) {
- StringConcatenation _builder = new StringConcatenation();
- CharSequence _generatedMemberComment = this._common.generatedMemberComment();
- _builder.append(_generatedMemberComment, "");
- _builder.newLineIfNotEmpty();
- _builder.append("public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException {");
- _builder.newLine();
- _builder.append("\t");
- _builder.append("org.eclipse.jface.viewers.ISelection selection = org.eclipse.ui.PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService().getSelection();");
- _builder.newLine();
- _builder.append("\t");
- _builder.append("if (selection instanceof org.eclipse.jface.viewers.IStructuredSelection) {");
- _builder.newLine();
- _builder.append("\t\t");
- _builder.append("org.eclipse.jface.viewers.IStructuredSelection structuredSelection = (org.eclipse.jface.viewers.IStructuredSelection) selection;");
- _builder.newLine();
- _builder.append("\t\t");
- _builder.append("if (structuredSelection.size() != 1) {");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("return null;");
- _builder.newLine();
- _builder.append("\t\t");
- _builder.append("}");
- _builder.newLine();
- _builder.append("\t\t");
- _builder.append("if (structuredSelection.getFirstElement() instanceof org.eclipse.gef.EditPart && ((org.eclipse.gef.EditPart) structuredSelection.getFirstElement()).getModel() instanceof org.eclipse.gmf.runtime.notation.View) {");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("org.eclipse.emf.ecore.EObject modelElement = ((org.eclipse.gmf.runtime.notation.View) ((org.eclipse.gef.EditPart) structuredSelection.getFirstElement()).getModel()).getElement();");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("java.util.List<?> editPolicies = org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy.getRegisteredEditPolicies(modelElement);");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("for (java.util.Iterator<?> it = editPolicies.iterator(); it.hasNext();) {");
- _builder.newLine();
- _builder.append("\t\t\t\t");
- _builder.append("org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy nextEditPolicy = (org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy) it.next();");
- _builder.newLine();
- _builder.append("\t\t\t\t");
- _builder.append("nextEditPolicy.refresh();");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.append("}");
- _builder.newLine();
- _builder.append("\t\t\t");
- _builder.newLine();
- _builder.append("\t\t");
- _builder.append("}");
- _builder.newLine();
- _builder.append("\t");
- _builder.append("}");
- _builder.newLine();
- _builder.append("\t");
- _builder.append("return null;");
- _builder.newLine();
- _builder.append("}");
- _builder.newLine();
- return _builder;
- }
-}
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/views/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/views/.gitignore
deleted file mode 100644
index 9938cca4f24..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/diagram/views/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/ViewStyles.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/editor/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/editor/.gitignore
deleted file mode 100644
index 34e4cdc198a..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/editor/.gitignore
+++ /dev/null
@@ -1,10 +0,0 @@
-/Editor.java
-/DeleteElementAction.java
-/DiagramEditorContextMenuProvider.java
-/VisualIDRegistry.java
-/extensions.java
-/ActionBarContributor.java
-/NewDiagramFileWizard.java
-/DocumentProvider.java
-/ResourceSetModificationListener.java
-/ValidateAction.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/editor/palette/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/editor/palette/.gitignore
deleted file mode 100644
index d09e80a79fb..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/editor/palette/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/Utils_qvto.java
-/PaletteFactory.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/expressions/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/expressions/.gitignore
deleted file mode 100644
index 46426b4fd49..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/expressions/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/AbstractExpression.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/navigator/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/navigator/.gitignore
deleted file mode 100644
index 8dde5108fd1..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/navigator/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-/NavigatorContentProvider.java
-/NavigatorLinkHelper.java
-/AbstractNavigatorItem.java
-/DomainNavigatorContentProvider.java
-/DomainNavigatorItem.java
-/NavigatorGroup.java
-/NavigatorItem.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/plugin/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/plugin/.gitignore
deleted file mode 100644
index eda9879a78f..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/plugin/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-/ActivatorImpl.java
-/manifest.java
-/plugin.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/providers/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/providers/.gitignore
deleted file mode 100644
index 34c0b8e53a8..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/aspects/xpt/providers/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-/ViewProvider.java
-/ElementInitializers.java
-/ValidationDecoratorProvider.java
-/ValidationProvider.java
-/extensions.java
-/ElementTypes.java
-/MarkerNavigationProvider.java
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/utils/.gitignore b/plugins/developer/org.eclipse.papyrus.def/xtend-gen/utils/.gitignore
deleted file mode 100644
index 29475c37723..00000000000
--- a/plugins/developer/org.eclipse.papyrus.def/xtend-gen/utils/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-/EditHelperUtils_qvto.java
-/EditPartsUtils_qvto.java
-/NodeConstraintUtils_qvto.java
-/PrefsConstant_qvto.java
-/UtilsItemSemanticEditPolicy.java
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/pom.xml b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/pom.xml
index 7f14e866e7d..543a7b03be7 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/pom.xml
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/pom.xml
@@ -11,7 +11,7 @@
<groupId>org.eclipse.papyrus</groupId>
<version>1.1.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
-
+
<build>
<plugins>
<plugin>
@@ -22,14 +22,15 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
- <filesets>
- <fileset>
- <directory>xtend-gen</directory>
- <includes>
- <include>**</include>
- </includes>
- </fileset>
- </filesets>
+ <fileset>
+ <directory>xtend-gen</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
+ </fileset>
</configuration>
</plugin>
<plugin>
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/xtend-gen/.gitignore b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/xtend-gen/org/eclipse/papyrus/infra/gmfdiag/generator/.gitignore b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/xtend-gen/org/eclipse/papyrus/infra/gmfdiag/generator/.gitignore
deleted file mode 100644
index d721d4ae5ab..00000000000
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/xtend-gen/org/eclipse/papyrus/infra/gmfdiag/generator/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/CSSGenerator.java
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/xtend-gen/org/eclipse/papyrus/infra/gmfdiag/generator/CSSGenerator.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/xtend-gen/org/eclipse/papyrus/infra/gmfdiag/generator/CSSGenerator.java
deleted file mode 100644
index 4fe96783a9d..00000000000
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.xtext/xtend-gen/org/eclipse/papyrus/infra/gmfdiag/generator/CSSGenerator.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * generated by Xtext
- */
-package org.eclipse.papyrus.infra.gmfdiag.generator;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.generator.IFileSystemAccess;
-import org.eclipse.xtext.generator.IGenerator;
-
-@SuppressWarnings("all")
-public class CSSGenerator implements IGenerator {
- public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
- }
-}
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/pom.xml b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/pom.xml
index 98e4590031e..1df5520a56b 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/pom.xml
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/pom.xml
@@ -21,14 +21,15 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
- <filesets>
- <fileset>
- <directory>xtend-gen</directory>
- <includes>
- <include>**</include>
- </includes>
- </fileset>
- </filesets>
+ <fileset>
+ <directory>xtend-gen</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
+ </fileset>
</configuration>
</plugin>
<plugin>
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/xtend-gen/.gitignore b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/xtend-gen/org/eclipse/papyrus/uml/alf/generator/.gitignore b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/xtend-gen/org/eclipse/papyrus/uml/alf/generator/.gitignore
deleted file mode 100644
index 741ec3c646b..00000000000
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/xtend-gen/org/eclipse/papyrus/uml/alf/generator/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/AlfGenerator.java
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/xtend-gen/org/eclipse/papyrus/uml/alf/generator/AlfGenerator.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/xtend-gen/org/eclipse/papyrus/uml/alf/generator/AlfGenerator.java
deleted file mode 100644
index 42304dc17de..00000000000
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/xtend-gen/org/eclipse/papyrus/uml/alf/generator/AlfGenerator.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.alf.generator;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.generator.IFileSystemAccess;
-import org.eclipse.xtext.generator.IGenerator;
-
-@SuppressWarnings("all")
-public class AlfGenerator implements IGenerator {
- public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/pom.xml b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/pom.xml
index e747ce79e5c..a73ccdd9b3d 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/pom.xml
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/pom.xml
@@ -21,14 +21,15 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
- <filesets>
- <fileset>
- <directory>xtend-gen</directory>
- <includes>
- <include>**</include>
- </includes>
- </fileset>
- </filesets>
+ <fileset>
+ <directory>xtend-gen</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
+ </fileset>
</configuration>
</plugin>
<plugin>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/xtend-gen/.gitignore b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/generator/UmlCollaborationUseGenerator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/generator/UmlCollaborationUseGenerator.java
deleted file mode 100644
index 22007db8a54..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/generator/UmlCollaborationUseGenerator.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.generator.IFileSystemAccess;
-import org.eclipse.xtext.generator.IGenerator;
-
-@SuppressWarnings("all")
-public class UmlCollaborationUseGenerator implements IGenerator {
- public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/pom.xml b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/pom.xml
index 5b07385d8a8..3ec3426e278 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/pom.xml
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/pom.xml
@@ -21,14 +21,15 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
- <filesets>
- <fileset>
- <directory>xtend-gen</directory>
- <includes>
- <include>**</include>
- </includes>
- </fileset>
- </filesets>
+ <fileset>
+ <directory>xtend-gen</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
+ </fileset>
</configuration>
</plugin>
<plugin>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/xtend-gen/.gitignore b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/common/xtext/generator/UmlCommonGenerator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/common/xtext/generator/UmlCommonGenerator.java
deleted file mode 100644
index 3b75db98240..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/common/xtext/generator/UmlCommonGenerator.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.common.xtext.generator;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.generator.IFileSystemAccess;
-import org.eclipse.xtext.generator.IGenerator;
-
-@SuppressWarnings("all")
-public class UmlCommonGenerator implements IGenerator {
- public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/pom.xml b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/pom.xml
index 16ff59f398a..a27e89f5dec 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/pom.xml
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/pom.xml
@@ -21,14 +21,15 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
- <filesets>
- <fileset>
- <directory>xtend-gen</directory>
- <includes>
- <include>**</include>
- </includes>
- </fileset>
- </filesets>
+ <fileset>
+ <directory>xtend-gen</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
+ </fileset>
</configuration>
</plugin>
<plugin>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/xtend-gen/.gitignore b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/generator/UMLConnectionPointReferenceGenerator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/generator/UMLConnectionPointReferenceGenerator.java
deleted file mode 100644
index a8add40b8df..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/generator/UMLConnectionPointReferenceGenerator.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.generator;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.generator.IFileSystemAccess;
-import org.eclipse.xtext.generator.IGenerator;
-
-@SuppressWarnings("all")
-public class UMLConnectionPointReferenceGenerator implements IGenerator {
- public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/pom.xml b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/pom.xml
index f63cfe8c0d6..d1269db3b2c 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/pom.xml
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/pom.xml
@@ -21,14 +21,15 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
- <filesets>
- <fileset>
- <directory>xtend-gen</directory>
- <includes>
- <include>**</include>
- </includes>
- </fileset>
- </filesets>
+ <fileset>
+ <directory>xtend-gen</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
+ </fileset>
</configuration>
</plugin>
<plugin>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/xtend-gen/.gitignore b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/message/xtext/generator/UmlMessageGenerator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/message/xtext/generator/UmlMessageGenerator.java
deleted file mode 100644
index d3895f01558..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/message/xtext/generator/UmlMessageGenerator.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.message.xtext.generator;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.generator.IFileSystemAccess;
-import org.eclipse.xtext.generator.IGenerator;
-
-@SuppressWarnings("all")
-public class UmlMessageGenerator implements IGenerator {
- public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/pom.xml b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/pom.xml
index d9ec76a4045..845af225a0e 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/pom.xml
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/pom.xml
@@ -21,14 +21,15 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
- <filesets>
- <fileset>
- <directory>xtend-gen</directory>
- <includes>
- <include>**</include>
- </includes>
- </fileset>
- </filesets>
+ <fileset>
+ <directory>xtend-gen</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
+ </fileset>
</configuration>
</plugin>
<plugin>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/xtend-gen/.gitignore b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/generator/UmlParameterGenerator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/generator/UmlParameterGenerator.java
deleted file mode 100644
index 807ed6d8d5d..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/generator/UmlParameterGenerator.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.parameter.xtext.generator;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.generator.IFileSystemAccess;
-import org.eclipse.xtext.generator.IGenerator;
-
-@SuppressWarnings("all")
-public class UmlParameterGenerator implements IGenerator {
- public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/pom.xml b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/pom.xml
index 070ecc3ecab..f7dc875983e 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/pom.xml
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/pom.xml
@@ -21,14 +21,15 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
- <filesets>
- <fileset>
- <directory>xtend-gen</directory>
- <includes>
- <include>**</include>
- </includes>
- </fileset>
- </filesets>
+ <fileset>
+ <directory>xtend-gen</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
+ </fileset>
</configuration>
</plugin>
<plugin>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/xtend-gen/.gitignore b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/pom.xml b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/pom.xml
index f96bac2142f..d35ee13ac2b 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/pom.xml
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/pom.xml
@@ -21,14 +21,15 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
- <filesets>
- <fileset>
- <directory>xtend-gen</directory>
- <includes>
- <include>**</include>
- </includes>
- </fileset>
- </filesets>
+ <fileset>
+ <directory>xtend-gen</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
+ </fileset>
</configuration>
</plugin>
<plugin>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/xtend-gen/.gitignore b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/property/xtext/generator/UmlPropertyGenerator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/property/xtext/generator/UmlPropertyGenerator.java
deleted file mode 100644
index 6645a7bd68d..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/property/xtext/generator/UmlPropertyGenerator.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Copyright (c) 2012 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.generator;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.generator.IFileSystemAccess;
-import org.eclipse.xtext.generator.IGenerator;
-
-@SuppressWarnings("all")
-public class UmlPropertyGenerator implements IGenerator {
- public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/pom.xml b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/pom.xml
index 38bd6618521..40db6e0a9a2 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/pom.xml
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/pom.xml
@@ -21,14 +21,15 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
- <filesets>
- <fileset>
- <directory>xtend-gen</directory>
- <includes>
- <include>**</include>
- </includes>
- </fileset>
- </filesets>
+ <fileset>
+ <directory>xtend-gen</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
+ </fileset>
</configuration>
</plugin>
<plugin>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/xtend-gen/.gitignore b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/state/xtext/generator/UmlStateGenerator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/state/xtext/generator/UmlStateGenerator.java
deleted file mode 100644
index 901fbdc48af..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/state/xtext/generator/UmlStateGenerator.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.state.xtext.generator;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.generator.IFileSystemAccess;
-import org.eclipse.xtext.generator.IGenerator;
-
-@SuppressWarnings("all")
-public class UmlStateGenerator implements IGenerator {
- public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/pom.xml b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/pom.xml
index 3fd7e34a1d3..501caae9cee 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/pom.xml
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/pom.xml
@@ -22,14 +22,15 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
- <filesets>
- <fileset>
- <directory>xtend-gen</directory>
- <includes>
- <include>**</include>
- </includes>
- </fileset>
- </filesets>
+ <fileset>
+ <directory>xtend-gen</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>.gitignore</exclude>
+ </excludes>
+ </fileset>
</configuration>
</plugin>
<plugin>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/.gitignore b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/.gitignore
new file mode 100644
index 00000000000..c96a04f008e
--- /dev/null
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/generator/.gitignore b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/generator/.gitignore
deleted file mode 100644
index a0052c6edd0..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/generator/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/AppliedStereotypePropertyGenerator.java
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/generator/AppliedStereotypePropertyGenerator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/generator/AppliedStereotypePropertyGenerator.java
deleted file mode 100644
index 88dd9a1de5b..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/xtend-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/generator/AppliedStereotypePropertyGenerator.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.generator;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.generator.IFileSystemAccess;
-import org.eclipse.xtext.generator.IGenerator;
-
-@SuppressWarnings("all")
-public class AppliedStereotypePropertyGenerator implements IGenerator {
- public void doGenerate(final Resource resource, final IFileSystemAccess fsa) {
- }
-}

Back to the top