Skip to content

Commit 356a38c

Browse files
committed
Fixed #542 Add template visibility.
1 parent 8ac517a commit 356a38c

File tree

356 files changed

+1052
-203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

356 files changed

+1052
-203
lines changed

plugins/org.obeonetwork.m2doc/model/Template.ecore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@
9898
<eClassifiers xsi:type="ecore:EClass" name="Statement" abstract="true" interface="true"
9999
eSuperTypes="#//IConstruct"/>
100100
<eClassifiers xsi:type="ecore:EClass" name="Template" eSuperTypes="#//IConstruct">
101+
<eStructuralFeatures xsi:type="ecore:EAttribute" name="visibility" lowerBound="1"
102+
eType="#//Visibility">
103+
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
104+
<details key="documentation" value="The template visibility."/>
105+
</eAnnotations>
106+
</eStructuralFeatures>
101107
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
102108
<eStructuralFeatures xsi:type="ecore:EReference" name="parameters" lowerBound="1"
103109
upperBound="-1" eType="#//Parameter" containment="true"/>
@@ -188,4 +194,12 @@
188194
</eClassifiers>
189195
<eClassifiers xsi:type="ecore:EDataType" name="CTSdtBlock" instanceClassName="org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtBlock"/>
190196
<eClassifiers xsi:type="ecore:EClass" name="IGenerateable" abstract="true" interface="true"/>
197+
<eClassifiers xsi:type="ecore:EEnum" name="Visibility">
198+
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
199+
<details key="documentation" value="The visibility defines how an element is visible from other documents."/>
200+
</eAnnotations>
201+
<eLiterals name="private"/>
202+
<eLiterals name="protected" value="1"/>
203+
<eLiterals name="public" value="2"/>
204+
</eClassifiers>
191205
</ecore:EPackage>

plugins/org.obeonetwork.m2doc/model/Template.genmodel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
3-
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText=" Copyright (c) 2016, 2020 Obeo. &#xD;&#xA; All rights reserved. This program and the accompanying materials&#xD;&#xA; are made available under the terms of the Eclipse Public License v2.0&#xD;&#xA; which accompanies this distribution, and is available at&#xD;&#xA; http://www.eclipse.org/legal/epl-v20.html&#xD;&#xA; &#xD;&#xA; Contributors:&#xD;&#xA; Obeo - initial API and implementation"
3+
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText=" Copyright (c) 2016, 2025 Obeo. &#xD;&#xA; All rights reserved. This program and the accompanying materials&#xD;&#xA; are made available under the terms of the Eclipse Public License v2.0&#xD;&#xA; which accompanies this distribution, and is available at&#xD;&#xA; http://www.eclipse.org/legal/epl-v20.html&#xD;&#xA; &#xD;&#xA; Contributors:&#xD;&#xA; Obeo - initial API and implementation"
44
modelDirectory="/org.obeonetwork.m2doc/src-gen" editDirectory="/org.obeonetwork.m2doc.edit/src-gen"
55
editorDirectory="/org.ecliplse.gendoc2.editor/src-gen" modelPluginID="org.obeonetwork.m2doc"
66
modelName="Template" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
@@ -13,6 +13,11 @@
1313
<genEnumLiterals ecoreEnumLiteral="Template.ecore#//POSITION/ABOVE"/>
1414
<genEnumLiterals ecoreEnumLiteral="Template.ecore#//POSITION/BELOW"/>
1515
</genEnums>
16+
<genEnums typeSafeEnumCompatible="false" ecoreEnum="Template.ecore#//Visibility">
17+
<genEnumLiterals ecoreEnumLiteral="Template.ecore#//Visibility/private"/>
18+
<genEnumLiterals ecoreEnumLiteral="Template.ecore#//Visibility/protected"/>
19+
<genEnumLiterals ecoreEnumLiteral="Template.ecore#//Visibility/public"/>
20+
</genEnums>
1621
<genDataTypes ecoreDataType="Template.ecore#//InputStream"/>
1722
<genDataTypes ecoreDataType="Template.ecore#//OPCPackage"/>
1823
<genDataTypes ecoreDataType="Template.ecore#//Document"/>
@@ -59,6 +64,7 @@
5964
</genClasses>
6065
<genClasses image="false" ecoreClass="Template.ecore#//Statement"/>
6166
<genClasses ecoreClass="Template.ecore#//Template">
67+
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Template.ecore#//Template/visibility"/>
6268
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Template.ecore#//Template/name"/>
6369
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Template.ecore#//Template/parameters"/>
6470
<genFeatures createChild="false" ecoreFeature="ecore:EReference Template.ecore#//Template/body"/>

