Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaged Elaasar2018-04-02 04:03:26 +0000
committerPatrick Tessier2018-04-04 10:05:53 +0000
commit247bcfe8dee9a7412bda80f49165d5ed9bb08560 (patch)
tree1b3b423a98e110f4c031fb06584bc84d5dd5f46d /plugins/infra/architecture
parent1bed9aceb3f2641db64630a58e3622c35182272a (diff)
downloadorg.eclipse.papyrus-247bcfe8dee9a7412bda80f49165d5ed9bb08560.tar.gz
org.eclipse.papyrus-247bcfe8dee9a7412bda80f49165d5ed9bb08560.tar.xz
org.eclipse.papyrus-247bcfe8dee9a7412bda80f49165d5ed9bb08560.zip
Bug 532299 - Add tooltips on properties in architecture framework
editor. Added descriptions on all properties that show in the architecture editor. Those descriptions appear in the status bar of the Eclipse window when the property is selected (not as toolips when hovering over properties). Also, some properties are categorized in the property sheet into sub categories to ease understanding. I also added the same descriptions as documentation of the AF model API. Change-Id: I2a4e928b177ae5434c6f38255ea1bba41c822416 Signed-off-by: Maged Elaasar <melaasar@gmail.com>
Diffstat (limited to 'plugins/infra/architecture')
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/META-INF/MANIFEST.MF4
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/plugin.properties18
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/ModelAutoCreateItemProvider.java10
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/ModelRuleItemProvider.java10
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/OwningRuleItemProvider.java10
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/PapyrusRepresentationKindItemProvider.java8
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RepresentationEditPlugin.java2
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RootAutoSelectItemProvider.java2
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RuleItemProvider.java2
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/META-INF/MANIFEST.MF2
-rwxr-xr-xplugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/model/Representation.ecore133
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/model/Representation.genmodel56
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/ModelAutoCreate.java16
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/ModelRule.java18
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/OwningRule.java26
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/PapyrusRepresentationKind.java19
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/RepresentationPackage.java21
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/RootAutoSelect.java8
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/Rule.java8
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/ModelAutoCreateImpl.java2
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/ModelRuleImpl.java2
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/OwningRuleImpl.java2
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/PapyrusRepresentationKindImpl.java2
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/RepresentationPackageImpl.java8
-rw-r--r--plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/RuleImpl.java2
25 files changed, 312 insertions, 79 deletions
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/META-INF/MANIFEST.MF b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/META-INF/MANIFEST.MF
index f43a8742c3b..17ca37972d8 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/META-INF/MANIFEST.MF
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/META-INF/MANIFEST.MF
@@ -17,5 +17,7 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.12.0,4.0.0)",
org.eclipse.papyrus.infra.constraints;bundle-version="[2.0.0,3.0.0)";visibility:=reexport,
org.eclipse.papyrus.infra.constraints.edit;bundle-version="[2.0.0,3.0.0)";visibility:=reexport,
org.eclipse.papyrus.infra.types;bundle-version="[3.0.0,4.0.0)";visibility:=reexport,
- org.eclipse.papyrus.infra.types.edit;bundle-version="[3.0.0,4.0.0)";visibility:=reexport
+ org.eclipse.papyrus.infra.types.edit;bundle-version="[3.0.0,4.0.0)";visibility:=reexport,
+ org.eclipse.emf.ecore;bundle-version="[2.0.0,3.0.0)";visibility:=reexport,
+ org.eclipse.emf.ecore.edit;bundle-version="[2.0.0,3.0.0)";visibility:=reexport
Bundle-ActivationPolicy: lazy
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/plugin.properties b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/plugin.properties
index e8b0a3085a2..d2f6164bbdd 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/plugin.properties
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/plugin.properties
@@ -46,3 +46,21 @@ _UI_ModelAutoCreate_origin_feature = Origin
_UI_ModelAutoCreate_creationType_feature = Creation Type
_UI_RootAutoSelect_feature_feature = Feature
_UI_Unknown_feature = Unspecified
+_UI_PapyrusRepresentationKind_parent_description = The parent representation kind from which this representation kind inherits
+_UI_PapyrusRepresentationKind_modelRules_description = The set of rules that determine which model elements can be the semantic element behind this diagram
+_UI_PapyrusRepresentationKind_owningRules_description = The set of rules that determine which elements can be the syntactic owner of this diagram
+_UI_PapyrusRepresentationKind_implementationID_description = The id of the underlying implementation of this representation kind
+_UI_Rule_permit_description = Whether the rule permits or forbids the action it represents
+_UI_ModelRule_element_description = The type (from the language's metamodel) that a model element must have for a representation of this kind to apply to.
+_UI_ModelRule_stereotypes_description = The set of stereotypes (from the language's profiles) that a model element must have for a representation of this kind to apply to.
+_UI_ModelRule_multiplicity_description = The maximum number of representations of this kind that a model element can have. -1 represents an unbounded number.
+_UI_OwningRule_element_description = The type (from the language's metamodel) that a model element must have to own a representation of this kind.
+_UI_OwningRule_stereotypes_description = The set of stereotypes (from the language's profiles) that a model element must have to own a representation of this kind.
+_UI_OwningRule_multiplicity_description = The maximum number of representations of this kind that a model element can own. -1 represents an unbounded number.
+_UI_OwningRule_newModelPath_description = The settings of auto creating model elements with this representation kind
+_UI_OwningRule_selectDiagramRoot_description = The settings of selecting a model element that is the root of this representation kind
+_UI_ModelAutoCreate_feature_description = A reference in the origin type that will contain the newly created model element with this representation kind.
+_UI_ModelAutoCreate_origin_description = The type (from the language's metamodel) that will own the newly created model element
+_UI_ModelAutoCreate_creationType_description = The element type (from the element type registry) that will used to created the new model element.
+_UI_RootAutoSelect_feature_description = A reference from the newly created element type that is used to get the root of a representation of this kind
+_UI_RepresentationKindPropertyCategory = Representation Kind
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/ModelAutoCreateItemProvider.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/ModelAutoCreateItemProvider.java
index c0fecf80a6e..344a4e75a54 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/ModelAutoCreateItemProvider.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/ModelAutoCreateItemProvider.java
@@ -89,8 +89,8 @@ public class ModelAutoCreateItemProvider
createItemPropertyDescriptor
(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_ModelAutoCreate_feature_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ModelAutoCreate_feature_feature", "_UI_ModelAutoCreate_type"),
+ getString("_UI_ModelAutoCreate_feature_feature"), //$NON-NLS-1$
+ getString("_UI_ModelAutoCreate_feature_description"), //$NON-NLS-1$
RepresentationPackage.Literals.MODEL_AUTO_CREATE__FEATURE,
true,
false,
@@ -112,7 +112,7 @@ public class ModelAutoCreateItemProvider
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_ModelAutoCreate_origin_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ModelAutoCreate_origin_feature", "_UI_ModelAutoCreate_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ getString("_UI_ModelAutoCreate_origin_description"), //$NON-NLS-1$
RepresentationPackage.Literals.MODEL_AUTO_CREATE__ORIGIN,
false,
false,
@@ -131,8 +131,8 @@ public class ModelAutoCreateItemProvider
protected void addCreationTypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add(new ComplexTypePropertyDescriptor(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_ModelAutoCreate_creationType_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ModelAutoCreate_creationType_feature", "_UI_ModelAutoCreate_type"),
+ getString("_UI_ModelAutoCreate_creationType_feature"), //$NON-NLS-1$
+ getString("_UI_ModelAutoCreate_creationType_description"), //$NON-NLS-1$
RepresentationPackage.Literals.MODEL_AUTO_CREATE__CREATION_TYPE,
true,
false,
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/ModelRuleItemProvider.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/ModelRuleItemProvider.java
index a8684b165dc..0fa9243a2a1 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/ModelRuleItemProvider.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/ModelRuleItemProvider.java
@@ -96,8 +96,8 @@ public class ModelRuleItemProvider extends RuleItemProvider {
protected void addElementPropertyDescriptor(Object object) {
itemPropertyDescriptors.add(new EClassPropertyDescriptor(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_ModelRule_element_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ModelRule_element_feature", "_UI_ModelRule_type"),
+ getString("_UI_ModelRule_element_feature"), //$NON-NLS-1$
+ getString("_UI_ModelRule_element_description"), //$NON-NLS-1$
RepresentationPackage.Literals.MODEL_RULE__ELEMENT,
true,
false,
@@ -116,8 +116,8 @@ public class ModelRuleItemProvider extends RuleItemProvider {
protected void addStereotypesPropertyDescriptor(Object object) {
itemPropertyDescriptors.add(new StereotypePropertyDescriptor(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_ModelRule_stereotypes_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ModelRule_stereotypes_feature", "_UI_ModelRule_type"),
+ getString("_UI_ModelRule_stereotypes_feature"), //$NON-NLS-1$
+ getString("_UI_ModelRule_stereotypes_description"), //$NON-NLS-1$
RepresentationPackage.Literals.MODEL_RULE__STEREOTYPES,
true,
false,
@@ -139,7 +139,7 @@ public class ModelRuleItemProvider extends RuleItemProvider {
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_ModelRule_multiplicity_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ModelRule_multiplicity_feature", "_UI_ModelRule_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ getString("_UI_ModelRule_multiplicity_description"), //$NON-NLS-1$
RepresentationPackage.Literals.MODEL_RULE__MULTIPLICITY,
true,
false,
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/OwningRuleItemProvider.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/OwningRuleItemProvider.java
index 90c48ca6c68..9c3c990e792 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/OwningRuleItemProvider.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/OwningRuleItemProvider.java
@@ -72,8 +72,8 @@ public class OwningRuleItemProvider extends RuleItemProvider {
protected void addElementPropertyDescriptor(Object object) {
itemPropertyDescriptors.add(new EClassPropertyDescriptor(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_OwningRule_element_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_OwningRule_element_feature", "_UI_OwningRule_type"),
+ getString("_UI_OwningRule_element_feature"), //$NON-NLS-1$
+ getString("_UI_OwningRule_element_description"), //$NON-NLS-1$
RepresentationPackage.Literals.OWNING_RULE__ELEMENT,
true,
false,
@@ -92,8 +92,8 @@ public class OwningRuleItemProvider extends RuleItemProvider {
protected void addStereotypesPropertyDescriptor(Object object) {
itemPropertyDescriptors.add(new StereotypePropertyDescriptor(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_OwningRule_stereotypes_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_OwningRule_stereotypes_feature", "_UI_OwningRule_type"),
+ getString("_UI_OwningRule_stereotypes_feature"), //$NON-NLS-1$
+ getString("_UI_OwningRule_stereotypes_description"), //$NON-NLS-1$
RepresentationPackage.Literals.OWNING_RULE__STEREOTYPES,
true,
false,
@@ -115,7 +115,7 @@ public class OwningRuleItemProvider extends RuleItemProvider {
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_OwningRule_multiplicity_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_OwningRule_multiplicity_feature", "_UI_OwningRule_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ getString("_UI_OwningRule_multiplicity_description"), //$NON-NLS-1$
RepresentationPackage.Literals.OWNING_RULE__MULTIPLICITY,
true,
false,
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/PapyrusRepresentationKindItemProvider.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/PapyrusRepresentationKindItemProvider.java
index faab5a6458b..0e12d6325b1 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/PapyrusRepresentationKindItemProvider.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/PapyrusRepresentationKindItemProvider.java
@@ -76,13 +76,13 @@ public class PapyrusRepresentationKindItemProvider extends RepresentationKindIte
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_PapyrusRepresentationKind_parent_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PapyrusRepresentationKind_parent_feature", "_UI_PapyrusRepresentationKind_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ getString("_UI_PapyrusRepresentationKind_parent_description"), //$NON-NLS-1$
RepresentationPackage.Literals.PAPYRUS_REPRESENTATION_KIND__PARENT,
true,
false,
true,
null,
- null,
+ getString("_UI_RepresentationKindPropertyCategory"), //$NON-NLS-1$
null));
}
@@ -98,13 +98,13 @@ public class PapyrusRepresentationKindItemProvider extends RepresentationKindIte
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_PapyrusRepresentationKind_implementationID_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PapyrusRepresentationKind_implementationID_feature", "_UI_PapyrusRepresentationKind_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ getString("_UI_PapyrusRepresentationKind_implementationID_description"), //$NON-NLS-1$
RepresentationPackage.Literals.PAPYRUS_REPRESENTATION_KIND__IMPLEMENTATION_ID,
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
+ getString("_UI_RepresentationKindPropertyCategory"), //$NON-NLS-1$
null));
}
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RepresentationEditPlugin.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RepresentationEditPlugin.java
index 6aecd4e8cc9..54c63bf949f 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RepresentationEditPlugin.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RepresentationEditPlugin.java
@@ -15,6 +15,7 @@ package org.eclipse.papyrus.infra.architecture.representation.provider;
import org.eclipse.emf.common.EMFPlugin;
import org.eclipse.emf.common.util.ResourceLocator;
+import org.eclipse.emf.ecore.provider.EcoreEditPlugin;
import org.eclipse.papyrus.infra.constraints.provider.ConstraintsEditPlugin;
import org.eclipse.papyrus.infra.core.architecture.provider.ArchitectureEditPlugin;
import org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin;
@@ -54,6 +55,7 @@ public final class RepresentationEditPlugin extends EMFPlugin {
ArchitectureEditPlugin.INSTANCE,
ConstraintsEditPlugin.INSTANCE,
TypesConfigurationsEditPlugin.INSTANCE,
+ EcoreEditPlugin.INSTANCE,
});
}
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RootAutoSelectItemProvider.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RootAutoSelectItemProvider.java
index d3bcba4cbcb..41d62a60b44 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RootAutoSelectItemProvider.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RootAutoSelectItemProvider.java
@@ -83,7 +83,7 @@ public class RootAutoSelectItemProvider
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_RootAutoSelect_feature_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_RootAutoSelect_feature_feature", "_UI_RootAutoSelect_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ getString("_UI_RootAutoSelect_feature_description"), //$NON-NLS-1$
RepresentationPackage.Literals.ROOT_AUTO_SELECT__FEATURE,
true,
false,
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RuleItemProvider.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RuleItemProvider.java
index 20cb4b622b6..3db7bd56036 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RuleItemProvider.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation.edit/src-gen/org/eclipse/papyrus/infra/architecture/representation/provider/RuleItemProvider.java
@@ -86,7 +86,7 @@ public class RuleItemProvider
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_Rule_permit_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_Rule_permit_feature", "_UI_Rule_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ getString("_UI_Rule_permit_description"), //$NON-NLS-1$
RepresentationPackage.Literals.RULE__PERMIT,
true,
false,
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/META-INF/MANIFEST.MF b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/META-INF/MANIFEST.MF
index b2f40384833..f85c58963a2 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/META-INF/MANIFEST.MF
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/META-INF/MANIFEST.MF
@@ -13,6 +13,6 @@ Export-Package: org.eclipse.papyrus.infra.architecture.representation,
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.12.0,4.0.0)",
org.eclipse.emf.ecore;bundle-version="[2.12.0,3.0.0)";visibility:=reexport,
org.eclipse.papyrus.infra.constraints;bundle-version="[2.0.0,3.0.0)";visibility:=reexport,
- org.eclipse.papyrus.infra.types;visibility:=reexport;bundle-version="[3.0.0,4.0.0)",
+ org.eclipse.papyrus.infra.types;bundle-version="[3.0.0,4.0.0)";visibility:=reexport,
org.eclipse.papyrus.infra.core.architecture;bundle-version="[1.0.0,2.0.0)";visibility:=reexport
Bundle-ActivationPolicy: lazy
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/model/Representation.ecore b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/model/Representation.ecore
index 5b891670fbb..fd9ea48a74b 100755
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/model/Representation.ecore
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/model/Representation.ecore
@@ -4,55 +4,154 @@
nsPrefix="representation">
<eClassifiers xsi:type="ecore:EClass" name="PapyrusRepresentationKind" abstract="true"
eSuperTypes="../../org.eclipse.papyrus.infra.core.architecture/model/Architecture.ecore#//RepresentationKind">
- <eStructuralFeatures xsi:type="ecore:EReference" name="parent" eType="#//PapyrusRepresentationKind"/>
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="A subclass of representation kind that adds rules"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="parent" eType="#//PapyrusRepresentationKind">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The parent representation kind from which this representation kind inherits"/>
+ <details key="propertyCategory" value="Representation Kind"/>
+ <details key="propertyDescription" value="The parent representation kind from which this representation kind inherits"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="modelRules" lowerBound="1"
upperBound="-1" eType="#//ModelRule" containment="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="These rules determine which model elements can be the semantic element behind this diagram"/>
+ <details key="documentation" value="The set of rules that determine which model elements can be the semantic element behind this diagram"/>
+ <details key="propertyCategory" value="Representation Kind"/>
+ <details key="propertyDescription" value="The set of rules that determine which model elements can be the semantic element behind this diagram"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="owningRules" lowerBound="1"
upperBound="-1" eType="#//OwningRule" containment="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="These rules determine which elements can be the syntactic owner of this diagram"/>
+ <details key="documentation" value="The set of rules that determine which elements can be the syntactic owner of this diagram"/>
+ <details key="propertyCategory" value="Representation Kind"/>
+ <details key="propertyDescription" value="The set of rules that determine which elements can be the syntactic owner of this diagram"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="implementationID" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The id of the underlying implementation of this representation kind"/>
+ <details key="propertyCategory" value="Representation Kind"/>
+ <details key="propertyDescription" value="The id of the underlying implementation of this representation kind"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Rule" abstract="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="A rule that controls the definition of a representation kind."/>
+ </eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="permit" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="true"/>
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Whether the rule permits or forbids the action it represents"/>
+ <details key="propertyDescription" value="Whether the rule permits or forbids the action it represents"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ModelRule" eSuperTypes="#//Rule ../../org.eclipse.papyrus.infra.constraints/Model/Constraints.ecore#//DisplayUnit">
- <eStructuralFeatures xsi:type="ecore:EReference" name="element" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass"/>
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="A rule that controls which element this representation is for."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="element" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The type (from the language's metamodel) that a model element must have for a representation of this kind to apply to."/>
+ <details key="propertyDescription" value="The type (from the language's metamodel) that a model element must have for a representation of this kind to apply to."/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="stereotypes" upperBound="-1"
- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass"/>
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The set of stereotypes (from the language's profiles) that a model element must have for a representation of this kind to apply to."/>
+ <details key="propertyDescription" value="The set of stereotypes (from the language's profiles) that a model element must have for a representation of this kind to apply to."/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="multiplicity" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="-1"/>
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="-1">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The maximum number of representations of this kind that a model element can have. -1 represents an unbounded number."/>
+ <details key="propertyDescription" value="The maximum number of representations of this kind that a model element can have. -1 represents an unbounded number."/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="OwningRule" eSuperTypes="#//Rule">
- <eStructuralFeatures xsi:type="ecore:EReference" name="element" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass"/>
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="A rule that controls what element can own representations of this kind."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="element" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The type (from the language's metamodel) that a model element must have to own a representation of this kind."/>
+ <details key="propertyDescription" value="The type (from the language's metamodel) that a model element must have to own a representation of this kind."/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="stereotypes" upperBound="-1"
- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass"/>
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The set of stereotypes (from the language's profiles) that a model element must have to own a representation of this kind."/>
+ <details key="propertyDescription" value="The set of stereotypes (from the language's profiles) that a model element must have to own a representation of this kind."/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="multiplicity" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="-1"/>
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="-1">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The maximum number of representations of this kind that a model element can own. -1 represents an unbounded number."/>
+ <details key="propertyDescription" value="The maximum number of representations of this kind that a model element can own. -1 represents an unbounded number."/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="newModelPath" upperBound="-1"
- eType="#//ModelAutoCreate" containment="true"/>
+ eType="#//ModelAutoCreate" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The settings of auto creating model elements with this representation kind"/>
+ <details key="propertyDescription" value="The settings of auto creating model elements with this representation kind"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="selectDiagramRoot" upperBound="-1"
- eType="#//RootAutoSelect" containment="true"/>
+ eType="#//RootAutoSelect" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The settings of selecting a model element that is the root of this representation kind"/>
+ <details key="propertyDescription" value="The settings of selecting a model element that is the root of this representation kind"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ModelAutoCreate">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The settings of auto creating model elements with a representation kind"/>
+ </eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="feature" lowerBound="1"
- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EReference"/>
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EReference">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="A reference in the origin type that will contain the newly created model element with this representation kind."/>
+ <details key="propertyDescription" value="A reference in the origin type that will contain the newly created model element with this representation kind."/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="origin" lowerBound="1"
eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass" changeable="false"
- volatile="true" transient="true" derived="true"/>
+ volatile="true" transient="true" derived="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The type (from the language's metamodel) that will own the newly created model element."/>
+ <details key="propertyDescription" value="The type (from the language's metamodel) that will own the newly created model element"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="creationType" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The element type (from the element type registry) that will used to created the new model element."/>
+ <details key="propertyDescription" value="The element type (from the element type registry) that will used to created the new model element."/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="RootAutoSelect">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The settings of selecting a model element that is the root of a representation kind"/>
+ </eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="feature" lowerBound="1"
- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EReference"/>
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EReference">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="A reference from the newly created element type that is used to get the root of a representation of this kind."/>
+ <details key="propertyDescription" value="A reference from the newly created element type that is used to get the root of a representation of this kind"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/model/Representation.genmodel b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/model/Representation.genmodel
index 1f9b0e957c1..8e88a7ea080 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/model/Representation.genmodel
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/model/Representation.genmodel
@@ -9,40 +9,60 @@
testsDirectory="/org.eclipse.papyrus.infra.architecture.representation.tests/src-gen"
importerID="org.eclipse.emf.importer.ecore" complianceLevel="8.0" copyrightFields="false"
editorPluginID="org.eclipse.papyrus.infra.architecture.representation.editor"
- usedGenPackages="../../org.eclipse.papyrus.infra.core.architecture/model/Architecture.genmodel#//architecture ../../org.eclipse.papyrus.infra.constraints/Model/Constraints.genmodel#//constraints ../../org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.genmodel#//types"
+ usedGenPackages="../../org.eclipse.papyrus.infra.core.architecture/model/Architecture.genmodel#//architecture ../../org.eclipse.papyrus.infra.constraints/Model/Constraints.genmodel#//constraints ../../org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.genmodel#//types ../../org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore"
operationReflection="true" importOrganizing="true">
<foreignModel>Representation.ecore</foreignModel>
<genPackages prefix="Representation" basePackage="org.eclipse.papyrus.infra.architecture"
disposableProviderFactory="true" extensibleProviderFactory="true" childCreationExtenders="true"
ecorePackage="Representation.ecore#/">
<genClasses image="false" ecoreClass="Representation.ecore#//PapyrusRepresentationKind">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//PapyrusRepresentationKind/parent"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Representation.ecore#//PapyrusRepresentationKind/modelRules"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Representation.ecore#//PapyrusRepresentationKind/owningRules"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Representation.ecore#//PapyrusRepresentationKind/implementationID"/>
+ <genFeatures notify="false" createChild="false" propertyCategory="Representation Kind"
+ propertyDescription="The parent representation kind from which this representation kind inherits"
+ propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//PapyrusRepresentationKind/parent"/>
+ <genFeatures property="None" children="true" createChild="true" propertyCategory="Representation Kind"
+ propertyDescription="The set of rules that determine which model elements can be the semantic element behind this diagram"
+ ecoreFeature="ecore:EReference Representation.ecore#//PapyrusRepresentationKind/modelRules"/>
+ <genFeatures property="None" children="true" createChild="true" propertyCategory="Representation Kind"
+ propertyDescription="The set of rules that determine which elements can be the syntactic owner of this diagram"
+ ecoreFeature="ecore:EReference Representation.ecore#//PapyrusRepresentationKind/owningRules"/>
+ <genFeatures createChild="false" propertyCategory="Representation Kind" propertyDescription="The id of the underlying implementation of this representation kind"
+ ecoreFeature="ecore:EAttribute Representation.ecore#//PapyrusRepresentationKind/implementationID"/>
</genClasses>
<genClasses image="false" ecoreClass="Representation.ecore#//Rule">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Representation.ecore#//Rule/permit"/>
+ <genFeatures createChild="false" propertyDescription="Whether the rule permits or forbids the action it represents"
+ ecoreFeature="ecore:EAttribute Representation.ecore#//Rule/permit"/>
</genClasses>
<genClasses ecoreClass="Representation.ecore#//ModelRule">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//ModelRule/element"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//ModelRule/stereotypes"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Representation.ecore#//ModelRule/multiplicity"/>
+ <genFeatures notify="false" createChild="false" propertyDescription="The type (from the language's metamodel) that a model element must have for a representation of this kind to apply to."
+ propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//ModelRule/element"/>
+ <genFeatures notify="false" createChild="false" propertyDescription="The set of stereotypes (from the language's profiles) that a model element must have for a representation of this kind to apply to."
+ propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//ModelRule/stereotypes"/>
+ <genFeatures createChild="false" propertyDescription="The maximum number of representations of this kind that a model element can have. -1 represents an unbounded number."
+ ecoreFeature="ecore:EAttribute Representation.ecore#//ModelRule/multiplicity"/>
</genClasses>
<genClasses ecoreClass="Representation.ecore#//OwningRule">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//OwningRule/element"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//OwningRule/stereotypes"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Representation.ecore#//OwningRule/multiplicity"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Representation.ecore#//OwningRule/newModelPath"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Representation.ecore#//OwningRule/selectDiagramRoot"/>
+ <genFeatures notify="false" createChild="false" propertyDescription="The type (from the language's metamodel) that a model element must have to own a representation of this kind."
+ propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//OwningRule/element"/>
+ <genFeatures notify="false" createChild="false" propertyDescription="The set of stereotypes (from the language's profiles) that a model element must have to own a representation of this kind."
+ propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//OwningRule/stereotypes"/>
+ <genFeatures createChild="false" propertyDescription="The maximum number of representations of this kind that a model element can own. -1 represents an unbounded number."
+ ecoreFeature="ecore:EAttribute Representation.ecore#//OwningRule/multiplicity"/>
+ <genFeatures property="None" children="true" createChild="true" propertyDescription="The settings of auto creating model elements with this representation kind"
+ ecoreFeature="ecore:EReference Representation.ecore#//OwningRule/newModelPath"/>
+ <genFeatures property="None" children="true" createChild="true" propertyDescription="The settings of selecting a model element that is the root of this representation kind"
+ ecoreFeature="ecore:EReference Representation.ecore#//OwningRule/selectDiagramRoot"/>
</genClasses>
<genClasses ecoreClass="Representation.ecore#//ModelAutoCreate">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//ModelAutoCreate/feature"/>
- <genFeatures property="Readonly" notify="false" createChild="false" ecoreFeature="ecore:EReference Representation.ecore#//ModelAutoCreate/origin"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Representation.ecore#//ModelAutoCreate/creationType"/>
+ <genFeatures notify="false" createChild="false" propertyDescription="A reference in the origin type that will contain the newly created model element with this representation kind."
+ propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//ModelAutoCreate/feature"/>
+ <genFeatures property="Readonly" notify="false" createChild="false" propertyDescription="The type (from the language's metamodel) that will own the newly created model element"
+ ecoreFeature="ecore:EReference Representation.ecore#//ModelAutoCreate/origin"/>
+ <genFeatures createChild="false" propertyDescription="The element type (from the element type registry) that will used to created the new model element."
+ ecoreFeature="ecore:EAttribute Representation.ecore#//ModelAutoCreate/creationType"/>
</genClasses>
<genClasses ecoreClass="Representation.ecore#//RootAutoSelect">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//RootAutoSelect/feature"/>
+ <genFeatures notify="false" createChild="false" propertyDescription="A reference from the newly created element type that is used to get the root of a representation of this kind"
+ propertySortChoices="true" ecoreFeature="ecore:EReference Representation.ecore#//RootAutoSelect/feature"/>
</genClasses>
</genPackages>
</genmodel:GenModel>
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/ModelAutoCreate.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/ModelAutoCreate.java
index 22faee6a8f6..bc7cb13cc85 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/ModelAutoCreate.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/ModelAutoCreate.java
@@ -22,6 +22,10 @@ import org.eclipse.emf.ecore.EReference;
* A representation of the model object '<em><b>Model Auto Create</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * The settings of auto creating model elements with a representation kind
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* </p>
@@ -44,10 +48,14 @@ public interface ModelAutoCreate extends EObject {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * A reference in the origin type that will contain the newly created model element with this representation kind.
+ * <!-- end-model-doc -->
* @return the value of the '<em>Feature</em>' reference.
* @see #setFeature(EReference)
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getModelAutoCreate_Feature()
* @model required="true"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='A reference in the origin type that will contain the newly created model element with this representation kind.'"
* @generated
*/
EReference getFeature();
@@ -70,9 +78,13 @@ public interface ModelAutoCreate extends EObject {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The type (from the language's metamodel) that will own the newly created model element.
+ * <!-- end-model-doc -->
* @return the value of the '<em>Origin</em>' reference.
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getModelAutoCreate_Origin()
* @model required="true" transient="true" changeable="false" volatile="true" derived="true"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The type (from the language\'s metamodel) that will own the newly created model element'"
* @generated
*/
EClass getOrigin();
@@ -85,10 +97,14 @@ public interface ModelAutoCreate extends EObject {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The element type (from the element type registry) that will used to created the new model element.
+ * <!-- end-model-doc -->
* @return the value of the '<em>Creation Type</em>' attribute.
* @see #setCreationType(String)
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getModelAutoCreate_CreationType()
* @model required="true"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The element type (from the element type registry) that will used to created the new model element.'"
* @generated
*/
String getCreationType();
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/ModelRule.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/ModelRule.java
index 41e36a9a687..6c520c3b6d4 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/ModelRule.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/ModelRule.java
@@ -24,6 +24,10 @@ import org.eclipse.papyrus.infra.constraints.DisplayUnit;
* A representation of the model object '<em><b>Model Rule</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * A rule that controls which element this representation is for.
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* </p>
@@ -46,10 +50,13 @@ public interface ModelRule extends Rule, DisplayUnit {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The type (from the language's metamodel) that a model element must have for a representation of this kind to apply to.
+ * <!-- end-model-doc -->
* @return the value of the '<em>Element</em>' reference.
* @see #setElement(EClass)
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getModelRule_Element()
- * @model
+ * @model annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The type (from the language\'s metamodel) that a model element must have for a representation of this kind to apply to.'"
* @generated
*/
EClass getElement();
@@ -73,9 +80,12 @@ public interface ModelRule extends Rule, DisplayUnit {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The set of stereotypes (from the language's profiles) that a model element must have for a representation of this kind to apply to.
+ * <!-- end-model-doc -->
* @return the value of the '<em>Stereotypes</em>' reference list.
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getModelRule_Stereotypes()
- * @model
+ * @model annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The set of stereotypes (from the language\'s profiles) that a model element must have for a representation of this kind to apply to.'"
* @generated
*/
EList<EClass> getStereotypes();
@@ -89,10 +99,14 @@ public interface ModelRule extends Rule, DisplayUnit {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The maximum number of representations of this kind that a model element can have. -1 represents an unbounded number.
+ * <!-- end-model-doc -->
* @return the value of the '<em>Multiplicity</em>' attribute.
* @see #setMultiplicity(int)
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getModelRule_Multiplicity()
* @model default="-1" required="true"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The maximum number of representations of this kind that a model element can have. -1 represents an unbounded number.'"
* @generated
*/
int getMultiplicity();
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/OwningRule.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/OwningRule.java
index a40bf00e644..fa081174d1a 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/OwningRule.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/OwningRule.java
@@ -22,6 +22,10 @@ import org.eclipse.emf.ecore.EClass;
* A representation of the model object '<em><b>Owning Rule</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * A rule that controls what element can own representations of this kind.
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* </p>
@@ -46,10 +50,13 @@ public interface OwningRule extends Rule {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The type (from the language's metamodel) that a model element must have to own a representation of this kind.
+ * <!-- end-model-doc -->
* @return the value of the '<em>Element</em>' reference.
* @see #setElement(EClass)
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getOwningRule_Element()
- * @model
+ * @model annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The type (from the language\'s metamodel) that a model element must have to own a representation of this kind.'"
* @generated
*/
EClass getElement();
@@ -73,9 +80,12 @@ public interface OwningRule extends Rule {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The set of stereotypes (from the language's profiles) that a model element must have to own a representation of this kind.
+ * <!-- end-model-doc -->
* @return the value of the '<em>Stereotypes</em>' reference list.
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getOwningRule_Stereotypes()
- * @model
+ * @model annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The set of stereotypes (from the language\'s profiles) that a model element must have to own a representation of this kind.'"
* @generated
*/
EList<EClass> getStereotypes();
@@ -89,10 +99,14 @@ public interface OwningRule extends Rule {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The maximum number of representations of this kind that a model element can own. -1 represents an unbounded number.
+ * <!-- end-model-doc -->
* @return the value of the '<em>Multiplicity</em>' attribute.
* @see #setMultiplicity(int)
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getOwningRule_Multiplicity()
* @model default="-1" required="true"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The maximum number of representations of this kind that a model element can own. -1 represents an unbounded number.'"
* @generated
*/
int getMultiplicity();
@@ -116,9 +130,13 @@ public interface OwningRule extends Rule {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The settings of auto creating model elements with this representation kind
+ * <!-- end-model-doc -->
* @return the value of the '<em>New Model Path</em>' containment reference list.
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getOwningRule_NewModelPath()
* @model containment="true"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The settings of auto creating model elements with this representation kind'"
* @generated
*/
EList<ModelAutoCreate> getNewModelPath();
@@ -132,9 +150,13 @@ public interface OwningRule extends Rule {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The settings of selecting a model element that is the root of this representation kind
+ * <!-- end-model-doc -->
* @return the value of the '<em>Select Diagram Root</em>' containment reference list.
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getOwningRule_SelectDiagramRoot()
* @model containment="true"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The settings of selecting a model element that is the root of this representation kind'"
* @generated
*/
EList<RootAutoSelect> getSelectDiagramRoot();
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/PapyrusRepresentationKind.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/PapyrusRepresentationKind.java
index 72f64329f61..baecea0a6bf 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/PapyrusRepresentationKind.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/PapyrusRepresentationKind.java
@@ -22,6 +22,10 @@ import org.eclipse.papyrus.infra.core.architecture.RepresentationKind;
* A representation of the model object '<em><b>Papyrus Representation Kind</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * A subclass of representation kind that adds rules
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* </p>
@@ -45,10 +49,13 @@ public interface PapyrusRepresentationKind extends RepresentationKind {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The parent representation kind from which this representation kind inherits
+ * <!-- end-model-doc -->
* @return the value of the '<em>Parent</em>' reference.
* @see #setParent(PapyrusRepresentationKind)
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getPapyrusRepresentationKind_Parent()
- * @model
+ * @model annotation="http://www.eclipse.org/emf/2002/GenModel propertyCategory='Representation Kind' propertyDescription='The parent representation kind from which this representation kind inherits'"
* @generated
*/
PapyrusRepresentationKind getParent();
@@ -69,11 +76,12 @@ public interface PapyrusRepresentationKind extends RepresentationKind {
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
- * These rules determine which model elements can be the semantic element behind this diagram
+ * The set of rules that determine which model elements can be the semantic element behind this diagram
* <!-- end-model-doc -->
* @return the value of the '<em>Model Rules</em>' containment reference list.
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getPapyrusRepresentationKind_ModelRules()
* @model containment="true" required="true"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel propertyCategory='Representation Kind' propertyDescription='The set of rules that determine which model elements can be the semantic element behind this diagram'"
* @generated
*/
EList<ModelRule> getModelRules();
@@ -84,11 +92,12 @@ public interface PapyrusRepresentationKind extends RepresentationKind {
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
- * These rules determine which elements can be the syntactic owner of this diagram
+ * The set of rules that determine which elements can be the syntactic owner of this diagram
* <!-- end-model-doc -->
* @return the value of the '<em>Owning Rules</em>' containment reference list.
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getPapyrusRepresentationKind_OwningRules()
* @model containment="true" required="true"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel propertyCategory='Representation Kind' propertyDescription='The set of rules that determine which elements can be the syntactic owner of this diagram'"
* @generated
*/
EList<OwningRule> getOwningRules();
@@ -101,10 +110,14 @@ public interface PapyrusRepresentationKind extends RepresentationKind {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The id of the underlying implementation of this representation kind
+ * <!-- end-model-doc -->
* @return the value of the '<em>Implementation ID</em>' attribute.
* @see #setImplementationID(String)
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getPapyrusRepresentationKind_ImplementationID()
* @model required="true"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel propertyCategory='Representation Kind' propertyDescription='The id of the underlying implementation of this representation kind'"
* @generated
*/
String getImplementationID();
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/RepresentationPackage.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/RepresentationPackage.java
index 4186010e7ad..328d69b9ab2 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/RepresentationPackage.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/RepresentationPackage.java
@@ -80,6 +80,15 @@ public interface RepresentationPackage extends EPackage {
int PAPYRUS_REPRESENTATION_KIND = 0;
/**
+ * The feature id for the '<em><b>Id</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PAPYRUS_REPRESENTATION_KIND__ID = ArchitecturePackage.REPRESENTATION_KIND__ID;
+
+ /**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -107,31 +116,31 @@ public interface RepresentationPackage extends EPackage {
int PAPYRUS_REPRESENTATION_KIND__QUALIFIED_NAME = ArchitecturePackage.REPRESENTATION_KIND__QUALIFIED_NAME;
/**
- * The feature id for the '<em><b>Language</b></em>' container reference.
+ * The feature id for the '<em><b>Icon</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int PAPYRUS_REPRESENTATION_KIND__LANGUAGE = ArchitecturePackage.REPRESENTATION_KIND__LANGUAGE;
+ int PAPYRUS_REPRESENTATION_KIND__ICON = ArchitecturePackage.REPRESENTATION_KIND__ICON;
/**
- * The feature id for the '<em><b>Concerns</b></em>' reference list.
+ * The feature id for the '<em><b>Language</b></em>' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int PAPYRUS_REPRESENTATION_KIND__CONCERNS = ArchitecturePackage.REPRESENTATION_KIND__CONCERNS;
+ int PAPYRUS_REPRESENTATION_KIND__LANGUAGE = ArchitecturePackage.REPRESENTATION_KIND__LANGUAGE;
/**
- * The feature id for the '<em><b>Icon</b></em>' attribute.
+ * The feature id for the '<em><b>Concerns</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int PAPYRUS_REPRESENTATION_KIND__ICON = ArchitecturePackage.REPRESENTATION_KIND__ICON;
+ int PAPYRUS_REPRESENTATION_KIND__CONCERNS = ArchitecturePackage.REPRESENTATION_KIND__CONCERNS;
/**
* The feature id for the '<em><b>Parent</b></em>' reference.
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/RootAutoSelect.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/RootAutoSelect.java
index daa32e15234..ade30ba3b12 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/RootAutoSelect.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/RootAutoSelect.java
@@ -21,6 +21,10 @@ import org.eclipse.emf.ecore.EReference;
* A representation of the model object '<em><b>Root Auto Select</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * The settings of selecting a model element that is the root of a representation kind
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* </p>
@@ -41,10 +45,14 @@ public interface RootAutoSelect extends EObject {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * A reference from the newly created element type that is used to get the root of a representation of this kind.
+ * <!-- end-model-doc -->
* @return the value of the '<em>Feature</em>' reference.
* @see #setFeature(EReference)
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getRootAutoSelect_Feature()
* @model required="true"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='A reference from the newly created element type that is used to get the root of a representation of this kind'"
* @generated
*/
EReference getFeature();
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/Rule.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/Rule.java
index aa24a6c8bf3..e0c1a306ac5 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/Rule.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/Rule.java
@@ -20,6 +20,10 @@ import org.eclipse.emf.ecore.EObject;
* A representation of the model object '<em><b>Rule</b></em>'.
* <!-- end-user-doc -->
*
+ * <!-- begin-model-doc -->
+ * A rule that controls the definition of a representation kind.
+ * <!-- end-model-doc -->
+ *
* <p>
* The following features are supported:
* </p>
@@ -41,10 +45,14 @@ public interface Rule extends EObject {
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * Whether the rule permits or forbids the action it represents
+ * <!-- end-model-doc -->
* @return the value of the '<em>Permit</em>' attribute.
* @see #setPermit(boolean)
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getRule_Permit()
* @model default="true" required="true"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='Whether the rule permits or forbids the action it represents'"
* @generated
*/
boolean isPermit();
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/ModelAutoCreateImpl.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/ModelAutoCreateImpl.java
index 6f2fe5d10d7..cfb7fae6ac9 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/ModelAutoCreateImpl.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/ModelAutoCreateImpl.java
@@ -253,7 +253,7 @@ public class ModelAutoCreateImpl extends MinimalEObjectImpl.Container implements
public String toString() {
if (eIsProxy()) return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
+ StringBuilder result = new StringBuilder(super.toString());
result.append(" (creationType: "); //$NON-NLS-1$
result.append(creationType);
result.append(')');
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/ModelRuleImpl.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/ModelRuleImpl.java
index 1c85f6822b0..64f72583489 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/ModelRuleImpl.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/ModelRuleImpl.java
@@ -419,7 +419,7 @@ public class ModelRuleImpl extends RuleImpl implements ModelRule {
public String toString() {
if (eIsProxy()) return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
+ StringBuilder result = new StringBuilder(super.toString());
result.append(" (elementMultiplicity: "); //$NON-NLS-1$
result.append(elementMultiplicity);
result.append(", multiplicity: "); //$NON-NLS-1$
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/OwningRuleImpl.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/OwningRuleImpl.java
index 83c4dc86398..928ce5e22ff 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/OwningRuleImpl.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/OwningRuleImpl.java
@@ -353,7 +353,7 @@ public class OwningRuleImpl extends RuleImpl implements OwningRule {
public String toString() {
if (eIsProxy()) return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
+ StringBuilder result = new StringBuilder(super.toString());
result.append(" (multiplicity: "); //$NON-NLS-1$
result.append(multiplicity);
result.append(')');
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/PapyrusRepresentationKindImpl.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/PapyrusRepresentationKindImpl.java
index 5dbc20f7d2e..353ab9c5300 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/PapyrusRepresentationKindImpl.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/PapyrusRepresentationKindImpl.java
@@ -319,7 +319,7 @@ public abstract class PapyrusRepresentationKindImpl extends RepresentationKindIm
public String toString() {
if (eIsProxy()) return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
+ StringBuilder result = new StringBuilder(super.toString());
result.append(" (implementationID: "); //$NON-NLS-1$
result.append(implementationID);
result.append(')');
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/RepresentationPackageImpl.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/RepresentationPackageImpl.java
index aecc5dd0048..a0205ca9005 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/RepresentationPackageImpl.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/RepresentationPackageImpl.java
@@ -18,6 +18,7 @@ import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.emf.ecore.impl.EPackageImpl;
import org.eclipse.papyrus.infra.architecture.representation.ModelAutoCreate;
import org.eclipse.papyrus.infra.architecture.representation.ModelRule;
@@ -109,7 +110,7 @@ public class RepresentationPackageImpl extends EPackageImpl implements Represent
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
+ *
* <p>This method is used to initialize {@link RepresentationPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
@@ -123,7 +124,8 @@ public class RepresentationPackageImpl extends EPackageImpl implements Represent
if (isInited) return (RepresentationPackage)EPackage.Registry.INSTANCE.getEPackage(RepresentationPackage.eNS_URI);
// Obtain or create and register package
- RepresentationPackageImpl theRepresentationPackage = (RepresentationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof RepresentationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new RepresentationPackageImpl());
+ Object registeredRepresentationPackage = EPackage.Registry.INSTANCE.get(eNS_URI);
+ RepresentationPackageImpl theRepresentationPackage = registeredRepresentationPackage instanceof RepresentationPackageImpl ? (RepresentationPackageImpl)registeredRepresentationPackage : new RepresentationPackageImpl();
isInited = true;
@@ -131,6 +133,7 @@ public class RepresentationPackageImpl extends EPackageImpl implements Represent
ArchitecturePackage.eINSTANCE.eClass();
ConstraintsPackage.eINSTANCE.eClass();
ElementTypesConfigurationsPackage.eINSTANCE.eClass();
+ EcorePackage.eINSTANCE.eClass();
// Create package meta-data objects
theRepresentationPackage.createPackageContents();
@@ -141,7 +144,6 @@ public class RepresentationPackageImpl extends EPackageImpl implements Represent
// Mark meta-data to indicate it can't be changed
theRepresentationPackage.freeze();
-
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(RepresentationPackage.eNS_URI, theRepresentationPackage);
return theRepresentationPackage;
diff --git a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/RuleImpl.java b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/RuleImpl.java
index 5789ea80496..84262bcb8b8 100644
--- a/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/RuleImpl.java
+++ b/plugins/infra/architecture/org.eclipse.papyrus.infra.architecture.representation/src-gen/org/eclipse/papyrus/infra/architecture/representation/impl/RuleImpl.java
@@ -163,7 +163,7 @@ public abstract class RuleImpl extends MinimalEObjectImpl.Container implements R
public String toString() {
if (eIsProxy()) return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
+ StringBuilder result = new StringBuilder(super.toString());
result.append(" (permit: "); //$NON-NLS-1$
result.append(permit);
result.append(')');

Back to the top