Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2014-06-11 06:18:33 -0400
committerptessier2014-06-11 06:18:33 -0400
commit55d674986087a8ea4ef6625414a37184989acb22 (patch)
treeea3d434909d69e8216657fd0609eeb364f1e4591
parenta86cf854359b25262f628bc5ac938d6748589ad5 (diff)
downloadorg.eclipse.papyrus-55d674986087a8ea4ef6625414a37184989acb22.tar.gz
org.eclipse.papyrus-55d674986087a8ea4ef6625414a37184989acb22.tar.xz
org.eclipse.papyrus-55d674986087a8ea4ef6625414a37184989acb22.zip
399858: [Documentation] Papyrus shall have an embedded documentation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=399858 Change-Id: I1c818de70024b6e08dd2a043931c59ff972c8197
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/.classpath2
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/plugin.xml14
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/Activator.java2
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/I_DeveloperIDMStereotype.java50
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/I_DocumentStereotype.java26
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/command/CreateDocumentModelCommand.java85
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetHTMLTextHandler.java6
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetWikiTextHandler.java74
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/IDMAbstractHandler.java2
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/HTMLTranscription.java28
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/ITranscription.java4
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/TranscriptionEngine.java30
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/WikiTranscription.java118
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/imgDOC/ClassDiagram.pngbin0 -> 231 bytes
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/imgDOC/UseCaseDiagram.pngbin0 -> 231 bytes
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.di11
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.notation278
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.uml113
19 files changed, 502 insertions, 348 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/.classpath b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/.classpath
index 8a8f1668cdc..2d1a4302f04 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/.classpath
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/.classpath
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/.settings/org.eclipse.jdt.core.prefs b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index f287d53cf45..00000000000
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/plugin.xml b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/plugin.xml
index d6108a25f12..490de361aac 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/plugin.xml
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/plugin.xml
@@ -62,6 +62,15 @@
checkEnabled="true">
</visibleWhen>
</command>
+ <command
+ commandId="org.eclipse.papyrus.uml.developper.mde.handler.GetWikiTextHandler"
+ id="org.eclipse.papyrus.uml.developper.mde.handler.GetWikiTextMenu"
+ label="generate wiki page"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
</menu>
</menuContribution>
</extension>
@@ -72,5 +81,10 @@
id="org.eclipse.papyrus.uml.developper.mde.handler.GetHTMLTextHandler"
name="generate HTML page">
</command>
+ <command
+ defaultHandler="org.eclipse.papyrus.uml.developper.mde.handler.GetWikiTextHandler"
+ id="org.eclipse.papyrus.uml.developper.mde.handler.GetWikiTextHandler"
+ name="generate wiki page">
+ </command>
</extension>
</plugin>
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/Activator.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/Activator.java
index 294f534c6dd..77d724c6b52 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/Activator.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/Activator.java
@@ -21,7 +21,7 @@ import org.osgi.framework.BundleContext;
*/
public class Activator extends AbstractUIPlugin {
- // The plug-in ID
+ /** The plug-in ID**/
public static final String PLUGIN_ID = "org.eclipse.papyrus.uml.developper.idm"; //$NON-NLS-1$
// The shared instance
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/I_DeveloperIDMStereotype.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/I_DeveloperIDMStereotype.java
index 6d0392d170f..9998c9b7047 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/I_DeveloperIDMStereotype.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/I_DeveloperIDMStereotype.java
@@ -20,77 +20,77 @@ package org.eclipse.papyrus.uml.developper.mde;
public interface I_DeveloperIDMStereotype {
/** Qualified name of the stereotype Project */
- public static final String PROJECT_STEREOTYPE = "DeveloperProcess::structure::Project";
+ public static final String PROJECT_STEREOTYPE = "DeveloperProcess::structure::Project"; //$NON-NLS-1$
/** name of property author of the stereotype Project */
- public static final String PROJECT_AUTHOR_ATT = "author";
+ public static final String PROJECT_AUTHOR_ATT = "author"; //$NON-NLS-1$
/** name of property title of the stereotype Project */
- public static final String PROJECT_TITLE_ATT = "title";
+ public static final String PROJECT_TITLE_ATT = "title"; //$NON-NLS-1$
/** name of property version of the stereotype Project */
- public static final String PROJECT_VERSION_ATT = "version";
+ public static final String PROJECT_VERSION_ATT = "version"; //$NON-NLS-1$
/** name of property base_Model of the stereotype Project */
- public static final String PROJECT_BASE_MODEL_ATT = "base_Model";
+ public static final String PROJECT_BASE_MODEL_ATT = "base_Model"; //$NON-NLS-1$
/** Qualified name of the stereotype UserDoc */
- public static final String USERDOC_STEREOTYPE = "DeveloperProcess::structure::UserDoc";
+ public static final String USERDOC_STEREOTYPE = "DeveloperProcess::structure::UserDoc"; //$NON-NLS-1$
/** name of property base_Comment of the stereotype UserDoc */
- public static final String USERDOC_BASE_COMMENT_ATT = "base_Comment";
+ public static final String USERDOC_BASE_COMMENT_ATT = "base_Comment"; //$NON-NLS-1$
/** Qualified name of the stereotype DeveloperDoc */
- public static final String DEVELOPERDOC_STEREOTYPE = "DeveloperProcess::structure::DeveloperDoc";
+ public static final String DEVELOPERDOC_STEREOTYPE = "DeveloperProcess::structure::DeveloperDoc"; //$NON-NLS-1$
/** name of property base_Comment of the stereotype DeveloperDoc */
- public static final String DEVELOPERDOC_BASE_COMMENT_ATT = "base_Comment";
+ public static final String DEVELOPERDOC_BASE_COMMENT_ATT = "base_Comment"; //$NON-NLS-1$
/** Qualified name of the stereotype Requirements */
- public static final String REQUIREMENTS_STEREOTYPE = "DeveloperProcess::structure::Requirements";
+ public static final String REQUIREMENTS_STEREOTYPE = "DeveloperProcess::structure::Requirements"; //$NON-NLS-1$
/** name of property base_Model of the stereotype Requirements */
- public static final String REQUIREMENTS_BASE_MODEL_ATT = "base_Model";
+ public static final String REQUIREMENTS_BASE_MODEL_ATT = "base_Model"; //$NON-NLS-1$
/** Qualified name of the stereotype Design */
- public static final String DESIGN_STEREOTYPE = "DeveloperProcess::structure::Design";
+ public static final String DESIGN_STEREOTYPE = "DeveloperProcess::structure::Design"; //$NON-NLS-1$
/** name of property base_Model of the stereotype Design */
- public static final String DESIGN_BASE_MODEL_ATT = "base_Model";
+ public static final String DESIGN_BASE_MODEL_ATT = "base_Model"; //$NON-NLS-1$
/** Qualified name of the stereotype UseCases */
- public static final String USECASES_STEREOTYPE = "DeveloperProcess::structure::UseCases";
+ public static final String USECASES_STEREOTYPE = "DeveloperProcess::structure::UseCases"; //$NON-NLS-1$
/** name of property base_Model of the stereotype UseCases */
- public static final String USECASES_BASE_MODEL_ATT = "base_Model";
+ public static final String USECASES_BASE_MODEL_ATT = "base_Model"; //$NON-NLS-1$
/** Qualified name of the stereotype Tests */
- public static final String TESTS_STEREOTYPE = "DeveloperProcess::structure::Tests";
+ public static final String TESTS_STEREOTYPE = "DeveloperProcess::structure::Tests"; //$NON-NLS-1$
/** name of property base_Model of the stereotype Tests */
- public static final String TESTS_BASE_MODEL_ATT = "base_Model";
+ public static final String TESTS_BASE_MODEL_ATT = "base_Model"; //$NON-NLS-1$
/** Qualified name of the stereotype UseCaseTest */
- public static final String USECASETEST_STEREOTYPE = "DeveloperProcess::trace::UseCaseTest";
+ public static final String USECASETEST_STEREOTYPE = "DeveloperProcess::trace::UseCaseTest"; //$NON-NLS-1$
/** name of property base_UseCase of the stereotype UseCaseTest */
- public static final String USECASETEST_BASE_USECASE_ATT = "base_UseCase";
+ public static final String USECASETEST_BASE_USECASE_ATT = "base_UseCase"; //$NON-NLS-1$
/** Qualified name of the stereotype ManualTest */
- public static final String MANUALTEST_STEREOTYPE = "DeveloperProcess::trace::ManualTest";
+ public static final String MANUALTEST_STEREOTYPE = "DeveloperProcess::trace::ManualTest"; //$NON-NLS-1$
/** name of property path of the stereotype ManualTest */
- public static final String MANUALTEST_PATH_ATT = "path";
+ public static final String MANUALTEST_PATH_ATT = "path"; //$NON-NLS-1$
/** name of property base_Model of the stereotype ManualTest */
- public static final String MANUALTEST_BASE_MODEL_ATT = "base_Model";
+ public static final String MANUALTEST_BASE_MODEL_ATT = "base_Model"; //$NON-NLS-1$
/** Qualified name of the stereotype ExecutableTest */
- public static final String EXECUTABLETEST_STEREOTYPE = "DeveloperProcess::trace::ExecutableTest";
+ public static final String EXECUTABLETEST_STEREOTYPE = "DeveloperProcess::trace::ExecutableTest"; //$NON-NLS-1$
/** name of property base_Class of the stereotype ExecutableTest */
- public static final String EXECUTABLETEST_BASE_CLASS_ATT = "base_Class";
+ public static final String EXECUTABLETEST_BASE_CLASS_ATT = "base_Class"; //$NON-NLS-1$
/** name of property base_Model of the stereotype ExecutableTest */
- public static final String EXECUTABLETEST_BASE_MODEL_ATT = "base_Model";
+ public static final String EXECUTABLETEST_BASE_MODEL_ATT = "base_Model"; //$NON-NLS-1$
}
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/I_DocumentStereotype.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/I_DocumentStereotype.java
index c9790b9d229..4349c53ba4b 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/I_DocumentStereotype.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/I_DocumentStereotype.java
@@ -20,41 +20,41 @@ package org.eclipse.papyrus.uml.developper.mde;
public interface I_DocumentStereotype {
/** Qualified name of the stereotype Section */
- public static final String SECTION_STEREOTYPE = "Document::Section";
+ public static final String SECTION_STEREOTYPE = "Document::Section"; //$NON-NLS-1$
/** name of property base_Package of the stereotype Section */
- public static final String SECTION_BASE_PACKAGE_ATT = "base_Package";
+ public static final String SECTION_BASE_PACKAGE_ATT = "base_Package"; //$NON-NLS-1$
/** Qualified name of the stereotype Document */
- public static final String DOCUMENT_STEREOTYPE = "Document::Document";
+ public static final String DOCUMENT_STEREOTYPE = "Document::Document"; //$NON-NLS-1$
/** name of property base_Model of the stereotype Document */
- public static final String DOCUMENT_BASE_MODEL_ATT = "base_Model";
+ public static final String DOCUMENT_BASE_MODEL_ATT = "base_Model"; //$NON-NLS-1$
/** name of property author of the stereotype Document */
- public static final String DOCUMENT_AUTHOR_ATT = "author";
+ public static final String DOCUMENT_AUTHOR_ATT = "author"; //$NON-NLS-1$
/** name of property version of the stereotype Document */
- public static final String DOCUMENT_VERSION_ATT = "version";
+ public static final String DOCUMENT_VERSION_ATT = "version"; //$NON-NLS-1$
/** Qualified name of the stereotype ImageRef */
- public static final String IMAGEREF_STEREOTYPE = "Document::ImageRef";
+ public static final String IMAGEREF_STEREOTYPE = "Document::ImageRef"; //$NON-NLS-1$
/** name of property base_Comment of the stereotype ImageRef */
- public static final String IMAGEREF_BASE_COMMENT_ATT = "base_Comment";
+ public static final String IMAGEREF_BASE_COMMENT_ATT = "base_Comment"; //$NON-NLS-1$
/** name of property ref of the stereotype ImageRef */
- public static final String IMAGEREF_REF_ATT = "ref";
+ public static final String IMAGEREF_REF_ATT = "ref"; //$NON-NLS-1$
/** Qualified name of the stereotype Content */
- public static final String CONTENT_STEREOTYPE = "Document::Content";
+ public static final String CONTENT_STEREOTYPE = "Document::Content"; //$NON-NLS-1$
/** name of property base_Comment of the stereotype Content */
- public static final String CONTENT_BASE_COMMENT_ATT = "base_Comment";
+ public static final String CONTENT_BASE_COMMENT_ATT = "base_Comment"; //$NON-NLS-1$
/** Qualified name of the stereotype TableOfContent */
- public static final String TABLEOFCONTENT_STEREOTYPE = "Document::TableOfContent";
+ public static final String TABLEOFCONTENT_STEREOTYPE = "Document::TableOfContent"; //$NON-NLS-1$
/** name of property base_Comment of the stereotype TableOfContent */
- public static final String TABLEOFCONTENT_BASE_COMMENT_ATT = "base_Comment";
+ public static final String TABLEOFCONTENT_BASE_COMMENT_ATT = "base_Comment"; //$NON-NLS-1$
}
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/command/CreateDocumentModelCommand.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/command/CreateDocumentModelCommand.java
index 15eeaa13ab3..5610a71ebb9 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/command/CreateDocumentModelCommand.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/command/CreateDocumentModelCommand.java
@@ -33,6 +33,7 @@ import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
import org.eclipse.papyrus.infra.hyperlink.helper.AbstractHyperLinkHelper;
import org.eclipse.papyrus.infra.hyperlink.helper.HyperLinkHelperFactory;
+import org.eclipse.papyrus.infra.hyperlink.object.HyperLinkDocument;
import org.eclipse.papyrus.infra.hyperlink.object.HyperLinkObject;
import org.eclipse.papyrus.infra.hyperlink.util.HyperLinkException;
import org.eclipse.papyrus.infra.hyperlink.util.HyperLinkHelpersRegistrationUtil;
@@ -56,10 +57,24 @@ import org.eclipse.uml2.uml.UseCase;
*/
public class CreateDocumentModelCommand extends RecordingCommand {
+ protected static final String TESTS = "Tests"; //$NON-NLS-1$
+ protected static final String DESIGN = "Design"; //$NON-NLS-1$
+ protected static final String HOW_TO = "How to"; //$NON-NLS-1$
+ protected static final String USE_CASES = "Use Cases"; //$NON-NLS-1$
+ private static final String SYS_ML_REQUIREMENTS_REQUIREMENT = "SysML::Requirements::Requirement"; //$NON-NLS-1$
+ protected static final String REQUIREMENTS = "Requirements"; //$NON-NLS-1$
protected org.eclipse.uml2.uml.Package topModel;
protected String directoryPath=null;
protected HyperLinkHelperFactory hyperlinkHelperFactory;
+ /**
+ *
+ * Constructor to transform model into document model
+ *
+ * @param domain
+ * @param topModel the root model
+ * @param directoryPath the directory where image will be stored, pay attention directory must exist
+ */
public CreateDocumentModelCommand(TransactionalEditingDomain domain, org.eclipse.uml2.uml.Package topModel, String directoryPath) {
super(domain);
this.topModel=topModel;
@@ -116,14 +131,14 @@ public class CreateDocumentModelCommand extends RecordingCommand {
documentModel.getPackagedElements().add(requirementsOUT);
Stereotype sectionStereotype= requirementsOUT.getApplicableStereotype(I_DocumentStereotype.SECTION_STEREOTYPE);
requirementsOUT.applyStereotype(sectionStereotype);
- requirementsOUT.setName("Requirements");
+ requirementsOUT.setName(REQUIREMENTS);
for(Iterator<Element> itereq = (requirementsIn).getOwnedElements().iterator(); itereq.hasNext();) {
Element currentReq = (Element)itereq.next();
- Stereotype reqStereotype=currentReq.getApplicableStereotype("SysML::Requirements::Requirement");
+ Stereotype reqStereotype=currentReq.getApplicableStereotype(SYS_ML_REQUIREMENTS_REQUIREMENT);
if(reqStereotype!=null){
- String out="- "+((org.eclipse.uml2.uml.Class)currentReq).getName()+" (id="+currentReq.getValue(reqStereotype, "id")+"): ";
- out=out+"\n "+currentReq.getValue(reqStereotype, "text");
+ String out="- "+((org.eclipse.uml2.uml.Class)currentReq).getName()+" (id="+currentReq.getValue(reqStereotype, "id")+"): "; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ out=out+"\n "+currentReq.getValue(reqStereotype, "text"); //$NON-NLS-1$ //$NON-NLS-2$
Comment comment=requirementsOUT.createOwnedComment();
Stereotype contentStereotype= comment.getApplicableStereotype(I_DocumentStereotype.CONTENT_STEREOTYPE);
@@ -144,12 +159,13 @@ public class CreateDocumentModelCommand extends RecordingCommand {
}
if (useCaseIN!= null){
- Package useCaseModelOUT = createSection(documentModel, "Use Cases");
+ Package useCaseModelOUT = createSection(documentModel, USE_CASES);
//createRef diagram
- Diagram currentDiagram= containedDiagrams(useCaseIN).get(0);
- generateImg(copyImageUtil, useCaseModelOUT, currentDiagram);
-
+ if(containedDiagrams(useCaseIN).size()>0){
+ Diagram currentDiagram= containedDiagrams(useCaseIN).get(0);
+ generateImg(copyImageUtil, useCaseModelOUT, currentDiagram);
+ }
for(Iterator<Comment> iteComment = (useCaseIN).getOwnedComments().iterator(); iteComment.hasNext();) {
Comment currentComment = (Comment)iteComment.next();
transformToContentComment(useCaseModelOUT, currentComment);
@@ -163,7 +179,7 @@ public class CreateDocumentModelCommand extends RecordingCommand {
for(Iterator<Comment> iteComment = ((UseCase)packageableElement).getOwnedComments().iterator(); iteComment.hasNext();) {
Comment currentComment = (Comment)iteComment.next();
- transformToContentComment(useCaseSectionOUT, currentComment);
+ transformToContentWithUser(copyImageUtil, useCaseSectionOUT, currentComment);
}
}
}
@@ -172,6 +188,20 @@ public class CreateDocumentModelCommand extends RecordingCommand {
return useCaseIN;
}
+ protected void transformToContentWithUser(CopyToImageUtil copyImageUtil, Package useCaseSectionOUT, Comment currentComment) {
+ Stereotype isUser= currentComment.getAppliedStereotype(I_DeveloperIDMStereotype.USERDOC_STEREOTYPE);
+ if(isUser!=null){
+ Package HowToSection=(Package)useCaseSectionOUT.getPackagedElement(HOW_TO);
+ if( HowToSection==null){
+ HowToSection= createSection(useCaseSectionOUT, HOW_TO);}
+ transformToContentComment(HowToSection, currentComment);
+ createImageFromHyperLink(copyImageUtil, HowToSection, currentComment);
+ }
+ else{
+ transformToContentComment(useCaseSectionOUT, currentComment);
+ }
+ }
+
protected void generateDesign(CopyToImageUtil copyImageUtil, Model documentModel) {
//get Design package
Model designPackageIn=null;
@@ -182,11 +212,12 @@ public class CreateDocumentModelCommand extends RecordingCommand {
}
}
if(designPackageIn!=null){
- Package designPackageOUT= createSection(documentModel, "Design");
+ Package designPackageOUT= createSection(documentModel, DESIGN);
//createRef diagram
- Diagram currentDiagram= containedDiagrams(designPackageIn).get(0);
- generateImg(copyImageUtil, designPackageOUT, currentDiagram);
-
+ if(containedDiagrams(designPackageIn).size()>0){
+ Diagram currentDiagram= containedDiagrams(designPackageIn).get(0);
+ generateImg(copyImageUtil, designPackageOUT, currentDiagram);
+ }
for(Iterator<Comment> iteComment = (designPackageIn).getOwnedComments().iterator(); iteComment.hasNext();) {
Comment currentComment = (Comment)iteComment.next();
createImageFromHyperLink(copyImageUtil, designPackageOUT, currentComment);
@@ -208,12 +239,13 @@ public class CreateDocumentModelCommand extends RecordingCommand {
}
if (testIN!= null){
- Package testModelOUT = createSection(documentModel, "Tests");
+ Package testModelOUT = createSection(documentModel, TESTS);
//createRef diagram
- Diagram currentDiagram= containedDiagrams(testIN).get(0);
- generateImg(copyImageUtil, testModelOUT, currentDiagram);
-
+ if(containedDiagrams(testIN).size()>0){
+ Diagram currentDiagram= containedDiagrams(testIN).get(0);
+ generateImg(copyImageUtil, testModelOUT, currentDiagram);
+ }
for(Iterator<Comment> iteComment = (testIN).getOwnedComments().iterator(); iteComment.hasNext();) {
Comment currentComment = (Comment)iteComment.next();
transformToContentComment(testModelOUT, currentComment);
@@ -242,6 +274,12 @@ public class CreateDocumentModelCommand extends RecordingCommand {
return testIN;
}
+ /**
+ *
+ * @param namedElement
+ * @param topModel
+ * @return the list of elements that depends of the given named element (never null, empty list)
+ */
public ArrayList<NamedElement> getAllDependentElement(NamedElement namedElement, Package topModel){
ArrayList<NamedElement> result= new ArrayList<NamedElement>();
Iterator<EObject> iteratorEObject= topModel.eAllContents();
@@ -250,7 +288,7 @@ public class CreateDocumentModelCommand extends RecordingCommand {
if(eObject instanceof Dependency){
if(((Dependency)eObject).getSuppliers().contains(namedElement)){
result.addAll(((Dependency)eObject).getClients());
- }
+ }
}
}
@@ -259,6 +297,7 @@ public class CreateDocumentModelCommand extends RecordingCommand {
}
+ @SuppressWarnings("unchecked")
protected void createImageFromHyperLink(CopyToImageUtil copyImageUtil, Package designPackageOUT, Comment currentComment) {
List<Object>referedViews=NavigatorUtils.getEObjectViews(currentComment);
if(referedViews.size()!=0){
@@ -278,6 +317,14 @@ public class CreateDocumentModelCommand extends RecordingCommand {
if(hyperLinkObject.getObject() instanceof Diagram){
generateImg(copyImageUtil, designPackageOUT, ((Diagram)hyperLinkObject.getObject()));
}
+ if(hyperLinkObject instanceof HyperLinkDocument ){
+ String IMGpath=((HyperLinkDocument)hyperLinkObject).getHyperlinkDocument();
+ Comment commentImg=designPackageOUT.createOwnedComment();
+ Stereotype refStereotype= commentImg.getApplicableStereotype(I_DocumentStereotype.IMAGEREF_STEREOTYPE);
+ commentImg.applyStereotype(refStereotype);
+ commentImg.setValue(refStereotype, I_DocumentStereotype.IMAGEREF_REF_ATT, IMGpath.toString());
+ commentImg.setBody(hyperLinkObject.getTooltipText());
+ }
}
}
}
@@ -319,7 +366,7 @@ public class CreateDocumentModelCommand extends RecordingCommand {
* @param currentDiagram
*/
protected void generateImg(CopyToImageUtil copyImageUtil, Package currentModel, Diagram currentDiagram) {
- Path imagePath= new Path(""+directoryPath+ File.separator +"imgDOC"+File.separator+ currentDiagram.getName().replaceAll(" ", "_")+".png");
+ Path imagePath= new Path(""+directoryPath+ File.separator +"imgDOC"+File.separator+ currentDiagram.getName().replaceAll(" ", "_")+".png"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
try {
copyImageUtil.copyToImage(currentDiagram,
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetHTMLTextHandler.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetHTMLTextHandler.java
index 99b36e54ee9..01ccfb39cc5 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetHTMLTextHandler.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetHTMLTextHandler.java
@@ -31,11 +31,15 @@ import org.eclipse.uml2.uml.Model;
*/
public class GetHTMLTextHandler extends IDMAbstractHandler {
+ protected static final String INTERNAL_DIRECTORY_NAME = "/doc"; //$NON-NLS-1$
+
+
+
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
super.execute(event);
System.err.println( getCurrentProject().getLocationURI().getPath());
- CreateDocumentModelCommand createDocumentModelCommand= new CreateDocumentModelCommand(transactionalEditingDomain,(Model)getSelection(), getCurrentProject().getLocationURI().getPath() );
+ CreateDocumentModelCommand createDocumentModelCommand= new CreateDocumentModelCommand(transactionalEditingDomain,(Model)getSelection(), getCurrentProject().getLocationURI().getPath()+INTERNAL_DIRECTORY_NAME );
transactionalEditingDomain.getCommandStack().execute(createDocumentModelCommand);
IProject project = getCurrentProject();
TranscriptionEngine engine= new TranscriptionEngine((Model)getSelection(), project, new HTMLTranscription());
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetWikiTextHandler.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetWikiTextHandler.java
new file mode 100644
index 00000000000..f45626cddf9
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetWikiTextHandler.java
@@ -0,0 +1,74 @@
+/*****************************************************************************
+ * Copyright (c) 2014 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:
+ * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.developper.mde.handler;
+
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.IWorkspaceRoot;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.papyrus.uml.developper.mde.I_DeveloperIDMStereotype;
+import org.eclipse.papyrus.uml.developper.mde.command.CreateDocumentModelCommand;
+import org.eclipse.papyrus.uml.developper.mde.transcription.TranscriptionEngine;
+import org.eclipse.papyrus.uml.developper.mde.transcription.WikiTranscription;
+import org.eclipse.uml2.uml.Model;
+
+/**
+ * This class is used to create and wiki developper doc file.
+ *
+ */
+public class GetWikiTextHandler extends IDMAbstractHandler {
+
+ protected static final String INTERNAL_DIRECTORY_NAME = "/doc"; //$NON-NLS-1$
+ @Override
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ super.execute(event);
+ System.err.println( getCurrentProject().getLocationURI().getPath());
+ CreateDocumentModelCommand createDocumentModelCommand= new CreateDocumentModelCommand(transactionalEditingDomain,(Model)getSelection(), getCurrentProject().getLocationURI().getPath()+INTERNAL_DIRECTORY_NAME );
+ transactionalEditingDomain.getCommandStack().execute(createDocumentModelCommand);
+ IProject project = getCurrentProject();
+ TranscriptionEngine engine= new TranscriptionEngine((Model)getSelection(), project, new WikiTranscription());
+ engine.traduce();
+ return null;
+ }
+
+
+ private IProject getCurrentProject() {
+ IWorkspace workspace = ResourcesPlugin.getWorkspace();
+ IWorkspaceRoot root = workspace.getRoot();
+ IProject project = root.getProject();
+ String path=getSelection().eResource().getURI().path();
+ for(IProject currentProject : root.getProjects()) {
+ if( path.contains(currentProject.getName())){
+ project=currentProject;
+ }
+ }
+ return project;
+ }
+
+
+
+ @Override
+ public boolean isEnabled() {
+ if(getSelection() instanceof Model){
+ if(((Model)getSelection()).getAppliedStereotype(I_DeveloperIDMStereotype.PROJECT_STEREOTYPE)!=null){
+ return true;
+ }
+
+ }
+ return false;
+ }
+
+}
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/IDMAbstractHandler.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/IDMAbstractHandler.java
index 2b44a662f49..2563a0c77e3 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/IDMAbstractHandler.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/IDMAbstractHandler.java
@@ -61,7 +61,7 @@ public abstract class IDMAbstractHandler extends AbstractHandler {
papyrusEditor =(PapyrusMultiDiagramEditor)ServiceUtilsForHandlers.getInstance().getService(IMultiDiagramEditor.class, event);
transactionalEditingDomain =ServiceUtilsForHandlers.getInstance().getService(org.eclipse.emf.transaction.TransactionalEditingDomain.class, event);
} catch (Exception e) {
- System.err.println("impossible to get the Transactional Editing Domain "+e);
+ System.err.println("impossible to get the Transactional Editing Domain "+e); //$NON-NLS-1$
}
return null;
}
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/HTMLTranscription.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/HTMLTranscription.java
index 3ee084c9aaa..c491c395c07 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/HTMLTranscription.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/HTMLTranscription.java
@@ -35,9 +35,8 @@ public class HTMLTranscription implements ITranscription {
* @param out
*/
- @Override
public void writeEndingDocument(StringBuffer out) {
- out.append("</html>");
+ out.append("</html>"); //$NON-NLS-1$
}
@@ -45,13 +44,12 @@ public class HTMLTranscription implements ITranscription {
* @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeBeginningDocument(java.lang.StringBuffer)
*
* @param out
- * @return
+ * @return the string buffer after adding the prefix for the document
*/
- @Override
public StringBuffer writeBeginningDocument(StringBuffer out) {
- out.append("<html>");
- out.append("<link rel=\"stylesheet\" href=\"default.css\" type=\"text/css\">");
+ out.append("<html>"); //$NON-NLS-1$
+ out.append("<link rel=\"stylesheet\" href=\"default.css\" type=\"text/css\">"); //$NON-NLS-1$
return out;
}
@@ -63,9 +61,8 @@ public class HTMLTranscription implements ITranscription {
* @param documentModel
*/
- @Override
public void writeDocumentTitle(StringBuffer out, Model documentModel) {
- out.append("<H1>"+documentModel.getName()+"</H1>");
+ out.append("<H1>"+documentModel.getName()+"</H1>"); //$NON-NLS-1$ //$NON-NLS-2$
}
@@ -79,9 +76,8 @@ public class HTMLTranscription implements ITranscription {
* @param packageableElement
*/
- @Override
public void writesectionTitle(StringBuffer out, int level, Element packageableElement) {
- out.append("<H"+level+">"+((Package)packageableElement).getName()+"</H"+level+">");
+ out.append("<H"+level+">"+((Package)packageableElement).getName()+"</H"+level+">"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}
@@ -93,10 +89,10 @@ public class HTMLTranscription implements ITranscription {
* @param imgRefStereotype
*/
- @Override
public void writeImageRef(StringBuffer out, Element packageableElement, Stereotype imgRefStereotype) {
- out.append("<P align=\"middle\"><img src="+((Element)packageableElement).getValue(imgRefStereotype, I_DocumentStereotype.IMAGEREF_REF_ATT)+" alt="+((Comment)packageableElement).getBody()+ " ></P>");
- out.append("<P align=\"middle\">"+((Comment)packageableElement).getBody()+"</P>");
+ out.append("<P align=\"middle\"><img src="+((Element)packageableElement).getValue(imgRefStereotype, I_DocumentStereotype.IMAGEREF_REF_ATT)+" alt="+((Comment)packageableElement).getBody()+ " ></P>"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ out.append("<P align=\"middle\">"+((Comment)packageableElement).getBody()+"</P>"); //$NON-NLS-1$ //$NON-NLS-2$
+ out.append("</BR>"); //$NON-NLS-1$
}
@@ -107,16 +103,14 @@ public class HTMLTranscription implements ITranscription {
* @param packageableElement
*/
- @Override
public void writeParagraph(StringBuffer out, Element packageableElement) {
- out.append("<P>"+((Comment)packageableElement).getBody().replaceAll("\n", "<BR/>")+"</P>");
+ out.append("<pre>"+((Comment)packageableElement).getBody().replaceAll("\n", "<BR/>")+"</pre>"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}
- @Override
public String getNameFile() {
- return "DeveloperDoc.html";
+ return "DeveloperDoc.html"; //$NON-NLS-1$
}
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/ITranscription.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/ITranscription.java
index 4467c9d3eda..2a8c986e251 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/ITranscription.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/ITranscription.java
@@ -33,6 +33,7 @@ public interface ITranscription {
/**
* init the document
* @param out
+ * @return the string buffer after adding the prefix for the document
*/
public abstract StringBuffer writeBeginningDocument(StringBuffer out);
@@ -54,7 +55,8 @@ public interface ITranscription {
/**
* write a image
* @param out
- * @param packageableElement form a comment that contains the ref to the image
+ * @param packageableElement form a comment that contains the ref to the
+ * @param imgRefStereotype the stereotype in charge to reference the image
*/
public abstract void writeImageRef(StringBuffer out, Element packageableElement, Stereotype imgRefStereotype);
/**
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/TranscriptionEngine.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/TranscriptionEngine.java
index b39d1b458a3..c763cdb7205 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/TranscriptionEngine.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/TranscriptionEngine.java
@@ -30,12 +30,24 @@ import org.eclipse.uml2.uml.Package;
import org.eclipse.uml2.uml.PackageableElement;
import org.eclipse.uml2.uml.Stereotype;
-
+/***
+ * This class is an engine to traduce a document model into files
+ *
+ */
public class TranscriptionEngine {
+ protected static final String INTERNAL_DIRECTORY = "doc/"; //$NON-NLS-1$
Model model=null;
IProject project;
ITranscription transcription=null;
+ /**
+ *
+ * Constructor.
+ *
+ * @param model the root model
+ * @param project the project where we want to put the new file
+ * @param transcription the object in charge to do the transcription
+ */
public TranscriptionEngine(Model model, IProject project, ITranscription transcription) {
super();
this.model = model;
@@ -43,8 +55,11 @@ public class TranscriptionEngine {
this.transcription = transcription;
}
+ /**
+ * execute the transcription
+ */
public void traduce() {
- IFile file = project.getFile(transcription.getNameFile());
+ IFile file = project.getFile(INTERNAL_DIRECTORY+transcription.getNameFile());
//at this point, no resources have been created
if (!project.isOpen())
try {
@@ -71,6 +86,11 @@ public class TranscriptionEngine {
}
}
+ /**
+ *
+ * @param model that will be traduced
+ * @return the stringBuffer that will be obtained from the transcription
+ */
public StringBuffer getText(Model model){
StringBuffer out = new StringBuffer();
@@ -91,6 +111,12 @@ public class TranscriptionEngine {
return out;
}
+ /**
+ * create a content from a package
+ * @param out the result
+ * @param documentModel the package where its content will be translated
+ * @param level the depth of the current package
+ */
public void writeContent(StringBuffer out, Package documentModel, int level) {
for(Iterator<Element> iteComment = (documentModel).getOwnedElements().iterator(); iteComment.hasNext();) {
Element packageableElement = (Element)iteComment.next();
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/WikiTranscription.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/WikiTranscription.java
new file mode 100644
index 00000000000..ec3b3ec9a8a
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/WikiTranscription.java
@@ -0,0 +1,118 @@
+/*****************************************************************************
+ * Copyright (c) 2014 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:
+ * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.developper.mde.transcription;
+
+import org.eclipse.papyrus.uml.developper.mde.I_DocumentStereotype;
+import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.Stereotype;
+
+/**
+ * this class is a specialization to generate mediawiki files.
+ *
+ */
+public class WikiTranscription implements ITranscription {
+
+
+
+ /**
+ * @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeEndingDocument(java.lang.StringBuffer)
+ *
+ * @param out
+ */
+
+ public void writeEndingDocument(StringBuffer out) {
+ }
+
+
+ /**
+ * @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeBeginningDocument(java.lang.StringBuffer)
+ *
+ * @param out
+ * @return the string buffer after adding the prefix for the document
+ */
+
+ public StringBuffer writeBeginningDocument(StringBuffer out) {
+ out.append("\n__TOC__"); //$NON-NLS-1$
+ return out;
+ }
+
+
+ /**
+ * @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeDocumentTitle(java.lang.StringBuffer, org.eclipse.uml2.uml.Model)
+ *
+ * @param out
+ * @param documentModel
+ */
+
+ public void writeDocumentTitle(StringBuffer out, Model documentModel) {
+ out.append("\n= "+documentModel.getName()+" ="); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+
+
+
+ /**
+ * @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writesectionTitle(java.lang.StringBuffer, int, org.eclipse.uml2.uml.Element)
+ *
+ * @param out
+ * @param level
+ * @param packageableElement
+ */
+
+ public void writesectionTitle(StringBuffer out, int level, Element packageableElement) {
+ if(level==2){
+ out.append("\n=="+((Package)packageableElement).getName()+"==");} //$NON-NLS-1$ //$NON-NLS-2$
+ if(level==3){
+ out.append("\n==="+((Package)packageableElement).getName()+"===");} //$NON-NLS-1$ //$NON-NLS-2$
+ if(level==4){
+ out.append("\n===="+((Package)packageableElement).getName()+"====");} //$NON-NLS-1$ //$NON-NLS-2$
+
+ }
+
+
+ /**
+ * @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeImageRef(java.lang.StringBuffer, org.eclipse.uml2.uml.Element, org.eclipse.uml2.uml.Stereotype)
+ *
+ * @param out
+ * @param packageableElement
+ * @param imgRefStereotype
+ */
+
+ public void writeImageRef(StringBuffer out, Element packageableElement, Stereotype imgRefStereotype) {
+ out.append("\n[[Image:"+((Element)packageableElement).getValue(imgRefStereotype, I_DocumentStereotype.IMAGEREF_REF_ATT)+"|"+((Comment)packageableElement).getBody()+"]]<br>"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ }
+
+
+ /**
+ * @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeParagraph(java.lang.StringBuffer, org.eclipse.uml2.uml.Element)
+ *
+ * @param out
+ * @param packageableElement
+ */
+
+ public void writeParagraph(StringBuffer out, Element packageableElement) {
+ out.append("\n"+((Comment)packageableElement).getBody()); //$NON-NLS-1$
+ }
+
+
+ public String getNameFile() {
+
+ return "DeveloperDoc.mediawiki"; //$NON-NLS-1$
+ }
+
+
+}
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/imgDOC/ClassDiagram.png b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/imgDOC/ClassDiagram.png
new file mode 100644
index 00000000000..33d684e2204
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/imgDOC/ClassDiagram.png
Binary files differ
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/imgDOC/UseCaseDiagram.png b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/imgDOC/UseCaseDiagram.png
new file mode 100644
index 00000000000..33d684e2204
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/imgDOC/UseCaseDiagram.png
Binary files differ
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.di b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.di
index 4ac742d546b..752c68f5774 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.di
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.di
@@ -4,9 +4,7 @@
<availablePage>
<emfPageIdentifier href="GenericDiagramFucntion.notation#_vrwWQHaNEeKemeMpJaVA3A"/>
</availablePage>
- <availablePage>
- <emfPageIdentifier href="GenericDiagramFucntion.notation#_-p5JgHaNEeKemeMpJaVA3A"/>
- </availablePage>
+ <availablePage/>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
@@ -15,10 +13,13 @@
<emfPageIdentifier href="GenericDiagramFucntion.notation#_vrwWQHaNEeKemeMpJaVA3A"/>
</children>
<children>
- <emfPageIdentifier href="GenericDiagramFucntion.notation#_-p5JgHaNEeKemeMpJaVA3A"/>
+ <emfPageIdentifier href="GenericDiagramFucntion.notation#_5VTQ4Oy6EeOTppRa5YYcIg"/>
+ </children>
+ <children>
+ <emfPageIdentifier href="GenericDiagramFucntion.notation#_7KbmgOy6EeOTppRa5YYcIg"/>
</children>
<children>
- <emfPageIdentifier href="GenericDiagramFucntion.notation#_BX9hQOGuEeO_JM12vRgWBQ"/>
+ <emfPageIdentifier href="GenericDiagramFucntion.notation#_8nLRUOy6EeOTppRa5YYcIg"/>
</children>
</children>
</windows>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.notation b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.notation
index 32ce346b230..2261d6da6a3 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.notation
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.notation
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:configuration="http://www.eclipse.org/papyrus/infra/viewpoints/configuration" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:nattable="http://www.eclipse.org/papyrus/nattable/model" xmlns:nattableaxis="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis" xmlns:nattableaxisconfiguration="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration" xmlns:nattableaxisprovider="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider" xmlns:nattableconfiguration="http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis http://www.eclipse.org/papyrus/nattable/model#//nattableaxis http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model#//nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableconfiguration">
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:css="http://www.eclipse.org/papyrus/infra/gmfdiag/css" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML">
<notation:Diagram xmi:id="_vrwWQHaNEeKemeMpJaVA3A" type="PapyrusUMLClassDiagram" name="ClassDiagram" measurementUnit="Pixel">
<children xmi:type="notation:Shape" xmi:id="_xpxiIHaNEeKemeMpJaVA3A" type="2012">
<children xmi:type="notation:DecorationNode" xmi:id="_xpxiInaNEeKemeMpJaVA3A" type="5038"/>
@@ -9,257 +9,29 @@
<styles xmi:type="notation:DiagramStyle" xmi:id="_vrwWQXaNEeKemeMpJaVA3A"/>
<element xmi:type="uml:Model" href="GenericDiagramFucntion.uml#_v2A68HaMEeKemeMpJaVA3A"/>
</notation:Diagram>
- <notation:Diagram xmi:id="_-p5JgHaNEeKemeMpJaVA3A" type="PapyrusUMLClassDiagram" name="Requirements" measurementUnit="Pixel">
- <children xmi:type="notation:Shape" xmi:id="__Qa-AHaNEeKemeMpJaVA3A" type="2008">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ES1H8HaOEeKemeMpJaVA3A" source="Stereotype_Annotation">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EuzSQHaOEeKemeMpJaVA3A" key="StereotypeWithQualifiedNameList" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EuzSQXaOEeKemeMpJaVA3A" key="StereotypeList" value="SysML::Requirements::Requirement"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EuzSQnaOEeKemeMpJaVA3A" key="PropStereoDisplay" value="SysML::Requirements::Requirement.id,SysML::Requirements::Requirement.text"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EuzSQ3aOEeKemeMpJaVA3A" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EuzSRHaOEeKemeMpJaVA3A" key="StereotypePropertyLocation" value="Compartment"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="__Qa-AnaNEeKemeMpJaVA3A" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="__Qa-A3aNEeKemeMpJaVA3A" visible="false" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__Qa-EnaNEeKemeMpJaVA3A" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__Qa-E3aNEeKemeMpJaVA3A" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="__Qa-BHaNEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="__Qa-BXaNEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="__Qa-BnaNEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="__Qa-B3aNEeKemeMpJaVA3A"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="__Qa-CHaNEeKemeMpJaVA3A" visible="false" type="7018">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__Qa-FHaNEeKemeMpJaVA3A" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__Qa-FXaNEeKemeMpJaVA3A" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="__Qa-CXaNEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="__Qa-CnaNEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="__Qa-C3aNEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="__Qa-DHaNEeKemeMpJaVA3A"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="__Qa-DXaNEeKemeMpJaVA3A" visible="false" type="7019">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__Qa-FnaNEeKemeMpJaVA3A" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__Qa-F3aNEeKemeMpJaVA3A" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="__Qa-DnaNEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="__Qa-D3aNEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="__Qa-EHaNEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="__Qa-EXaNEeKemeMpJaVA3A"/>
- </children>
- <element xmi:type="uml:Class" href="GenericDiagramFucntion.uml#_6udOsHaNEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="__Qa-AXaNEeKemeMpJaVA3A" x="101" y="88" width="775" height="98"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_1xqvIHaOEeKemeMpJaVA3A" type="2008">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_641dQHaOEeKemeMpJaVA3A" source="Stereotype_Annotation">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_7QV-UHaOEeKemeMpJaVA3A" key="StereotypeWithQualifiedNameList" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_7QV-UXaOEeKemeMpJaVA3A" key="StereotypeList" value="SysML::Requirements::Requirement"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_7QV-UnaOEeKemeMpJaVA3A" key="PropStereoDisplay" value="SysML::Requirements::Requirement.id,SysML::Requirements::Requirement.text"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_7QV-U3aOEeKemeMpJaVA3A" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_7QV-VHaOEeKemeMpJaVA3A" key="StereotypePropertyLocation" value="Compartment"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_1xqvInaOEeKemeMpJaVA3A" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_1xqvI3aOEeKemeMpJaVA3A" visible="false" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_1xqvMnaOEeKemeMpJaVA3A" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1xqvM3aOEeKemeMpJaVA3A" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_1xqvJHaOEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_1xqvJXaOEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_1xqvJnaOEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_1xqvJ3aOEeKemeMpJaVA3A"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_1xqvKHaOEeKemeMpJaVA3A" visible="false" type="7018">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_1xqvNHaOEeKemeMpJaVA3A" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1xqvNXaOEeKemeMpJaVA3A" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_1xqvKXaOEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_1xqvKnaOEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_1xqvK3aOEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_1xqvLHaOEeKemeMpJaVA3A"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_1xqvLXaOEeKemeMpJaVA3A" visible="false" type="7019">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_1xqvNnaOEeKemeMpJaVA3A" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1xqvN3aOEeKemeMpJaVA3A" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_1xqvLnaOEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_1xqvL3aOEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_1xqvMHaOEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_1xqvMXaOEeKemeMpJaVA3A"/>
- </children>
- <element xmi:type="uml:Class" href="GenericDiagramFucntion.uml#_u6MhAHaOEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_1xqvIXaOEeKemeMpJaVA3A" x="100" y="215" width="776"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_SFtaQHaUEeKemeMpJaVA3A" type="2008">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_b2afUHaUEeKemeMpJaVA3A" source="Stereotype_Annotation">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cKD0EHaUEeKemeMpJaVA3A" key="StereotypeWithQualifiedNameList" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cKD0EXaUEeKemeMpJaVA3A" key="StereotypeList" value="SysML::Requirements::Requirement"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cKD0EnaUEeKemeMpJaVA3A" key="PropStereoDisplay" value="SysML::Requirements::Requirement.id,SysML::Requirements::Requirement.text"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cKD0E3aUEeKemeMpJaVA3A" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cKD0FHaUEeKemeMpJaVA3A" key="StereotypePropertyLocation" value="Compartment"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_SFtaQnaUEeKemeMpJaVA3A" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_SFtaQ3aUEeKemeMpJaVA3A" visible="false" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_SFtaUnaUEeKemeMpJaVA3A" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_SFtaU3aUEeKemeMpJaVA3A" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_SFtaRHaUEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_SFtaRXaUEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_SFtaRnaUEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_SFtaR3aUEeKemeMpJaVA3A"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_SFtaSHaUEeKemeMpJaVA3A" visible="false" type="7018">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_SFtaVHaUEeKemeMpJaVA3A" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_SF2kMHaUEeKemeMpJaVA3A" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_SFtaSXaUEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_SFtaSnaUEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_SFtaS3aUEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_SFtaTHaUEeKemeMpJaVA3A"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_SFtaTXaUEeKemeMpJaVA3A" visible="false" type="7019">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_SF2kMXaUEeKemeMpJaVA3A" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_SF2kMnaUEeKemeMpJaVA3A" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_SFtaTnaUEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_SFtaT3aUEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_SFtaUHaUEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_SFtaUXaUEeKemeMpJaVA3A"/>
- </children>
- <element xmi:type="uml:Class" href="GenericDiagramFucntion.uml#_4PBJEHaTEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_SFtaQXaUEeKemeMpJaVA3A" x="100" y="350" width="776" height="96"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_TWfFoHaUEeKemeMpJaVA3A" type="2008" fillColor="10265827">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_dPYdYHaUEeKemeMpJaVA3A" source="Stereotype_Annotation">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_dilGMHaUEeKemeMpJaVA3A" key="StereotypeWithQualifiedNameList" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_dilGMXaUEeKemeMpJaVA3A" key="StereotypeList" value="SysML::Requirements::Requirement"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_dilGMnaUEeKemeMpJaVA3A" key="PropStereoDisplay" value="SysML::Requirements::Requirement.id,SysML::Requirements::Requirement.text"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_dilGM3aUEeKemeMpJaVA3A" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_dilGNHaUEeKemeMpJaVA3A" key="StereotypePropertyLocation" value="Compartment"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_TWfFonaUEeKemeMpJaVA3A" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_TWfFo3aUEeKemeMpJaVA3A" visible="false" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_TWfFsnaUEeKemeMpJaVA3A" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_TWfFs3aUEeKemeMpJaVA3A" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_TWfFpHaUEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_TWfFpXaUEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_TWfFpnaUEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_TWfFp3aUEeKemeMpJaVA3A"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_TWfFqHaUEeKemeMpJaVA3A" visible="false" type="7018">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_TWfFtHaUEeKemeMpJaVA3A" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_TWfFtXaUEeKemeMpJaVA3A" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_TWfFqXaUEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_TWfFqnaUEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_TWfFq3aUEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_TWfFrHaUEeKemeMpJaVA3A"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_TWfFrXaUEeKemeMpJaVA3A" visible="false" type="7019">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_TWfFtnaUEeKemeMpJaVA3A" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_TWfFt3aUEeKemeMpJaVA3A" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_TWfFrnaUEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_TWfFr3aUEeKemeMpJaVA3A"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_TWfFsHaUEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_TWfFsXaUEeKemeMpJaVA3A"/>
- </children>
- <element xmi:type="uml:Class" href="GenericDiagramFucntion.uml#__iyRoHaTEeKemeMpJaVA3A"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_TWfFoXaUEeKemeMpJaVA3A" x="100" y="470" width="761" height="141"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_doIqcGP7EeOq0pDGL_YBMA" type="2008">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_qGF_8GP7EeOq0pDGL_YBMA" source="Stereotype_Annotation">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8ihfAGP7EeOq0pDGL_YBMA" key="StereotypeWithQualifiedNameList" value="SysML::Requirements::Requirement"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8ihfAWP7EeOq0pDGL_YBMA" key="StereotypeList" value="SysML::Requirements::Requirement"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8ihfAmP7EeOq0pDGL_YBMA" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8ihfA2P7EeOq0pDGL_YBMA" key="PropStereoDisplay" value=",SysML::Requirements::Requirement.text,SysML::Requirements::Requirement.id"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_8ihfBGP7EeOq0pDGL_YBMA" key="StereotypePropertyLocation" value="Compartment"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_doJRgGP7EeOq0pDGL_YBMA" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_doJRgWP7EeOq0pDGL_YBMA" visible="false" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_doJ4kGP7EeOq0pDGL_YBMA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_doJ4kWP7EeOq0pDGL_YBMA" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_doJRgmP7EeOq0pDGL_YBMA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_doJRg2P7EeOq0pDGL_YBMA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_doJRhGP7EeOq0pDGL_YBMA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_doJRhWP7EeOq0pDGL_YBMA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_doJRhmP7EeOq0pDGL_YBMA" visible="false" type="7018">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_doKfoGP7EeOq0pDGL_YBMA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_doKfoWP7EeOq0pDGL_YBMA" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_doJRh2P7EeOq0pDGL_YBMA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_doJRiGP7EeOq0pDGL_YBMA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_doJRiWP7EeOq0pDGL_YBMA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_doJRimP7EeOq0pDGL_YBMA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_doJRi2P7EeOq0pDGL_YBMA" visible="false" type="7019">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_doKfomP7EeOq0pDGL_YBMA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_doKfo2P7EeOq0pDGL_YBMA" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_doJRjGP7EeOq0pDGL_YBMA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_doJRjWP7EeOq0pDGL_YBMA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_doJRjmP7EeOq0pDGL_YBMA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_doJRj2P7EeOq0pDGL_YBMA"/>
- </children>
- <element xmi:type="uml:Class" href="GenericDiagramFucntion.uml#_seSb0GP6EeOq0pDGL_YBMA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_doIqcWP7EeOq0pDGL_YBMA" x="100" y="645" width="761" height="171"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_doZJIGP7EeOq0pDGL_YBMA" type="2008">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_nYACAGP7EeOq0pDGL_YBMA" source="Stereotype_Annotation">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xZfVEGP7EeOq0pDGL_YBMA" key="StereotypeWithQualifiedNameList" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xZfVEWP7EeOq0pDGL_YBMA" key="StereotypeList" value="SysML::Requirements::Requirement"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xZf8IGP7EeOq0pDGL_YBMA" key="PropStereoDisplay" value="SysML::Requirements::Requirement.id,SysML::Requirements::Requirement.text"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xZf8IWP7EeOq0pDGL_YBMA" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xZf8ImP7EeOq0pDGL_YBMA" key="StereotypePropertyLocation" value="Compartment"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_doZwMGP7EeOq0pDGL_YBMA" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_doZwMWP7EeOq0pDGL_YBMA" visible="false" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_doaXQGP7EeOq0pDGL_YBMA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_doaXQWP7EeOq0pDGL_YBMA" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_doZwMmP7EeOq0pDGL_YBMA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_doZwM2P7EeOq0pDGL_YBMA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_doZwNGP7EeOq0pDGL_YBMA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_doZwNWP7EeOq0pDGL_YBMA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_doZwNmP7EeOq0pDGL_YBMA" visible="false" type="7018">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_doaXQmP7EeOq0pDGL_YBMA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_doaXQ2P7EeOq0pDGL_YBMA" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_doZwN2P7EeOq0pDGL_YBMA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_doZwOGP7EeOq0pDGL_YBMA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_doZwOWP7EeOq0pDGL_YBMA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_doZwOmP7EeOq0pDGL_YBMA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_doZwO2P7EeOq0pDGL_YBMA" visible="false" type="7019">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_doa-UGP7EeOq0pDGL_YBMA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_doa-UWP7EeOq0pDGL_YBMA" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_doZwPGP7EeOq0pDGL_YBMA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_doZwPWP7EeOq0pDGL_YBMA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_doZwPmP7EeOq0pDGL_YBMA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_doZwP2P7EeOq0pDGL_YBMA"/>
- </children>
- <element xmi:type="uml:Class" href="GenericDiagramFucntion.uml#_uKPAQGP6EeOq0pDGL_YBMA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_doZJIWP7EeOq0pDGL_YBMA" x="100" y="830" width="761"/>
- </children>
- <styles xmi:type="notation:DiagramStyle" xmi:id="_-p5JgXaNEeKemeMpJaVA3A"/>
- <element xmi:type="uml:Package" href="GenericDiagramFucntion.uml#_2hdp0HaNEeKemeMpJaVA3A"/>
+ <css:ModelStyleSheets xmi:id="_wU_r0OyrEeOTppRa5YYcIg"/>
+ <notation:Diagram xmi:id="_5VTQ4Oy6EeOTppRa5YYcIg" type="UseCase" name="UseCaseDiagram" measurementUnit="Pixel">
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_5VTQ4ey6EeOTppRa5YYcIg" name="diagram_compatibility_version" stringValue="1.0.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_5VTQ4uy6EeOTppRa5YYcIg"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_5VTQ4-y6EeOTppRa5YYcIg">
+ <owner xmi:type="uml:Model" href="GenericDiagramFucntion.uml#_tEgNoOy6EeOTppRa5YYcIg"/>
+ </styles>
+ <element xmi:type="uml:Model" href="GenericDiagramFucntion.uml#_tEgNoOy6EeOTppRa5YYcIg"/>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_7KbmgOy6EeOTppRa5YYcIg" type="PapyrusUMLClassDiagram" name="ClassDiagram" measurementUnit="Pixel">
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_7Kbmgey6EeOTppRa5YYcIg" name="diagram_compatibility_version" stringValue="1.0.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_7Kbmguy6EeOTppRa5YYcIg"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_7Kbmg-y6EeOTppRa5YYcIg">
+ <owner xmi:type="uml:Model" href="GenericDiagramFucntion.uml#_tqyKgOy6EeOTppRa5YYcIg"/>
+ </styles>
+ <element xmi:type="uml:Model" href="GenericDiagramFucntion.uml#_tqyKgOy6EeOTppRa5YYcIg"/>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_8nLRUOy6EeOTppRa5YYcIg" type="UseCase" name="UseCaseDiagram" measurementUnit="Pixel">
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_8nL4YOy6EeOTppRa5YYcIg" name="diagram_compatibility_version" stringValue="1.0.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_8nL4Yey6EeOTppRa5YYcIg"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_8nL4Yuy6EeOTppRa5YYcIg">
+ <owner xmi:type="uml:Model" href="GenericDiagramFucntion.uml#_uA3IMOy6EeOTppRa5YYcIg"/>
+ </styles>
+ <element xmi:type="uml:Model" href="GenericDiagramFucntion.uml#_uA3IMOy6EeOTppRa5YYcIg"/>
</notation:Diagram>
- <nattable:Table xmi:id="_BX9hQOGuEeO_JM12vRgWBQ" name="RequirementTable" currentRowAxisProvider="_BX-IVOGuEeO_JM12vRgWBQ" currentColumnAxisProvider="_BX-IUOGuEeO_JM12vRgWBQ">
- <context xmi:type="uml:Package" href="GenericDiagramFucntion.uml#_2hdp0HaNEeKemeMpJaVA3A"/>
- <owner xmi:type="uml:Package" href="GenericDiagramFucntion.uml#_2hdp0HaNEeKemeMpJaVA3A"/>
- <prototype xmi:type="configuration:PapyrusSyncTable" href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wNb3txhEeOqHvRyiN87hA"/>
- <tableConfiguration xmi:type="nattableconfiguration:TableConfiguration" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#/"/>
- <columnAxisProvidersHistory xmi:type="nattableaxisprovider:SlaveObjectAxisProvider" xmi:id="_BX-IUOGuEeO_JM12vRgWBQ" description="Provides the columns of the tables with a default configuration" name="Requirements Feature Columns Provider">
- <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_BX-IUeGuEeO_JM12vRgWBQ" element="property_of_stereotype:/SysML::Requirements::Requirement::id">
- <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/>
- </axis>
- <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_BX-IU-GuEeO_JM12vRgWBQ" element="property_of_stereotype:/SysML::Requirements::Requirement::text">
- <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/>
- </axis>
- </columnAxisProvidersHistory>
- <rowAxisProvidersHistory xmi:type="nattableaxisprovider:MasterObjectAxisProvider" xmi:id="_BX-IVOGuEeO_JM12vRgWBQ" description="Provides the requirements directly owned by the context of the table" name="Requirement Axis Provider" disconnectSlave="true"/>
- </nattable:Table>
</xmi:XMI>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.uml b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.uml
index 35cedd02933..949dc0d554c 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.uml
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/model/GenericDiagramFucntion.uml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Requirements="http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements">
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Document="http:///schemas/Document/_qR4REMn0EeO9CYUoXDRplw/0" xmlns:Requirements="http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:structure="http://DeveloperProcess/schemas/structure/_VA9p4McPEeO9CYUoXDRplw/1" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http:///schemas/Document/_qR4REMn0EeO9CYUoXDRplw/0 pathmap://DEVELOPER_PROFILES/Document.profile.uml#_qR44IMn0EeO9CYUoXDRplw http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements http://DeveloperProcess/schemas/structure/_VA9p4McPEeO9CYUoXDRplw/1 pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_VA-4AMcPEeO9CYUoXDRplw">
<uml:Model xmi:id="_v2A68HaMEeKemeMpJaVA3A" name="DiagramEditorFunctionalities">
<ownedComment xmi:type="uml:Comment" xmi:id="_xpU2MHaNEeKemeMpJaVA3A" annotatedElement="_v2A68HaMEeKemeMpJaVA3A">
<body>The purpose of this document is to explain basic functionalities intra diagram, i.e. how element in the diagram can be manipulated without taking in account link with model explorer, and properties view </body>
@@ -7,7 +7,7 @@
<packageImport xmi:type="uml:PackageImport" xmi:id="_v2A68XaMEeKemeMpJaVA3A">
<importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
</packageImport>
- <packagedElement xmi:type="uml:Package" xmi:id="_2hdp0HaNEeKemeMpJaVA3A" name="Requirements">
+ <packagedElement xmi:type="uml:Model" xmi:id="_sz15QOyrEeOTppRa5YYcIg" name="Requirements">
<packagedElement xmi:type="uml:Class" xmi:id="_6udOsHaNEeKemeMpJaVA3A" name="DisplayElementAtFirstLevel"/>
<packagedElement xmi:type="uml:Class" xmi:id="_u6MhAHaOEeKemeMpJaVA3A" name="DisplayElementAtFirstLevel_+1"/>
<packagedElement xmi:type="uml:Class" xmi:id="_4PBJEHaTEeKemeMpJaVA3A" name="MoveElementIntoAnother"/>
@@ -17,12 +17,99 @@
<packagedElement xmi:type="uml:Class" xmi:id="_UzjXQOGuEeO_JM12vRgWBQ" name="DropDromModelExplorer"/>
<packagedElement xmi:type="uml:Class" xmi:id="_dQjtQOvJEeOv4v5t8d2cOg" name="DiagramVersion"/>
</packagedElement>
+ <packagedElement xmi:type="uml:Model" xmi:id="_tEgNoOy6EeOTppRa5YYcIg" name="UseCases"/>
+ <packagedElement xmi:type="uml:Model" xmi:id="_tqyKgOy6EeOTppRa5YYcIg" name="Design"/>
+ <packagedElement xmi:type="uml:Model" xmi:id="_uA3IMOy6EeOTppRa5YYcIg" name="test"/>
+ <packagedElement xmi:type="uml:Model" xmi:id="_vpPJUOy8EeOTppRa5YYcIg" name="Generic function of a Papyrus diagram editor">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vpSzsOy8EeOTppRa5YYcIg">
+ <body>The purpose of this document is to explain basic functionalities intra diagram, i.e. how element in the diagram can be manipulated without taking in account link with model explorer, and properties view </body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Package" xmi:id="_vpWeEOy8EeOTppRa5YYcIg" name="Requirements">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vpcksOy8EeOTppRa5YYcIg">
+ <body>- DisplayElementAtFirstLevel (id=Req_001):
+ Papyrus shall let display every elements at first layer even if the namespace is not respected</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vpfoAOy8EeOTppRa5YYcIg">
+ <body>- DisplayElementAtFirstLevel_+1 (id=Req_002):
+ Papyrus shall display element by respected namespace when they are contained graphically by other elements </body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vpirUOy8EeOTppRa5YYcIg">
+ <body>- MoveElementIntoAnother (id=Req_003):
+ When an element is moved into another element, the container has to change, i.e. the qualified name change</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vpluoOy8EeOTppRa5YYcIg">
+ <body>- MoveElementIntoADiagram (id=Req_004):
+ When an element move from an element to the diagram, two options can be applied:&#xD;
+- The container change and the namespace has to be adapted, so a clean into diagrams has to be done to respect Req_002&#xD;
+- The container does not change; this is only a graphical move, as described by the req_001</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vpoK4Oy8EeOTppRa5YYcIg">
+ <body>- Edit Grid and Ruler Property (id=Req_005):
+ The user must be able to change the Diagram Viewer properties (Snap To Grid/To Geometry, Show Rulers, Show Grid, Grid Style, Grid Color, Grid Order, Ruler Units, Grid Spacing )</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vprOMOy8EeOTppRa5YYcIg">
+ <body>- Snap To Grid Behavior (id=Req_005):
+ Snap To Grid must be able to snap on : &#xD;
+- 4 corners of rectangle&#xD;
+- 4 middles of side of a rectangle&#xD;
+- anchors of link&#xD;
+- bendpoints</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vpuRgOy8EeOTppRa5YYcIg">
+ <body>- DropDromModelExplorer (id=Req006):
+ Its possible to drop the seame element several time on the canva</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vpwtwOy8EeOTppRa5YYcIg">
+ <body>- DiagramVersion (id=Req007):
+ Each diagram must have a version inorder to able possble migration</body>
+ </ownedComment>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Package" xmi:id="_vpyi8Oy8EeOTppRa5YYcIg" name="Use Cases">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vp6ewOy8EeOTppRa5YYcIg">
+ <body>UseCaseDiagram</body>
+ </ownedComment>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Package" xmi:id="_vp87AOy8EeOTppRa5YYcIg" name="Design">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vqE20Oy8EeOTppRa5YYcIg">
+ <body>ClassDiagram</body>
+ </ownedComment>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Package" xmi:id="_vqHTEOy8EeOTppRa5YYcIg" name="Tests">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vqOn0Oy8EeOTppRa5YYcIg">
+ <body>UseCaseDiagram</body>
+ </ownedComment>
+ </packagedElement>
+ </packagedElement>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="_V0CKUHaNEeKemeMpJaVA3A">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_V1EsIHaNEeKemeMpJaVA3A" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements"/>
</eAnnotations>
<appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
</profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_7ilaIOvxEeOTppRa5YYcIg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_7jjDcOvxEeOTppRa5YYcIg" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_VA6mkMcPEeO9CYUoXDRplw"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_kWqjAMbXEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_7jpKEOvxEeOTppRa5YYcIg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_7kZYAOvxEeOTppRa5YYcIg" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_VA-4AMcPEeO9CYUoXDRplw"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_qCT3MMbXEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_7kbNMOvxEeOTppRa5YYcIg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_7lJl8OvxEeOTppRa5YYcIg" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_VBAtMccPEeO9CYUoXDRplw"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_2LNtQMbYEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_U92EwOy8EeOTppRa5YYcIg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_U--tMOy8EeOTppRa5YYcIg" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_qR44IMn0EeO9CYUoXDRplw"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_D0JcUMnzEeO9CYUoXDRplw"/>
+ </profileApplication>
</uml:Model>
<Requirements:Requirement xmi:id="_6u56oHaNEeKemeMpJaVA3A" text="Papyrus shall let display every elements at first layer even if the namespace is not respected" id="Req_001" base_Class="_6udOsHaNEeKemeMpJaVA3A"/>
<Requirements:Requirement xmi:id="_u6MhAXaOEeKemeMpJaVA3A" text="Papyrus shall display element by respected namespace when they are contained graphically by other elements " id="Req_002" base_Class="_u6MhAHaOEeKemeMpJaVA3A"/>
@@ -32,4 +119,26 @@
<Requirements:Requirement xmi:id="_u_1LgGP6EeOq0pDGL_YBMA" text="Snap To Grid must be able to snap on : &#xD;&#xA;- 4 corners of rectangle&#xD;&#xA;- 4 middles of side of a rectangle&#xD;&#xA;- anchors of link&#xD;&#xA;- bendpoints" id="Req_005" base_Class="_uKPAQGP6EeOq0pDGL_YBMA"/>
<Requirements:Requirement xmi:id="_Uzo20OGuEeO_JM12vRgWBQ" text="Its possible to drop the seame element several time on the canva" id="Req006" base_Class="_UzjXQOGuEeO_JM12vRgWBQ"/>
<Requirements:Requirement xmi:id="_dQusYOvJEeOv4v5t8d2cOg" text="Each diagram must have a version inorder to able possble migration" id="Req007" base_Class="_dQjtQOvJEeOv4v5t8d2cOg"/>
+ <structure:Project xmi:id="_q9KrgOyrEeOTppRa5YYcIg" author="CEA LIST" version="1.0.0" base_Model="_v2A68HaMEeKemeMpJaVA3A" title="Generic function of a Papyrus diagram editor"/>
+ <structure:Requirements xmi:id="_ybsUwOy6EeOTppRa5YYcIg" base_Model="_sz15QOyrEeOTppRa5YYcIg"/>
+ <structure:UseCases xmi:id="_za0PcOy6EeOTppRa5YYcIg" base_Model="_tEgNoOy6EeOTppRa5YYcIg"/>
+ <structure:Design xmi:id="_0dIBAOy6EeOTppRa5YYcIg" base_Model="_tqyKgOy6EeOTppRa5YYcIg"/>
+ <structure:Tests xmi:id="_1R33sOy6EeOTppRa5YYcIg" base_Model="_uA3IMOy6EeOTppRa5YYcIg"/>
+ <Document:Document xmi:id="_vpRlkOy8EeOTppRa5YYcIg" base_Model="_vpPJUOy8EeOTppRa5YYcIg" author="CEA LIST" version="1.0.0"/>
+ <Document:Content xmi:id="_vpV3AOy8EeOTppRa5YYcIg" base_Comment="_vpSzsOy8EeOTppRa5YYcIg"/>
+ <Document:Section xmi:id="_vpZhYOy8EeOTppRa5YYcIg" base_Package="_vpWeEOy8EeOTppRa5YYcIg"/>
+ <Document:Content xmi:id="_vpdy0Oy8EeOTppRa5YYcIg" base_Comment="_vpcksOy8EeOTppRa5YYcIg"/>
+ <Document:Content xmi:id="_vpg2IOy8EeOTppRa5YYcIg" base_Comment="_vpfoAOy8EeOTppRa5YYcIg"/>
+ <Document:Content xmi:id="_vpj5cOy8EeOTppRa5YYcIg" base_Comment="_vpirUOy8EeOTppRa5YYcIg"/>
+ <Document:Content xmi:id="_vpm8wOy8EeOTppRa5YYcIg" base_Comment="_vpluoOy8EeOTppRa5YYcIg"/>
+ <Document:Content xmi:id="_vppZAOy8EeOTppRa5YYcIg" base_Comment="_vpoK4Oy8EeOTppRa5YYcIg"/>
+ <Document:Content xmi:id="_vpscUOy8EeOTppRa5YYcIg" base_Comment="_vprOMOy8EeOTppRa5YYcIg"/>
+ <Document:Content xmi:id="_vpvfoOy8EeOTppRa5YYcIg" base_Comment="_vpuRgOy8EeOTppRa5YYcIg"/>
+ <Document:Content xmi:id="_vpx74Oy8EeOTppRa5YYcIg" base_Comment="_vpwtwOy8EeOTppRa5YYcIg"/>
+ <Document:Section xmi:id="_vpzxEOy8EeOTppRa5YYcIg" base_Package="_vpyi8Oy8EeOTppRa5YYcIg"/>
+ <Document:ImageRef xmi:id="_vp8T8Oy8EeOTppRa5YYcIg" base_Comment="_vp6ewOy8EeOTppRa5YYcIg" ref="C:/git/org.eclipse.papyrus/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/imgDOC/UseCaseDiagram.png"/>
+ <Document:Section xmi:id="_vp-JIOy8EeOTppRa5YYcIg" base_Package="_vp87AOy8EeOTppRa5YYcIg"/>
+ <Document:ImageRef xmi:id="_vqGE8Oy8EeOTppRa5YYcIg" base_Comment="_vqE20Oy8EeOTppRa5YYcIg" ref="C:/git/org.eclipse.papyrus/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/imgDOC/ClassDiagram.png"/>
+ <Document:Section xmi:id="_vqIhMOy8EeOTppRa5YYcIg" base_Package="_vqHTEOy8EeOTppRa5YYcIg"/>
+ <Document:ImageRef xmi:id="_vqP18Oy8EeOTppRa5YYcIg" base_Comment="_vqOn0Oy8EeOTppRa5YYcIg" ref="C:/git/org.eclipse.papyrus/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/imgDOC/UseCaseDiagram.png"/>
</xmi:XMI>

Back to the top