Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2019-10-07 12:43:20 +0000
committerVincent Lorenzo2019-10-07 13:58:38 +0000
commit327c493a01f37ce892bf5c66fe0d8bcda6411f4b (patch)
tree5ea78399236a948c3e42c650fa5b942f76211fcf
parentc4577706e55a9dde78d260fa48b95935eb04161a (diff)
downloadorg.eclipse.papyrus-model2doc-327c493a01f37ce892bf5c66fe0d8bcda6411f4b.tar.gz
org.eclipse.papyrus-model2doc-327c493a01f37ce892bf5c66fe0d8bcda6411f4b.tar.xz
org.eclipse.papyrus-model2doc-327c493a01f37ce892bf5c66fe0d8bcda6411f4b.zip
Bug 551847: [Model2Doc] Add the table of figures concept in the document structure
Change-Id: Ia9078fa2cc3b89ed2a387ae8da34318d7ef9ed50 Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/customIcons/TableOfFigures.gifbin0 -> 874 bytes
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/icons/full/obj16/TableOfFigures.gifbin0 -> 874 bytes
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/plugin.properties2
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/DocumentStructureItemProviderAdapterFactory.java28
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/TableOfFiguresItemProvider.java187
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/TextDocumentItemProvider.java3
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.ecore21
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.genmodel3
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.notation49
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.uml19
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/DocumentStructureFactory.java10
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/DocumentStructurePackage.java98
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/TableOfContents.java7
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/TableOfFigures.java67
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/DocumentStructureFactoryImpl.java14
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/DocumentStructurePackageImpl.java38
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/TableOfFiguresImpl.java190
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/util/DocumentStructureAdapterFactory.java20
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/util/DocumentStructureSwitch.java28
19 files changed, 774 insertions, 10 deletions
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/customIcons/TableOfFigures.gif b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/customIcons/TableOfFigures.gif
new file mode 100755
index 00000000..d838a6da
--- /dev/null
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/customIcons/TableOfFigures.gif
Binary files differ
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/icons/full/obj16/TableOfFigures.gif b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/icons/full/obj16/TableOfFigures.gif
new file mode 100755
index 00000000..d838a6da
--- /dev/null
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/icons/full/obj16/TableOfFigures.gif
Binary files differ
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/plugin.properties b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/plugin.properties
index 6afcb15b..c3284503 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/plugin.properties
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/plugin.properties
@@ -60,3 +60,5 @@ _UI_StringVersion_type = String Version
_UI_Document_version_feature = Version
_UI_StringVersion_version_feature = Version
_UI_InsertedFile_type = Inserted File
+_UI_TableOfFigures_type = Table Of Figures
+_UI_TableOfFigures_tofTitle_feature = Tof Title
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/DocumentStructureItemProviderAdapterFactory.java b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/DocumentStructureItemProviderAdapterFactory.java
index 658603a2..db357cb5 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/DocumentStructureItemProviderAdapterFactory.java
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/DocumentStructureItemProviderAdapterFactory.java
@@ -268,6 +268,31 @@ public class DocumentStructureItemProviderAdapterFactory extends DocumentStructu
}
/**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected TableOfFiguresItemProvider tableOfFiguresItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createTableOfFiguresAdapter() {
+ if (tableOfFiguresItemProvider == null) {
+ tableOfFiguresItemProvider = new TableOfFiguresItemProvider(this);
+ }
+
+ return tableOfFiguresItemProvider;
+ }
+
+ /**
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfContents} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -606,6 +631,9 @@ public class DocumentStructureItemProviderAdapterFactory extends DocumentStructu
if (emfDataSourceItemProvider != null) {
emfDataSourceItemProvider.dispose();
}
+ if (tableOfFiguresItemProvider != null) {
+ tableOfFiguresItemProvider.dispose();
+ }
if (tableOfContentsItemProvider != null) {
tableOfContentsItemProvider.dispose();
}
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/TableOfFiguresItemProvider.java b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/TableOfFiguresItemProvider.java
new file mode 100755
index 00000000..77a9ecf1
--- /dev/null
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/TableOfFiguresItemProvider.java
@@ -0,0 +1,187 @@
+/**
+ * Copyright (c) 2019 CEA LIST.
+ *
+ * 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:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ */
+package org.eclipse.papyrus.model2doc.emf.documentstructure.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IChildCreationExtender;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.model2doc.emf.documentstructure.DocumentStructurePackage;
+import org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class TableOfFiguresItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public TableOfFiguresItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addTofTitlePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Tof Title feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addTofTitlePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_TableOfFigures_tofTitle_feature"), //$NON-NLS-1$
+ getString("_UI_PropertyDescriptor_description", "_UI_TableOfFigures_tofTitle_feature", "_UI_TableOfFigures_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ DocumentStructurePackage.Literals.TABLE_OF_FIGURES__TOF_TITLE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns TableOfFigures.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/TableOfFigures")); //$NON-NLS-1$
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected boolean shouldComposeCreationImage() {
+ return true;
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((TableOfFigures) object).getTofTitle();
+ return label == null || label.length() == 0 ? getString("_UI_TableOfFigures_type") : //$NON-NLS-1$
+ getString("_UI_TableOfFigures_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(TableOfFigures.class)) {
+ case DocumentStructurePackage.TABLE_OF_FIGURES__TOF_TITLE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return ((IChildCreationExtender) adapterFactory).getResourceLocator();
+ }
+
+}
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/TextDocumentItemProvider.java b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/TextDocumentItemProvider.java
index d7e9f383..cab028fa 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/TextDocumentItemProvider.java
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure.edit/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/provider/TextDocumentItemProvider.java
@@ -231,6 +231,9 @@ public class TextDocumentItemProvider
DocumentStructureFactory.eINSTANCE.createBody()));
newChildDescriptors.add(createChildParameter(DocumentStructurePackage.Literals.TEXT_DOCUMENT__TEXT_DOCUMENT_PART,
+ DocumentStructureFactory.eINSTANCE.createTableOfFigures()));
+
+ newChildDescriptors.add(createChildParameter(DocumentStructurePackage.Literals.TEXT_DOCUMENT__TEXT_DOCUMENT_PART,
DocumentStructureFactory.eINSTANCE.createTableOfContents()));
}
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.ecore b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.ecore
index c0149707..f5ffc2b2 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.ecore
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.ecore
@@ -84,10 +84,29 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="feature" ordered="false"
lowerBound="1" eType="ecore:EClass ../../org.eclipse.emf.ecore/model/Ecore.ecore#//EStructuralFeature"/>
</eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="TableOfFigures" eSuperTypes="#//TextDocumentPart">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This element represents a Table Of Figures in the final document."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="tofTitle" ordered="false"
+ lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ defaultValueLiteral="Table Of Figures">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The title to use for the created Table of Figures."/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="TableOfContents" eSuperTypes="#//TextDocumentPart">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="This element represents a Table Of Contents in the final document."/>
+ </eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="tocTitle" ordered="false"
lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
- defaultValueLiteral="Table Of Contents"/>
+ defaultValueLiteral="Table Of Contents">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The title to use for the created Table of Contents."/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ExtendedBasicTable" eSuperTypes="../../org.eclipse.papyrus.model2doc.core.builtintypes/model/BuiltInTypes.ecore#//BasicTable #//LeafBodyPart">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.genmodel b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.genmodel
index 482e5c06..d4ec0db6 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.genmodel
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.genmodel
@@ -91,6 +91,9 @@
<genFeatures xsi:type="genmodel:GenFeature" notify="false" createChild="false"
propertySortChoices="true" ecoreFeature="ecore:EReference documentstructure.ecore#//EMFDataSource/feature"/>
</genClasses>
+ <genClasses xsi:type="genmodel:GenClass" ecoreClass="documentstructure.ecore#//TableOfFigures">
+ <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute documentstructure.ecore#//TableOfFigures/tofTitle"/>
+ </genClasses>
<genClasses xsi:type="genmodel:GenClass" ecoreClass="documentstructure.ecore#//TableOfContents">
<genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute documentstructure.ecore#//TableOfContents/tocTitle"/>
</genClasses>
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.notation b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.notation
index 5986d5fa..fed5cff8 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.notation
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.notation
@@ -870,6 +870,36 @@
<element xmi:type="uml:Class" href="documentstructure.uml#_fUOtIJcXEemjzoOvLRrzSw"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_fUhBAZcXEemjzoOvLRrzSw" x="1040" y="900" width="161" height="101"/>
</children>
+ <children xmi:type="notation:Shape" xmi:id="_aWLU4Oj_Eem_UoEukOln_g" type="Class_Shape">
+ <children xmi:type="notation:DecorationNode" xmi:id="_aWNxIOj_Eem_UoEukOln_g" type="Class_NameLabel"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_aWNxIej_Eem_UoEukOln_g" type="Class_FloatingNameLabel">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_aWNxIuj_Eem_UoEukOln_g" y="15"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_aWTQsOj_Eem_UoEukOln_g" type="Class_AttributeCompartment">
+ <children xmi:type="notation:Shape" xmi:id="_gzk2IOj_Eem_UoEukOln_g" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="documentstructure.uml#_Tk-G0ej_Eem_UoEukOln_g"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gzk2Iej_Eem_UoEukOln_g"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_aWTQsej_Eem_UoEukOln_g"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_aWTQsuj_Eem_UoEukOln_g"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_aWTQs-j_Eem_UoEukOln_g"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_aWTQtOj_Eem_UoEukOln_g"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_aWTQtej_Eem_UoEukOln_g" type="Class_OperationCompartment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_aWTQtuj_Eem_UoEukOln_g"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_aWTQt-j_Eem_UoEukOln_g"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_aWTQuOj_Eem_UoEukOln_g"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_aWTQuej_Eem_UoEukOln_g"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_aWTQuuj_Eem_UoEukOln_g" type="Class_NestedClassifierCompartment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_aWTQu-j_Eem_UoEukOln_g"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_aWTQvOj_Eem_UoEukOln_g"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_aWTQvej_Eem_UoEukOln_g"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_aWTQvuj_Eem_UoEukOln_g"/>
+ </children>
+ <element xmi:type="uml:Class" href="documentstructure.uml#_Tk-G0Oj_Eem_UoEukOln_g"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_aWLU4ej_Eem_UoEukOln_g" x="480" y="20" width="161"/>
+ </children>
<styles xmi:type="notation:StringValueStyle" xmi:id="_-L-nQR4fEemmq_cjeiIGww" name="diagram_compatibility_version" stringValue="1.4.0"/>
<styles xmi:type="notation:DiagramStyle" xmi:id="_-L-nQh4fEemmq_cjeiIGww"/>
<styles xmi:type="style:PapyrusDiagramStyle" xmi:id="_-L-nQx4fEemmq_cjeiIGww" diagramKindId="org.eclipse.papyrus.uml.diagram.class">
@@ -1010,8 +1040,8 @@
</children>
<styles xmi:type="notation:FontStyle" xmi:id="_Z2dt8UUHEemuabBpL8rs_Q"/>
<element xmi:type="uml:InterfaceRealization" href="documentstructure.uml#_Z0f_EEUHEemuabBpL8rs_Q"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Z2dt8kUHEemuabBpL8rs_Q" points="[800, 20, -643984, -643984]$[800, -40, -643984, -643984]$[860, -40, -643984, -643984]$[860, -116, -643984, -643984]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Z6c2EEUHEemuabBpL8rs_Q" id="(0.7453416149068323,0.0)"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Z2dt8kUHEemuabBpL8rs_Q" points="[760, 20, -643984, -643984]$[760, -40, -643984, -643984]$[860, -40, -643984, -643984]$[860, -119, -643984, -643984]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Z6c2EEUHEemuabBpL8rs_Q" id="(0.4968944099378882,0.0)"/>
<targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Z6c2EUUHEemuabBpL8rs_Q" id="(0.4975124378109453,1.0)"/>
</edges>
<edges xmi:type="notation:Connector" xmi:id="_a6nSkEUHEemuabBpL8rs_Q" type="InterfaceRealization_Edge" source="_CWLW0B4gEemmq_cjeiIGww" target="_5oejgEUGEemuabBpL8rs_Q" routing="Rectilinear">
@@ -1365,6 +1395,21 @@
<sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_v6swIJcXEemjzoOvLRrzSw" id="(0.0,0.39603960396039606)"/>
<targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_v6swIZcXEemjzoOvLRrzSw" id="(0.4968944099378882,1.0)"/>
</edges>
+ <edges xmi:type="notation:Connector" xmi:id="_d297EOj_Eem_UoEukOln_g" type="InterfaceRealization_Edge" source="_aWLU4Oj_Eem_UoEukOln_g" target="_5oejgEUGEemuabBpL8rs_Q">
+ <children xmi:type="notation:DecorationNode" xmi:id="_d297E-j_Eem_UoEukOln_g" type="InterfaceRealization_StereotypeLabel">
+ <styles xmi:type="notation:BooleanValueStyle" xmi:id="_eO_ZgOj_Eem_UoEukOln_g" name="IS_UPDATED_POSITION" booleanValue="true"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_d297FOj_Eem_UoEukOln_g" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_d297Fej_Eem_UoEukOln_g" type="InterfaceRealization_NameLabel">
+ <styles xmi:type="notation:BooleanValueStyle" xmi:id="_eP_fEOj_Eem_UoEukOln_g" name="IS_UPDATED_POSITION" booleanValue="true"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_d297Fuj_Eem_UoEukOln_g" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_d297Eej_Eem_UoEukOln_g"/>
+ <element xmi:type="uml:InterfaceRealization" href="documentstructure.uml#_Tk-G0-j_Eem_UoEukOln_g"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_d297Euj_Eem_UoEukOln_g" points="[560, 20, -643984, -643984]$[560, -40, -643984, -643984]$[860, -40, -643984, -643984]$[860, -119, -643984, -643984]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_eN6bcOj_Eem_UoEukOln_g" id="(0.4968944099378882,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_eN6bcej_Eem_UoEukOln_g" id="(0.4975124378109453,1.0)"/>
+ </edges>
</notation:Diagram>
<css:ModelStyleSheets xmi:id="_MwqUgB4nEemmq_cjeiIGww">
<stylesheets xmi:type="css:StyleSheetReference" xmi:id="_Mwq7kB4nEemmq_cjeiIGww" path="/org.eclipse.papyrus.model2doc.emf.documentstructure/model/custom.css"/>
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.uml b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.uml
index b8c4804b..aa7dff1b 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.uml
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/model/documentstructure.uml
@@ -107,8 +107,27 @@
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_ZfJAIYzyEem126L41vD09A" value="1"/>
</ownedAttribute>
</packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_Tk-G0Oj_Eem_UoEukOln_g" name="TableOfFigures">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_qsHokOj_Eem_UoEukOln_g" annotatedElement="_Tk-G0Oj_Eem_UoEukOln_g">
+ <body>This element represents a Table Of Figures in the final document.</body>
+ </ownedComment>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_Tk-G0ej_Eem_UoEukOln_g" name="tofTitle">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_xpV5YOj_Eem_UoEukOln_g" annotatedElement="_Tk-G0ej_Eem_UoEukOln_g">
+ <body>The title to use for the created Table of Figures.</body>
+ </ownedComment>
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
+ <defaultValue xmi:type="uml:LiteralString" xmi:id="_Tk-G0uj_Eem_UoEukOln_g" name="DEFAULT_TOF_TITLE" value="Table Of Figures"/>
+ </ownedAttribute>
+ <interfaceRealization xmi:type="uml:InterfaceRealization" xmi:id="_Tk-G0-j_Eem_UoEukOln_g" client="_Tk-G0Oj_Eem_UoEukOln_g" supplier="_5oa5IEUGEemuabBpL8rs_Q" contract="_5oa5IEUGEemuabBpL8rs_Q"/>
+ </packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="_ZnvK4EUGEemuabBpL8rs_Q" name="TableOfContents">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_tEZHgOj_Eem_UoEukOln_g" annotatedElement="_ZnvK4EUGEemuabBpL8rs_Q">
+ <body>This element represents a Table Of Contents in the final document.</body>
+ </ownedComment>
<ownedAttribute xmi:type="uml:Property" xmi:id="_qq5tMEl1Eem4wpUXttaNpQ" name="tocTitle">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_wWCecOj_Eem_UoEukOln_g" annotatedElement="_qq5tMEl1Eem4wpUXttaNpQ">
+ <body>The title to use for the created Table of Contents.</body>
+ </ownedComment>
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EString"/>
<defaultValue xmi:type="uml:LiteralString" xmi:id="_ztZocEl1Eem4wpUXttaNpQ" name="DEFAULT_TOC_TITLE" value="Table Of Contents"/>
</ownedAttribute>
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/DocumentStructureFactory.java b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/DocumentStructureFactory.java
index 965f78fb..b42922fd 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/DocumentStructureFactory.java
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/DocumentStructureFactory.java
@@ -95,6 +95,16 @@ public interface DocumentStructureFactory extends EFactory {
EMFDataSource createEMFDataSource();
/**
+ * Returns a new object of class '<em>Table Of Figures</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Table Of Figures</em>'.
+ * @generated
+ */
+ TableOfFigures createTableOfFigures();
+
+ /**
* Returns a new object of class '<em>Table Of Contents</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/DocumentStructurePackage.java b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/DocumentStructurePackage.java
index 71ca6e61..daa0a399 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/DocumentStructurePackage.java
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/DocumentStructurePackage.java
@@ -740,6 +740,47 @@ public interface DocumentStructurePackage extends EPackage {
int EMF_DATA_SOURCE_OPERATION_COUNT = DATA_SOURCE_OPERATION_COUNT + 0;
/**
+ * The meta object id for the '{@link org.eclipse.papyrus.model2doc.emf.documentstructure.impl.TableOfFiguresImpl <em>Table Of Figures</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.model2doc.emf.documentstructure.impl.TableOfFiguresImpl
+ * @see org.eclipse.papyrus.model2doc.emf.documentstructure.impl.DocumentStructurePackageImpl#getTableOfFigures()
+ * @generated
+ */
+ int TABLE_OF_FIGURES = 13;
+
+ /**
+ * The feature id for the '<em><b>Tof Title</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int TABLE_OF_FIGURES__TOF_TITLE = TEXT_DOCUMENT_PART_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Table Of Figures</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int TABLE_OF_FIGURES_FEATURE_COUNT = TEXT_DOCUMENT_PART_FEATURE_COUNT + 1;
+
+ /**
+ * The number of operations of the '<em>Table Of Figures</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int TABLE_OF_FIGURES_OPERATION_COUNT = TEXT_DOCUMENT_PART_OPERATION_COUNT + 0;
+
+ /**
* The meta object id for the '{@link org.eclipse.papyrus.model2doc.emf.documentstructure.impl.TableOfContentsImpl <em>Table Of Contents</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -748,7 +789,7 @@ public interface DocumentStructurePackage extends EPackage {
* @see org.eclipse.papyrus.model2doc.emf.documentstructure.impl.DocumentStructurePackageImpl#getTableOfContents()
* @generated
*/
- int TABLE_OF_CONTENTS = 13;
+ int TABLE_OF_CONTENTS = 14;
/**
* The feature id for the '<em><b>Toc Title</b></em>' attribute.
@@ -789,7 +830,7 @@ public interface DocumentStructurePackage extends EPackage {
* @see org.eclipse.papyrus.model2doc.emf.documentstructure.impl.DocumentStructurePackageImpl#getExtendedBasicTable()
* @generated
*/
- int EXTENDED_BASIC_TABLE = 14;
+ int EXTENDED_BASIC_TABLE = 15;
/**
* The feature id for the '<em><b>Caption</b></em>' attribute.
@@ -880,7 +921,7 @@ public interface DocumentStructurePackage extends EPackage {
* @see org.eclipse.papyrus.model2doc.emf.documentstructure.impl.DocumentStructurePackageImpl#getExtendedTextCell()
* @generated
*/
- int EXTENDED_TEXT_CELL = 15;
+ int EXTENDED_TEXT_CELL = 16;
/**
* The feature id for the '<em><b>Location</b></em>' attribute.
@@ -941,7 +982,7 @@ public interface DocumentStructurePackage extends EPackage {
* @see org.eclipse.papyrus.model2doc.emf.documentstructure.impl.DocumentStructurePackageImpl#getExtendedBasicList()
* @generated
*/
- int EXTENDED_BASIC_LIST = 16;
+ int EXTENDED_BASIC_LIST = 17;
/**
* The feature id for the '<em><b>Items</b></em>' containment reference list.
@@ -992,7 +1033,7 @@ public interface DocumentStructurePackage extends EPackage {
* @see org.eclipse.papyrus.model2doc.emf.documentstructure.impl.DocumentStructurePackageImpl#getExtendedTextListItem()
* @generated
*/
- int EXTENDED_TEXT_LIST_ITEM = 17;
+ int EXTENDED_TEXT_LIST_ITEM = 18;
/**
* The feature id for the '<em><b>Sub Items</b></em>' containment reference list.
@@ -1064,7 +1105,7 @@ public interface DocumentStructurePackage extends EPackage {
* @see org.eclipse.papyrus.model2doc.emf.documentstructure.impl.DocumentStructurePackageImpl#getStringVersion()
* @generated
*/
- int STRING_VERSION = 18;
+ int STRING_VERSION = 19;
/**
* The feature id for the '<em><b>Version</b></em>' attribute.
@@ -1116,7 +1157,7 @@ public interface DocumentStructurePackage extends EPackage {
* @see org.eclipse.papyrus.model2doc.emf.documentstructure.impl.DocumentStructurePackageImpl#getInsertedFile()
* @generated
*/
- int INSERTED_FILE = 19;
+ int INSERTED_FILE = 20;
/**
* The feature id for the '<em><b>File Path</b></em>' attribute.
@@ -1503,6 +1544,29 @@ public interface DocumentStructurePackage extends EPackage {
EReference getEMFDataSource_Feature();
/**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures <em>Table Of Figures</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Table Of Figures</em>'.
+ * @see org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures
+ * @generated
+ */
+ EClass getTableOfFigures();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures#getTofTitle <em>Tof Title</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Tof Title</em>'.
+ * @see org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures#getTofTitle()
+ * @see #getTableOfFigures()
+ * @generated
+ */
+ EAttribute getTableOfFigures_TofTitle();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfContents <em>Table Of Contents</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1940,6 +2004,26 @@ public interface DocumentStructurePackage extends EPackage {
EReference EMF_DATA_SOURCE__FEATURE = eINSTANCE.getEMFDataSource_Feature();
/**
+ * The meta object literal for the '{@link org.eclipse.papyrus.model2doc.emf.documentstructure.impl.TableOfFiguresImpl <em>Table Of Figures</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.model2doc.emf.documentstructure.impl.TableOfFiguresImpl
+ * @see org.eclipse.papyrus.model2doc.emf.documentstructure.impl.DocumentStructurePackageImpl#getTableOfFigures()
+ * @generated
+ */
+ EClass TABLE_OF_FIGURES = eINSTANCE.getTableOfFigures();
+
+ /**
+ * The meta object literal for the '<em><b>Tof Title</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute TABLE_OF_FIGURES__TOF_TITLE = eINSTANCE.getTableOfFigures_TofTitle();
+
+ /**
* The meta object literal for the '{@link org.eclipse.papyrus.model2doc.emf.documentstructure.impl.TableOfContentsImpl <em>Table Of Contents</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/TableOfContents.java b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/TableOfContents.java
index ef2755ac..33d2c9f9 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/TableOfContents.java
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/TableOfContents.java
@@ -19,6 +19,10 @@ package org.eclipse.papyrus.model2doc.emf.documentstructure;
* A representation of the model object '<em><b>Table Of Contents</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * This element represents a Table Of Contents in the final document.
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* </p>
@@ -40,6 +44,9 @@ public interface TableOfContents extends TextDocumentPart {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The title to use for the created Table of Contents.
+ * <!-- end-model-doc -->
*
* @return the value of the '<em>Toc Title</em>' attribute.
* @see #setTocTitle(String)
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/TableOfFigures.java b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/TableOfFigures.java
new file mode 100755
index 00000000..0637a3e3
--- /dev/null
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/TableOfFigures.java
@@ -0,0 +1,67 @@
+/**
+ * Copyright (c) 2019 CEA LIST.
+ *
+ * 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:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ */
+package org.eclipse.papyrus.model2doc.emf.documentstructure;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Table Of Figures</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * This element represents a Table Of Figures in the final document.
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures#getTofTitle <em>Tof Title</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.model2doc.emf.documentstructure.DocumentStructurePackage#getTableOfFigures()
+ * @model
+ * @generated
+ */
+public interface TableOfFigures extends TextDocumentPart {
+ /**
+ * Returns the value of the '<em><b>Tof Title</b></em>' attribute.
+ * The default value is <code>"Table Of Figures"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The title to use for the created Table of Figures.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Tof Title</em>' attribute.
+ * @see #setTofTitle(String)
+ * @see org.eclipse.papyrus.model2doc.emf.documentstructure.DocumentStructurePackage#getTableOfFigures_TofTitle()
+ * @model default="Table Of Figures" required="true" ordered="false"
+ * @generated
+ */
+ String getTofTitle();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures#getTofTitle <em>Tof Title</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Tof Title</em>' attribute.
+ * @see #getTofTitle()
+ * @generated
+ */
+ void setTofTitle(String value);
+
+} // TableOfFigures
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/DocumentStructureFactoryImpl.java b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/DocumentStructureFactoryImpl.java
index edd46998..363875a2 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/DocumentStructureFactoryImpl.java
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/DocumentStructureFactoryImpl.java
@@ -82,6 +82,8 @@ public class DocumentStructureFactoryImpl extends EFactoryImpl implements Docume
return createImage();
case DocumentStructurePackage.EMF_DATA_SOURCE:
return createEMFDataSource();
+ case DocumentStructurePackage.TABLE_OF_FIGURES:
+ return createTableOfFigures();
case DocumentStructurePackage.TABLE_OF_CONTENTS:
return createTableOfContents();
case DocumentStructurePackage.EXTENDED_BASIC_TABLE:
@@ -180,6 +182,18 @@ public class DocumentStructureFactoryImpl extends EFactoryImpl implements Docume
* @generated
*/
@Override
+ public TableOfFigures createTableOfFigures() {
+ TableOfFiguresImpl tableOfFigures = new TableOfFiguresImpl();
+ return tableOfFigures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public TableOfContents createTableOfContents() {
TableOfContentsImpl tableOfContents = new TableOfContentsImpl();
return tableOfContents;
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/DocumentStructurePackageImpl.java b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/DocumentStructurePackageImpl.java
index 9322fae7..6e327dca 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/DocumentStructurePackageImpl.java
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/DocumentStructurePackageImpl.java
@@ -45,6 +45,7 @@ import org.eclipse.papyrus.model2doc.emf.documentstructure.LeafBodyPart;
import org.eclipse.papyrus.model2doc.emf.documentstructure.Paragraph;
import org.eclipse.papyrus.model2doc.emf.documentstructure.StringVersion;
import org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfContents;
+import org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures;
import org.eclipse.papyrus.model2doc.emf.documentstructure.TextDocument;
import org.eclipse.papyrus.model2doc.emf.documentstructure.TextDocumentPart;
import org.eclipse.papyrus.model2doc.emf.documentstructure.Title;
@@ -168,6 +169,14 @@ public class DocumentStructurePackageImpl extends EPackageImpl implements Docume
*
* @generated
*/
+ private EClass tableOfFiguresEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
private EClass tableOfContentsEClass = null;
/**
@@ -618,6 +627,28 @@ public class DocumentStructurePackageImpl extends EPackageImpl implements Docume
* @generated
*/
@Override
+ public EClass getTableOfFigures() {
+ return tableOfFiguresEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EAttribute getTableOfFigures_TofTitle() {
+ return (EAttribute) tableOfFiguresEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public EClass getTableOfContents() {
return tableOfContentsEClass;
}
@@ -808,6 +839,9 @@ public class DocumentStructurePackageImpl extends EPackageImpl implements Docume
createEReference(emfDataSourceEClass, EMF_DATA_SOURCE__EOBJECT);
createEReference(emfDataSourceEClass, EMF_DATA_SOURCE__FEATURE);
+ tableOfFiguresEClass = createEClass(TABLE_OF_FIGURES);
+ createEAttribute(tableOfFiguresEClass, TABLE_OF_FIGURES__TOF_TITLE);
+
tableOfContentsEClass = createEClass(TABLE_OF_CONTENTS);
createEAttribute(tableOfContentsEClass, TABLE_OF_CONTENTS__TOC_TITLE);
@@ -873,6 +907,7 @@ public class DocumentStructurePackageImpl extends EPackageImpl implements Docume
imageEClass.getESuperTypes().add(this.getLeafBodyPart());
leafBodyPartEClass.getESuperTypes().add(this.getBodyPart());
emfDataSourceEClass.getESuperTypes().add(this.getDataSource());
+ tableOfFiguresEClass.getESuperTypes().add(this.getTextDocumentPart());
tableOfContentsEClass.getESuperTypes().add(this.getTextDocumentPart());
extendedBasicTableEClass.getESuperTypes().add(theBuiltInTypesPackage.getBasicTable());
extendedBasicTableEClass.getESuperTypes().add(this.getLeafBodyPart());
@@ -934,6 +969,9 @@ public class DocumentStructurePackageImpl extends EPackageImpl implements Docume
initEReference(getEMFDataSource_Feature(), theEcorePackage.getEStructuralFeature(), null, "feature", null, 1, 1, EMFDataSource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, //$NON-NLS-1$
!IS_ORDERED);
+ initEClass(tableOfFiguresEClass, TableOfFigures.class, "TableOfFigures", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEAttribute(getTableOfFigures_TofTitle(), ecorePackage.getEString(), "tofTitle", "Table Of Figures", 1, 1, TableOfFigures.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
+
initEClass(tableOfContentsEClass, TableOfContents.class, "TableOfContents", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEAttribute(getTableOfContents_TocTitle(), ecorePackage.getEString(), "tocTitle", "Table Of Contents", 1, 1, TableOfContents.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/TableOfFiguresImpl.java b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/TableOfFiguresImpl.java
new file mode 100755
index 00000000..8ae187ec
--- /dev/null
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/impl/TableOfFiguresImpl.java
@@ -0,0 +1,190 @@
+/**
+ * Copyright (c) 2019 CEA LIST.
+ *
+ * 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:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ */
+package org.eclipse.papyrus.model2doc.emf.documentstructure.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.model2doc.emf.documentstructure.DocumentStructurePackage;
+import org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Table Of Figures</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.model2doc.emf.documentstructure.impl.TableOfFiguresImpl#getTofTitle <em>Tof Title</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class TableOfFiguresImpl extends MinimalEObjectImpl.Container implements TableOfFigures {
+ /**
+ * The default value of the '{@link #getTofTitle() <em>Tof Title</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getTofTitle()
+ * @generated
+ * @ordered
+ */
+ protected static final String TOF_TITLE_EDEFAULT = "Table Of Figures"; //$NON-NLS-1$
+
+ /**
+ * The cached value of the '{@link #getTofTitle() <em>Tof Title</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getTofTitle()
+ * @generated
+ * @ordered
+ */
+ protected String tofTitle = TOF_TITLE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected TableOfFiguresImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return DocumentStructurePackage.Literals.TABLE_OF_FIGURES;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getTofTitle() {
+ return tofTitle;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setTofTitle(String newTofTitle) {
+ String oldTofTitle = tofTitle;
+ tofTitle = newTofTitle;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, DocumentStructurePackage.TABLE_OF_FIGURES__TOF_TITLE, oldTofTitle, tofTitle));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case DocumentStructurePackage.TABLE_OF_FIGURES__TOF_TITLE:
+ return getTofTitle();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case DocumentStructurePackage.TABLE_OF_FIGURES__TOF_TITLE:
+ setTofTitle((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case DocumentStructurePackage.TABLE_OF_FIGURES__TOF_TITLE:
+ setTofTitle(TOF_TITLE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case DocumentStructurePackage.TABLE_OF_FIGURES__TOF_TITLE:
+ return TOF_TITLE_EDEFAULT == null ? tofTitle != null : !TOF_TITLE_EDEFAULT.equals(tofTitle);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) {
+ return super.toString();
+ }
+
+ StringBuilder result = new StringBuilder(super.toString());
+ result.append(" (tofTitle: "); //$NON-NLS-1$
+ result.append(tofTitle);
+ result.append(')');
+ return result.toString();
+ }
+
+} // TableOfFiguresImpl
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/util/DocumentStructureAdapterFactory.java b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/util/DocumentStructureAdapterFactory.java
index f47d20a0..dbd298e4 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/util/DocumentStructureAdapterFactory.java
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/util/DocumentStructureAdapterFactory.java
@@ -159,6 +159,11 @@ public class DocumentStructureAdapterFactory extends AdapterFactoryImpl {
}
@Override
+ public Adapter caseTableOfFigures(TableOfFigures object) {
+ return createTableOfFiguresAdapter();
+ }
+
+ @Override
public Adapter caseTableOfContents(TableOfContents object) {
return createTableOfContentsAdapter();
}
@@ -461,6 +466,21 @@ public class DocumentStructureAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures <em>Table Of Figures</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfFigures
+ * @generated
+ */
+ public Adapter createTableOfFiguresAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.model2doc.emf.documentstructure.TableOfContents <em>Table Of Contents</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
diff --git a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/util/DocumentStructureSwitch.java b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/util/DocumentStructureSwitch.java
index 75f97fd5..1e532696 100755
--- a/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/util/DocumentStructureSwitch.java
+++ b/plugins/emf/org.eclipse.papyrus.model2doc.emf.documentstructure/src-gen/org/eclipse/papyrus/model2doc/emf/documentstructure/util/DocumentStructureSwitch.java
@@ -231,6 +231,17 @@ public class DocumentStructureSwitch<T> extends Switch<T> {
}
return result;
}
+ case DocumentStructurePackage.TABLE_OF_FIGURES: {
+ TableOfFigures tableOfFigures = (TableOfFigures) theEObject;
+ T result = caseTableOfFigures(tableOfFigures);
+ if (result == null) {
+ result = caseTextDocumentPart(tableOfFigures);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
case DocumentStructurePackage.TABLE_OF_CONTENTS: {
TableOfContents tableOfContents = (TableOfContents) theEObject;
T result = caseTableOfContents(tableOfContents);
@@ -568,6 +579,23 @@ public class DocumentStructureSwitch<T> extends Switch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Table Of Figures</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Table Of Figures</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTableOfFigures(TableOfFigures object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Table Of Contents</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;

Back to the top