plugins/org.obeonetwork.m2doc/src-gen/org/obeonetwork/m2doc/template/Block.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public interface Block extends IConstruct {
3434
*
3535
* @generated
3636
*/
37-
String copyright = " Copyright (c) 2016 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
37+
String copyright = " Copyright (c) 2016, 2025 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
3838

3939
/**
4040
* Returns the value of the '<em><b>Statements</b></em>' containment reference list.

plugins/org.obeonetwork.m2doc/src-gen/org/obeonetwork/m2doc/template/Bookmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public interface Bookmark extends Statement {
3535
*
3636
* @generated
3737
*/
38-
String copyright = " Copyright (c) 2016 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
38+
String copyright = " Copyright (c) 2016, 2025 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
3939

4040
/**
4141
* Returns the value of the '<em><b>Name</b></em>' attribute.

plugins/org.obeonetwork.m2doc/src-gen/org/obeonetwork/m2doc/template/Cell.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public interface Cell extends EObject {
3636
*
3737
* @generated
3838
*/
39-
String copyright = " Copyright (c) 2016 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
39+
String copyright = " Copyright (c) 2016, 2025 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
4040

4141
/**
4242
* Returns the value of the '<em><b>Body</b></em>' containment reference.

plugins/org.obeonetwork.m2doc/src-gen/org/obeonetwork/m2doc/template/Comment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public interface Comment extends Statement {
3333
*
3434
* @generated
3535
*/
36-
String copyright = " Copyright (c) 2016 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
36+
String copyright = " Copyright (c) 2016, 2025 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
3737

3838
/**
3939
* Returns the value of the '<em><b>Text</b></em>' attribute.

plugins/org.obeonetwork.m2doc/src-gen/org/obeonetwork/m2doc/template/Conditional.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public interface Conditional extends Statement {
3939
*
4040
* @generated
4141
*/
42-
String copyright = " Copyright (c) 2016 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
42+
String copyright = " Copyright (c) 2016, 2025 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
4343

4444
/**
4545
* Returns the value of the '<em><b>Condition</b></em>' attribute.

plugins/org.obeonetwork.m2doc/src-gen/org/obeonetwork/m2doc/template/ContentControl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public interface ContentControl extends Statement {
3434
*
3535
* @generated
3636
*/
37-
String copyright = " Copyright (c) 2016 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
37+
String copyright = " Copyright (c) 2016, 2025 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
3838

3939
/**
4040
* Returns the value of the '<em><b>Block</b></em>' attribute.

plugins/org.obeonetwork.m2doc/src-gen/org/obeonetwork/m2doc/template/DocumentTemplate.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ public interface DocumentTemplate extends IGenerateable, Closeable {
200200
/**
201201
* Returns the value of the '<em><b>Templates</b></em>' containment reference list.
202202
* The list contents are of type {@link org.obeonetwork.m2doc.template.Template}.
203-
* It is bidirectional and its opposite is '{@link org.obeonetwork.m2doc.template.Template#getDocumentTemplate <em>Document Template</em>}'.
203+
* It is bidirectional and its opposite is '{@link org.obeonetwork.m2doc.template.Template#getDocumentTemplate <em>Document
204+
* Template</em>}'.
204205
* <!-- begin-user-doc -->
205206
* <p>
206207
* If the meaning of the '<em>Templates</em>' reference list isn't clear,

plugins/org.obeonetwork.m2doc/src-gen/org/obeonetwork/m2doc/template/IConstruct.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public interface IConstruct extends IGenerateable {
3939
*
4040
* @generated
4141
*/
42-
String copyright = " Copyright (c) 2016 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
42+
String copyright = " Copyright (c) 2016, 2025 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
4343

4444
/**
4545
* Returns the value of the '<em><b>Style Run</b></em>' attribute.

0 commit comments

Comments
 (0)