Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2011-04-16 04:10:22 -0400
committervlorenzo2011-04-16 04:10:22 -0400
commit0959a9dfac0e29a71d537f31e04fa13caef024cc (patch)
tree19160c62772735dbf4145382e5816aa7382454ea /plugins/developer/org.eclipse.papyrus.gmfgenextension
parent1450dd60ca2e1593ac40849b2f89f8163803ca9b (diff)
downloadorg.eclipse.papyrus-0959a9dfac0e29a71d537f31e04fa13caef024cc.tar.gz
org.eclipse.papyrus-0959a9dfac0e29a71d537f31e04fa13caef024cc.tar.xz
org.eclipse.papyrus-0959a9dfac0e29a71d537f31e04fa13caef024cc.zip
NEW - bug 342954: [Preferences] Add the possibility to define the visibility of the compartments using the GmfGen
https://bugs.eclipse.org/bugs/show_bug.cgi?id=342954 Change the name of LabelRole into LabelVisibilityPreference
Diffstat (limited to 'plugins/developer/org.eclipse.papyrus.gmfgenextension')
-rw-r--r--plugins/developer/org.eclipse.papyrus.gmfgenextension/model/papyrusGmfgenExtension.ecore2
-rw-r--r--plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/LabelVisibilityPreference.java (renamed from plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/LabelRole.java)34
-rw-r--r--plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/PapyrusgmfgenextensionFactory.java6
-rw-r--r--plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/PapyrusgmfgenextensionPackage.java91
-rw-r--r--plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/LabelVisibilityPreferenceImpl.java (renamed from plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/LabelRoleImpl.java)79
-rw-r--r--plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/PapyrusgmfgenextensionFactoryImpl.java8
-rw-r--r--plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/PapyrusgmfgenextensionPackageImpl.java54
-rw-r--r--plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/util/PapyrusgmfgenextensionAdapterFactory.java10
-rw-r--r--plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/util/PapyrusgmfgenextensionSwitch.java14
9 files changed, 151 insertions, 147 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.gmfgenextension/model/papyrusGmfgenExtension.ecore b/plugins/developer/org.eclipse.papyrus.gmfgenextension/model/papyrusGmfgenExtension.ecore
index 1118867ffb8..a80de28e78d 100644
--- a/plugins/developer/org.eclipse.papyrus.gmfgenextension/model/papyrusGmfgenExtension.ecore
+++ b/plugins/developer/org.eclipse.papyrus.gmfgenextension/model/papyrusGmfgenExtension.ecore
@@ -122,7 +122,7 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="genView" ordered="false"
unique="false" upperBound="-1" eType="ecore:EClass platform:/plugin/org.eclipse.gmf.codegen/models/gmfgen.ecore#//GenLink"/>
</eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="LabelRole" eSuperTypes="#//CommentedElement">
+ <eClassifiers xsi:type="ecore:EClass" name="LabelVisibilityPreference" eSuperTypes="#//CommentedElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="This element is always linked with link Label and External Node Label.&#xD;&#xA;role : the role of the Label (Stereotype, Source Multiplicity, Target Multiplicity, Name, ...)&#xD;&#xA;iconPath : an icon illustrating the role of the Label&#xD;&#xA;visibleByDefault : if false, the label is not visible when the element is created&#xD;&#xA;&#xD;&#xA;These informations are used by the action Show/Hide Label."/>
</eAnnotations>
diff --git a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/LabelRole.java b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/LabelVisibilityPreference.java
index 4ea6dead7a3..7cb9f3c089c 100644
--- a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/LabelRole.java
+++ b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/LabelVisibilityPreference.java
@@ -13,7 +13,7 @@ import org.eclipse.gmf.codegen.gmfgen.GenLinkLabel;
/**
* <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Label Role</b></em>'.
+ * A representation of the model object '<em><b>Label Visibility Preference</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
@@ -28,19 +28,19 @@ import org.eclipse.gmf.codegen.gmfgen.GenLinkLabel;
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getRole <em>Role</em>}</li>
- * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getIconPathRole <em>Icon Path Role</em>}</li>
- * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getLinkLabels <em>Link Labels</em>}</li>
- * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getExternalNodeLabels <em>External Node Labels</em>}</li>
- * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#isVisibleByDefault <em>Visible By Default</em>}</li>
+ * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getRole <em>Role</em>}</li>
+ * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getIconPathRole <em>Icon Path Role</em>}</li>
+ * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getLinkLabels <em>Link Labels</em>}</li>
+ * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getExternalNodeLabels <em>External Node Labels</em>}</li>
+ * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#isVisibleByDefault <em>Visible By Default</em>}</li>
* </ul>
* </p>
*
- * @see org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage#getLabelRole()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage#getLabelVisibilityPreference()
* @model
* @generated
*/
-public interface LabelRole extends CommentedElement {
+public interface LabelVisibilityPreference extends CommentedElement {
/**
* Returns the value of the '<em><b>Role</b></em>' attribute.
* <!-- begin-user-doc -->
@@ -51,14 +51,14 @@ public interface LabelRole extends CommentedElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Role</em>' attribute.
* @see #setRole(String)
- * @see org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage#getLabelRole_Role()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage#getLabelVisibilityPreference_Role()
* @model required="true"
* @generated
*/
String getRole();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getRole <em>Role</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getRole <em>Role</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Role</em>' attribute.
@@ -77,14 +77,14 @@ public interface LabelRole extends CommentedElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Icon Path Role</em>' attribute.
* @see #setIconPathRole(String)
- * @see org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage#getLabelRole_IconPathRole()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage#getLabelVisibilityPreference_IconPathRole()
* @model
* @generated
*/
String getIconPathRole();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getIconPathRole <em>Icon Path Role</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getIconPathRole <em>Icon Path Role</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Icon Path Role</em>' attribute.
@@ -103,7 +103,7 @@ public interface LabelRole extends CommentedElement {
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Link Labels</em>' reference list.
- * @see org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage#getLabelRole_LinkLabels()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage#getLabelVisibilityPreference_LinkLabels()
* @model
* @generated
*/
@@ -119,7 +119,7 @@ public interface LabelRole extends CommentedElement {
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>External Node Labels</em>' reference list.
- * @see org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage#getLabelRole_ExternalNodeLabels()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage#getLabelVisibilityPreference_ExternalNodeLabels()
* @model
* @generated
*/
@@ -136,14 +136,14 @@ public interface LabelRole extends CommentedElement {
* <!-- end-user-doc -->
* @return the value of the '<em>Visible By Default</em>' attribute.
* @see #setVisibleByDefault(boolean)
- * @see org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage#getLabelRole_VisibleByDefault()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage#getLabelVisibilityPreference_VisibleByDefault()
* @model default="true"
* @generated
*/
boolean isVisibleByDefault();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#isVisibleByDefault <em>Visible By Default</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#isVisibleByDefault <em>Visible By Default</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Visible By Default</em>' attribute.
@@ -152,4 +152,4 @@ public interface LabelRole extends CommentedElement {
*/
void setVisibleByDefault(boolean value);
-} // LabelRole
+} // LabelVisibilityPreference
diff --git a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/PapyrusgmfgenextensionFactory.java b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/PapyrusgmfgenextensionFactory.java
index 7b000eaf034..655111bec30 100644
--- a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/PapyrusgmfgenextensionFactory.java
+++ b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/PapyrusgmfgenextensionFactory.java
@@ -180,13 +180,13 @@ public interface PapyrusgmfgenextensionFactory extends EFactory {
EditPartUsingReorientService createEditPartUsingReorientService();
/**
- * Returns a new object of class '<em>Label Role</em>'.
+ * Returns a new object of class '<em>Label Visibility Preference</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return a new object of class '<em>Label Role</em>'.
+ * @return a new object of class '<em>Label Visibility Preference</em>'.
* @generated
*/
- LabelRole createLabelRole();
+ LabelVisibilityPreference createLabelVisibilityPreference();
/**
* Returns a new object of class '<em>Compartment Visibility Preference</em>'.
diff --git a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/PapyrusgmfgenextensionPackage.java b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/PapyrusgmfgenextensionPackage.java
index 2afa503e173..84e341ad36d 100644
--- a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/PapyrusgmfgenextensionPackage.java
+++ b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/PapyrusgmfgenextensionPackage.java
@@ -860,14 +860,14 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
/**
- * The meta object id for the '{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelRoleImpl <em>Label Role</em>}' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelVisibilityPreferenceImpl <em>Label Visibility Preference</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelRoleImpl
- * @see org.eclipse.papyrus.papyrusgmfgenextension.impl.PapyrusgmfgenextensionPackageImpl#getLabelRole()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelVisibilityPreferenceImpl
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.impl.PapyrusgmfgenextensionPackageImpl#getLabelVisibilityPreference()
* @generated
*/
- int LABEL_ROLE = 17;
+ int LABEL_VISIBILITY_PREFERENCE = 17;
/**
* The feature id for the '<em><b>Comment</b></em>' attribute.
@@ -876,7 +876,7 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
* @generated
* @ordered
*/
- int LABEL_ROLE__COMMENT = COMMENTED_ELEMENT__COMMENT;
+ int LABEL_VISIBILITY_PREFERENCE__COMMENT = COMMENTED_ELEMENT__COMMENT;
/**
* The feature id for the '<em><b>Role</b></em>' attribute.
@@ -885,7 +885,7 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
* @generated
* @ordered
*/
- int LABEL_ROLE__ROLE = COMMENTED_ELEMENT_FEATURE_COUNT + 0;
+ int LABEL_VISIBILITY_PREFERENCE__ROLE = COMMENTED_ELEMENT_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Icon Path Role</b></em>' attribute.
@@ -894,7 +894,7 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
* @generated
* @ordered
*/
- int LABEL_ROLE__ICON_PATH_ROLE = COMMENTED_ELEMENT_FEATURE_COUNT + 1;
+ int LABEL_VISIBILITY_PREFERENCE__ICON_PATH_ROLE = COMMENTED_ELEMENT_FEATURE_COUNT + 1;
/**
* The feature id for the '<em><b>Link Labels</b></em>' reference list.
@@ -903,7 +903,7 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
* @generated
* @ordered
*/
- int LABEL_ROLE__LINK_LABELS = COMMENTED_ELEMENT_FEATURE_COUNT + 2;
+ int LABEL_VISIBILITY_PREFERENCE__LINK_LABELS = COMMENTED_ELEMENT_FEATURE_COUNT + 2;
/**
* The feature id for the '<em><b>External Node Labels</b></em>' reference list.
@@ -912,7 +912,7 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
* @generated
* @ordered
*/
- int LABEL_ROLE__EXTERNAL_NODE_LABELS = COMMENTED_ELEMENT_FEATURE_COUNT + 3;
+ int LABEL_VISIBILITY_PREFERENCE__EXTERNAL_NODE_LABELS = COMMENTED_ELEMENT_FEATURE_COUNT + 3;
/**
* The feature id for the '<em><b>Visible By Default</b></em>' attribute.
@@ -921,17 +921,16 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
* @generated
* @ordered
*/
- int LABEL_ROLE__VISIBLE_BY_DEFAULT = COMMENTED_ELEMENT_FEATURE_COUNT + 4;
+ int LABEL_VISIBILITY_PREFERENCE__VISIBLE_BY_DEFAULT = COMMENTED_ELEMENT_FEATURE_COUNT + 4;
/**
- * The number of structural features of the '<em>Label Role</em>' class.
+ * The number of structural features of the '<em>Label Visibility Preference</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int LABEL_ROLE_FEATURE_COUNT = COMMENTED_ELEMENT_FEATURE_COUNT + 5;
-
+ int LABEL_VISIBILITY_PREFERENCE_FEATURE_COUNT = COMMENTED_ELEMENT_FEATURE_COUNT + 5;
/**
* The meta object id for the '{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.CompartmentVisibilityPreferenceImpl <em>Compartment Visibility Preference</em>}' class.
@@ -1492,69 +1491,69 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
EReference getEditPartUsingReorientService_GenView();
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole <em>Label Role</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference <em>Label Visibility Preference</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for class '<em>Label Role</em>'.
- * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelRole
+ * @return the meta object for class '<em>Label Visibility Preference</em>'.
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference
* @generated
*/
- EClass getLabelRole();
+ EClass getLabelVisibilityPreference();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getRole <em>Role</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getRole <em>Role</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Role</em>'.
- * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getRole()
- * @see #getLabelRole()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getRole()
+ * @see #getLabelVisibilityPreference()
* @generated
*/
- EAttribute getLabelRole_Role();
+ EAttribute getLabelVisibilityPreference_Role();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getIconPathRole <em>Icon Path Role</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getIconPathRole <em>Icon Path Role</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Icon Path Role</em>'.
- * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getIconPathRole()
- * @see #getLabelRole()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getIconPathRole()
+ * @see #getLabelVisibilityPreference()
* @generated
*/
- EAttribute getLabelRole_IconPathRole();
+ EAttribute getLabelVisibilityPreference_IconPathRole();
/**
- * Returns the meta object for the reference list '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getLinkLabels <em>Link Labels</em>}'.
+ * Returns the meta object for the reference list '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getLinkLabels <em>Link Labels</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference list '<em>Link Labels</em>'.
- * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getLinkLabels()
- * @see #getLabelRole()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getLinkLabels()
+ * @see #getLabelVisibilityPreference()
* @generated
*/
- EReference getLabelRole_LinkLabels();
+ EReference getLabelVisibilityPreference_LinkLabels();
/**
- * Returns the meta object for the reference list '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getExternalNodeLabels <em>External Node Labels</em>}'.
+ * Returns the meta object for the reference list '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getExternalNodeLabels <em>External Node Labels</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference list '<em>External Node Labels</em>'.
- * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#getExternalNodeLabels()
- * @see #getLabelRole()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#getExternalNodeLabels()
+ * @see #getLabelVisibilityPreference()
* @generated
*/
- EReference getLabelRole_ExternalNodeLabels();
+ EReference getLabelVisibilityPreference_ExternalNodeLabels();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#isVisibleByDefault <em>Visible By Default</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#isVisibleByDefault <em>Visible By Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Visible By Default</em>'.
- * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelRole#isVisibleByDefault()
- * @see #getLabelRole()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference#isVisibleByDefault()
+ * @see #getLabelVisibilityPreference()
* @generated
*/
- EAttribute getLabelRole_VisibleByDefault();
+ EAttribute getLabelVisibilityPreference_VisibleByDefault();
/**
* Returns the meta object for class '{@link org.eclipse.papyrus.papyrusgmfgenextension.CompartmentVisibilityPreference <em>Compartment Visibility Preference</em>}'.
@@ -2030,14 +2029,14 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
EReference EDIT_PART_USING_REORIENT_SERVICE__GEN_VIEW = eINSTANCE.getEditPartUsingReorientService_GenView();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelRoleImpl <em>Label Role</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelVisibilityPreferenceImpl <em>Label Visibility Preference</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelRoleImpl
- * @see org.eclipse.papyrus.papyrusgmfgenextension.impl.PapyrusgmfgenextensionPackageImpl#getLabelRole()
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelVisibilityPreferenceImpl
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.impl.PapyrusgmfgenextensionPackageImpl#getLabelVisibilityPreference()
* @generated
*/
- EClass LABEL_ROLE = eINSTANCE.getLabelRole();
+ EClass LABEL_VISIBILITY_PREFERENCE = eINSTANCE.getLabelVisibilityPreference();
/**
* The meta object literal for the '<em><b>Role</b></em>' attribute feature.
@@ -2045,7 +2044,7 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- EAttribute LABEL_ROLE__ROLE = eINSTANCE.getLabelRole_Role();
+ EAttribute LABEL_VISIBILITY_PREFERENCE__ROLE = eINSTANCE.getLabelVisibilityPreference_Role();
/**
* The meta object literal for the '<em><b>Icon Path Role</b></em>' attribute feature.
@@ -2053,7 +2052,7 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- EAttribute LABEL_ROLE__ICON_PATH_ROLE = eINSTANCE.getLabelRole_IconPathRole();
+ EAttribute LABEL_VISIBILITY_PREFERENCE__ICON_PATH_ROLE = eINSTANCE.getLabelVisibilityPreference_IconPathRole();
/**
* The meta object literal for the '<em><b>Link Labels</b></em>' reference list feature.
@@ -2061,7 +2060,7 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- EReference LABEL_ROLE__LINK_LABELS = eINSTANCE.getLabelRole_LinkLabels();
+ EReference LABEL_VISIBILITY_PREFERENCE__LINK_LABELS = eINSTANCE.getLabelVisibilityPreference_LinkLabels();
/**
* The meta object literal for the '<em><b>External Node Labels</b></em>' reference list feature.
@@ -2069,7 +2068,7 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- EReference LABEL_ROLE__EXTERNAL_NODE_LABELS = eINSTANCE.getLabelRole_ExternalNodeLabels();
+ EReference LABEL_VISIBILITY_PREFERENCE__EXTERNAL_NODE_LABELS = eINSTANCE.getLabelVisibilityPreference_ExternalNodeLabels();
/**
* The meta object literal for the '<em><b>Visible By Default</b></em>' attribute feature.
@@ -2077,7 +2076,7 @@ public interface PapyrusgmfgenextensionPackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- EAttribute LABEL_ROLE__VISIBLE_BY_DEFAULT = eINSTANCE.getLabelRole_VisibleByDefault();
+ EAttribute LABEL_VISIBILITY_PREFERENCE__VISIBLE_BY_DEFAULT = eINSTANCE.getLabelVisibilityPreference_VisibleByDefault();
/**
* The meta object literal for the '{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.CompartmentVisibilityPreferenceImpl <em>Compartment Visibility Preference</em>}' class.
diff --git a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/LabelRoleImpl.java b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/LabelVisibilityPreferenceImpl.java
index 86d3def9efa..d337e94ba68 100644
--- a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/LabelRoleImpl.java
+++ b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/LabelVisibilityPreferenceImpl.java
@@ -9,34 +9,39 @@ package org.eclipse.papyrus.papyrusgmfgenextension.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
+
import org.eclipse.emf.common.util.EList;
+
import org.eclipse.emf.ecore.EClass;
+
import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+
import org.eclipse.gmf.codegen.gmfgen.GenExternalNodeLabel;
import org.eclipse.gmf.codegen.gmfgen.GenLinkLabel;
-import org.eclipse.papyrus.papyrusgmfgenextension.LabelRole;
+
+import org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference;
import org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage;
/**
* <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Label Role</b></em>'.
+ * An implementation of the model object '<em><b>Label Visibility Preference</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelRoleImpl#getRole <em>Role</em>}</li>
- * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelRoleImpl#getIconPathRole <em>Icon Path Role</em>}</li>
- * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelRoleImpl#getLinkLabels <em>Link Labels</em>}</li>
- * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelRoleImpl#getExternalNodeLabels <em>External Node Labels</em>}</li>
- * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelRoleImpl#isVisibleByDefault <em>Visible By Default</em>}</li>
+ * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelVisibilityPreferenceImpl#getRole <em>Role</em>}</li>
+ * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelVisibilityPreferenceImpl#getIconPathRole <em>Icon Path Role</em>}</li>
+ * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelVisibilityPreferenceImpl#getLinkLabels <em>Link Labels</em>}</li>
+ * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelVisibilityPreferenceImpl#getExternalNodeLabels <em>External Node Labels</em>}</li>
+ * <li>{@link org.eclipse.papyrus.papyrusgmfgenextension.impl.LabelVisibilityPreferenceImpl#isVisibleByDefault <em>Visible By Default</em>}</li>
* </ul>
* </p>
*
* @generated
*/
-public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
-
+public class LabelVisibilityPreferenceImpl extends CommentedElementImpl implements LabelVisibilityPreference {
/**
* The default value of the '{@link #getRole() <em>Role</em>}' attribute.
* <!-- begin-user-doc -->
@@ -122,7 +127,7 @@ public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
* <!-- end-user-doc -->
* @generated
*/
- protected LabelRoleImpl() {
+ protected LabelVisibilityPreferenceImpl() {
super();
}
@@ -133,7 +138,7 @@ public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
*/
@Override
protected EClass eStaticClass() {
- return PapyrusgmfgenextensionPackage.Literals.LABEL_ROLE;
+ return PapyrusgmfgenextensionPackage.Literals.LABEL_VISIBILITY_PREFERENCE;
}
/**
@@ -154,7 +159,7 @@ public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
String oldRole = role;
role = newRole;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusgmfgenextensionPackage.LABEL_ROLE__ROLE, oldRole, role));
+ eNotify(new ENotificationImpl(this, Notification.SET, PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__ROLE, oldRole, role));
}
/**
@@ -175,7 +180,7 @@ public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
String oldIconPathRole = iconPathRole;
iconPathRole = newIconPathRole;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusgmfgenextensionPackage.LABEL_ROLE__ICON_PATH_ROLE, oldIconPathRole, iconPathRole));
+ eNotify(new ENotificationImpl(this, Notification.SET, PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__ICON_PATH_ROLE, oldIconPathRole, iconPathRole));
}
/**
@@ -185,7 +190,7 @@ public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
*/
public EList<GenLinkLabel> getLinkLabels() {
if (linkLabels == null) {
- linkLabels = new EObjectResolvingEList<GenLinkLabel>(GenLinkLabel.class, this, PapyrusgmfgenextensionPackage.LABEL_ROLE__LINK_LABELS);
+ linkLabels = new EObjectResolvingEList<GenLinkLabel>(GenLinkLabel.class, this, PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__LINK_LABELS);
}
return linkLabels;
}
@@ -197,7 +202,7 @@ public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
*/
public EList<GenExternalNodeLabel> getExternalNodeLabels() {
if (externalNodeLabels == null) {
- externalNodeLabels = new EObjectResolvingEList<GenExternalNodeLabel>(GenExternalNodeLabel.class, this, PapyrusgmfgenextensionPackage.LABEL_ROLE__EXTERNAL_NODE_LABELS);
+ externalNodeLabels = new EObjectResolvingEList<GenExternalNodeLabel>(GenExternalNodeLabel.class, this, PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__EXTERNAL_NODE_LABELS);
}
return externalNodeLabels;
}
@@ -220,7 +225,7 @@ public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
boolean oldVisibleByDefault = visibleByDefault;
visibleByDefault = newVisibleByDefault;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusgmfgenextensionPackage.LABEL_ROLE__VISIBLE_BY_DEFAULT, oldVisibleByDefault, visibleByDefault));
+ eNotify(new ENotificationImpl(this, Notification.SET, PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__VISIBLE_BY_DEFAULT, oldVisibleByDefault, visibleByDefault));
}
/**
@@ -231,15 +236,15 @@ public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__ROLE:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__ROLE:
return getRole();
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__ICON_PATH_ROLE:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__ICON_PATH_ROLE:
return getIconPathRole();
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__LINK_LABELS:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__LINK_LABELS:
return getLinkLabels();
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__EXTERNAL_NODE_LABELS:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__EXTERNAL_NODE_LABELS:
return getExternalNodeLabels();
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__VISIBLE_BY_DEFAULT:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__VISIBLE_BY_DEFAULT:
return isVisibleByDefault();
}
return super.eGet(featureID, resolve, coreType);
@@ -254,21 +259,21 @@ public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__ROLE:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__ROLE:
setRole((String)newValue);
return;
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__ICON_PATH_ROLE:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__ICON_PATH_ROLE:
setIconPathRole((String)newValue);
return;
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__LINK_LABELS:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__LINK_LABELS:
getLinkLabels().clear();
getLinkLabels().addAll((Collection<? extends GenLinkLabel>)newValue);
return;
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__EXTERNAL_NODE_LABELS:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__EXTERNAL_NODE_LABELS:
getExternalNodeLabels().clear();
getExternalNodeLabels().addAll((Collection<? extends GenExternalNodeLabel>)newValue);
return;
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__VISIBLE_BY_DEFAULT:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__VISIBLE_BY_DEFAULT:
setVisibleByDefault((Boolean)newValue);
return;
}
@@ -283,19 +288,19 @@ public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__ROLE:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__ROLE:
setRole(ROLE_EDEFAULT);
return;
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__ICON_PATH_ROLE:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__ICON_PATH_ROLE:
setIconPathRole(ICON_PATH_ROLE_EDEFAULT);
return;
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__LINK_LABELS:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__LINK_LABELS:
getLinkLabels().clear();
return;
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__EXTERNAL_NODE_LABELS:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__EXTERNAL_NODE_LABELS:
getExternalNodeLabels().clear();
return;
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__VISIBLE_BY_DEFAULT:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__VISIBLE_BY_DEFAULT:
setVisibleByDefault(VISIBLE_BY_DEFAULT_EDEFAULT);
return;
}
@@ -310,15 +315,15 @@ public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__ROLE:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__ROLE:
return ROLE_EDEFAULT == null ? role != null : !ROLE_EDEFAULT.equals(role);
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__ICON_PATH_ROLE:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__ICON_PATH_ROLE:
return ICON_PATH_ROLE_EDEFAULT == null ? iconPathRole != null : !ICON_PATH_ROLE_EDEFAULT.equals(iconPathRole);
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__LINK_LABELS:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__LINK_LABELS:
return linkLabels != null && !linkLabels.isEmpty();
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__EXTERNAL_NODE_LABELS:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__EXTERNAL_NODE_LABELS:
return externalNodeLabels != null && !externalNodeLabels.isEmpty();
- case PapyrusgmfgenextensionPackage.LABEL_ROLE__VISIBLE_BY_DEFAULT:
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE__VISIBLE_BY_DEFAULT:
return visibleByDefault != VISIBLE_BY_DEFAULT_EDEFAULT;
}
return super.eIsSet(featureID);
@@ -344,4 +349,4 @@ public class LabelRoleImpl extends CommentedElementImpl implements LabelRole {
return result.toString();
}
-} //LabelRoleImpl
+} //LabelVisibilityPreferenceImpl
diff --git a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/PapyrusgmfgenextensionFactoryImpl.java b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/PapyrusgmfgenextensionFactoryImpl.java
index d63a8ac3870..66573056726 100644
--- a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/PapyrusgmfgenextensionFactoryImpl.java
+++ b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/PapyrusgmfgenextensionFactoryImpl.java
@@ -93,7 +93,7 @@ public class PapyrusgmfgenextensionFactoryImpl extends EFactoryImpl implements P
case PapyrusgmfgenextensionPackage.ADDITIONAL_EDIT_PART_CANDIES: return createAdditionalEditPartCandies();
case PapyrusgmfgenextensionPackage.EDIT_PART_USING_DELETE_SERVICE: return createEditPartUsingDeleteService();
case PapyrusgmfgenextensionPackage.EDIT_PART_USING_REORIENT_SERVICE: return createEditPartUsingReorientService();
- case PapyrusgmfgenextensionPackage.LABEL_ROLE: return createLabelRole();
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE: return createLabelVisibilityPreference();
case PapyrusgmfgenextensionPackage.COMPARTMENT_VISIBILITY_PREFERENCE: return createCompartmentVisibilityPreference();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
@@ -275,9 +275,9 @@ public class PapyrusgmfgenextensionFactoryImpl extends EFactoryImpl implements P
* <!-- end-user-doc -->
* @generated
*/
- public LabelRole createLabelRole() {
- LabelRoleImpl labelRole = new LabelRoleImpl();
- return labelRole;
+ public LabelVisibilityPreference createLabelVisibilityPreference() {
+ LabelVisibilityPreferenceImpl labelVisibilityPreference = new LabelVisibilityPreferenceImpl();
+ return labelVisibilityPreference;
}
/**
diff --git a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/PapyrusgmfgenextensionPackageImpl.java b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/PapyrusgmfgenextensionPackageImpl.java
index e8ebd64e4d3..cf0bc0250b8 100644
--- a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/PapyrusgmfgenextensionPackageImpl.java
+++ b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/impl/PapyrusgmfgenextensionPackageImpl.java
@@ -25,7 +25,7 @@ import org.eclipse.papyrus.papyrusgmfgenextension.EditPartUsingReorientService;
import org.eclipse.papyrus.papyrusgmfgenextension.ExtendedGenView;
import org.eclipse.papyrus.papyrusgmfgenextension.ExternalHook;
import org.eclipse.papyrus.papyrusgmfgenextension.GenNodeConstraint;
-import org.eclipse.papyrus.papyrusgmfgenextension.LabelRole;
+import org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference;
import org.eclipse.papyrus.papyrusgmfgenextension.MutatingCanvas;
import org.eclipse.papyrus.papyrusgmfgenextension.OwnedEditpart;
import org.eclipse.papyrus.papyrusgmfgenextension.PapyrusExtensionRootNode;
@@ -155,7 +155,7 @@ public class PapyrusgmfgenextensionPackageImpl extends EPackageImpl implements P
* <!-- end-user-doc -->
* @generated
*/
- private EClass labelRoleEClass = null;
+ private EClass labelVisibilityPreferenceEClass = null;
/**
* <!-- begin-user-doc -->
@@ -629,8 +629,8 @@ public class PapyrusgmfgenextensionPackageImpl extends EPackageImpl implements P
* <!-- end-user-doc -->
* @generated
*/
- public EClass getLabelRole() {
- return labelRoleEClass;
+ public EClass getLabelVisibilityPreference() {
+ return labelVisibilityPreferenceEClass;
}
/**
@@ -638,8 +638,8 @@ public class PapyrusgmfgenextensionPackageImpl extends EPackageImpl implements P
* <!-- end-user-doc -->
* @generated
*/
- public EAttribute getLabelRole_Role() {
- return (EAttribute)labelRoleEClass.getEStructuralFeatures().get(0);
+ public EAttribute getLabelVisibilityPreference_Role() {
+ return (EAttribute)labelVisibilityPreferenceEClass.getEStructuralFeatures().get(0);
}
/**
@@ -647,8 +647,8 @@ public class PapyrusgmfgenextensionPackageImpl extends EPackageImpl implements P
* <!-- end-user-doc -->
* @generated
*/
- public EAttribute getLabelRole_IconPathRole() {
- return (EAttribute)labelRoleEClass.getEStructuralFeatures().get(1);
+ public EAttribute getLabelVisibilityPreference_IconPathRole() {
+ return (EAttribute)labelVisibilityPreferenceEClass.getEStructuralFeatures().get(1);
}
/**
@@ -656,8 +656,8 @@ public class PapyrusgmfgenextensionPackageImpl extends EPackageImpl implements P
* <!-- end-user-doc -->
* @generated
*/
- public EReference getLabelRole_LinkLabels() {
- return (EReference)labelRoleEClass.getEStructuralFeatures().get(2);
+ public EReference getLabelVisibilityPreference_LinkLabels() {
+ return (EReference)labelVisibilityPreferenceEClass.getEStructuralFeatures().get(2);
}
/**
@@ -665,8 +665,8 @@ public class PapyrusgmfgenextensionPackageImpl extends EPackageImpl implements P
* <!-- end-user-doc -->
* @generated
*/
- public EReference getLabelRole_ExternalNodeLabels() {
- return (EReference)labelRoleEClass.getEStructuralFeatures().get(3);
+ public EReference getLabelVisibilityPreference_ExternalNodeLabels() {
+ return (EReference)labelVisibilityPreferenceEClass.getEStructuralFeatures().get(3);
}
/**
@@ -674,8 +674,8 @@ public class PapyrusgmfgenextensionPackageImpl extends EPackageImpl implements P
* <!-- end-user-doc -->
* @generated
*/
- public EAttribute getLabelRole_VisibleByDefault() {
- return (EAttribute)labelRoleEClass.getEStructuralFeatures().get(4);
+ public EAttribute getLabelVisibilityPreference_VisibleByDefault() {
+ return (EAttribute)labelVisibilityPreferenceEClass.getEStructuralFeatures().get(4);
}
/**
@@ -795,12 +795,12 @@ public class PapyrusgmfgenextensionPackageImpl extends EPackageImpl implements P
createEAttribute(editPartUsingReorientServiceEClass, EDIT_PART_USING_REORIENT_SERVICE__NAME);
createEReference(editPartUsingReorientServiceEClass, EDIT_PART_USING_REORIENT_SERVICE__GEN_VIEW);
- labelRoleEClass = createEClass(LABEL_ROLE);
- createEAttribute(labelRoleEClass, LABEL_ROLE__ROLE);
- createEAttribute(labelRoleEClass, LABEL_ROLE__ICON_PATH_ROLE);
- createEReference(labelRoleEClass, LABEL_ROLE__LINK_LABELS);
- createEReference(labelRoleEClass, LABEL_ROLE__EXTERNAL_NODE_LABELS);
- createEAttribute(labelRoleEClass, LABEL_ROLE__VISIBLE_BY_DEFAULT);
+ labelVisibilityPreferenceEClass = createEClass(LABEL_VISIBILITY_PREFERENCE);
+ createEAttribute(labelVisibilityPreferenceEClass, LABEL_VISIBILITY_PREFERENCE__ROLE);
+ createEAttribute(labelVisibilityPreferenceEClass, LABEL_VISIBILITY_PREFERENCE__ICON_PATH_ROLE);
+ createEReference(labelVisibilityPreferenceEClass, LABEL_VISIBILITY_PREFERENCE__LINK_LABELS);
+ createEReference(labelVisibilityPreferenceEClass, LABEL_VISIBILITY_PREFERENCE__EXTERNAL_NODE_LABELS);
+ createEAttribute(labelVisibilityPreferenceEClass, LABEL_VISIBILITY_PREFERENCE__VISIBLE_BY_DEFAULT);
compartmentVisibilityPreferenceEClass = createEClass(COMPARTMENT_VISIBILITY_PREFERENCE);
createEAttribute(compartmentVisibilityPreferenceEClass, COMPARTMENT_VISIBILITY_PREFERENCE__VISIBLE_BY_DEFAULT);
@@ -854,7 +854,7 @@ public class PapyrusgmfgenextensionPackageImpl extends EPackageImpl implements P
additionalEditPartCandiesEClass.getESuperTypes().add(this.getCommentedElement());
editPartUsingDeleteServiceEClass.getESuperTypes().add(this.getCommentedElement());
editPartUsingReorientServiceEClass.getESuperTypes().add(this.getCommentedElement());
- labelRoleEClass.getESuperTypes().add(this.getCommentedElement());
+ labelVisibilityPreferenceEClass.getESuperTypes().add(this.getCommentedElement());
compartmentVisibilityPreferenceEClass.getESuperTypes().add(this.getCommentedElement());
// Initialize classes and features; add operations and parameters
@@ -923,12 +923,12 @@ public class PapyrusgmfgenextensionPackageImpl extends EPackageImpl implements P
initEAttribute(getEditPartUsingReorientService_Name(), theEcorePackage.getEString(), "name", null, 0, 1, EditPartUsingReorientService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getEditPartUsingReorientService_GenView(), theGMFGenPackage.getGenLink(), null, "genView", null, 0, -1, EditPartUsingReorientService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEClass(labelRoleEClass, LabelRole.class, "LabelRole", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getLabelRole_Role(), theEcorePackage.getEString(), "role", null, 1, 1, LabelRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLabelRole_IconPathRole(), ecorePackage.getEString(), "iconPathRole", null, 0, 1, LabelRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getLabelRole_LinkLabels(), theGMFGenPackage.getGenLinkLabel(), null, "linkLabels", null, 0, -1, LabelRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getLabelRole_ExternalNodeLabels(), theGMFGenPackage.getGenExternalNodeLabel(), null, "externalNodeLabels", null, 0, -1, LabelRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLabelRole_VisibleByDefault(), theEcorePackage.getEBoolean(), "visibleByDefault", "true", 0, 1, LabelRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(labelVisibilityPreferenceEClass, LabelVisibilityPreference.class, "LabelVisibilityPreference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getLabelVisibilityPreference_Role(), theEcorePackage.getEString(), "role", null, 1, 1, LabelVisibilityPreference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLabelVisibilityPreference_IconPathRole(), ecorePackage.getEString(), "iconPathRole", null, 0, 1, LabelVisibilityPreference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getLabelVisibilityPreference_LinkLabels(), theGMFGenPackage.getGenLinkLabel(), null, "linkLabels", null, 0, -1, LabelVisibilityPreference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getLabelVisibilityPreference_ExternalNodeLabels(), theGMFGenPackage.getGenExternalNodeLabel(), null, "externalNodeLabels", null, 0, -1, LabelVisibilityPreference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLabelVisibilityPreference_VisibleByDefault(), theEcorePackage.getEBoolean(), "visibleByDefault", "true", 0, 1, LabelVisibilityPreference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(compartmentVisibilityPreferenceEClass, CompartmentVisibilityPreference.class, "CompartmentVisibilityPreference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getCompartmentVisibilityPreference_VisibleByDefault(), theEcorePackage.getEBoolean(), "visibleByDefault", "true", 0, 1, CompartmentVisibilityPreference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
diff --git a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/util/PapyrusgmfgenextensionAdapterFactory.java b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/util/PapyrusgmfgenextensionAdapterFactory.java
index f6a0eb000c5..75dcbe9c9df 100644
--- a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/util/PapyrusgmfgenextensionAdapterFactory.java
+++ b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/util/PapyrusgmfgenextensionAdapterFactory.java
@@ -154,8 +154,8 @@ public class PapyrusgmfgenextensionAdapterFactory extends AdapterFactoryImpl {
return createEditPartUsingReorientServiceAdapter();
}
@Override
- public Adapter caseLabelRole(LabelRole object) {
- return createLabelRoleAdapter();
+ public Adapter caseLabelVisibilityPreference(LabelVisibilityPreference object) {
+ return createLabelVisibilityPreferenceAdapter();
}
@Override
public Adapter caseCompartmentVisibilityPreference(CompartmentVisibilityPreference object) {
@@ -420,16 +420,16 @@ public class PapyrusgmfgenextensionAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelRole <em>Label Role</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference <em>Label Visibility Preference</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelRole
+ * @see org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference
* @generated
*/
- public Adapter createLabelRoleAdapter() {
+ public Adapter createLabelVisibilityPreferenceAdapter() {
return null;
}
diff --git a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/util/PapyrusgmfgenextensionSwitch.java b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/util/PapyrusgmfgenextensionSwitch.java
index 64e42622705..03779f12214 100644
--- a/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/util/PapyrusgmfgenextensionSwitch.java
+++ b/plugins/developer/org.eclipse.papyrus.gmfgenextension/src/org/eclipse/papyrus/papyrusgmfgenextension/util/PapyrusgmfgenextensionSwitch.java
@@ -211,10 +211,10 @@ public class PapyrusgmfgenextensionSwitch<T> extends Switch<T> {
if (result == null) result = defaultCase(theEObject);
return result;
}
- case PapyrusgmfgenextensionPackage.LABEL_ROLE: {
- LabelRole labelRole = (LabelRole)theEObject;
- T result = caseLabelRole(labelRole);
- if (result == null) result = caseCommentedElement(labelRole);
+ case PapyrusgmfgenextensionPackage.LABEL_VISIBILITY_PREFERENCE: {
+ LabelVisibilityPreference labelVisibilityPreference = (LabelVisibilityPreference)theEObject;
+ T result = caseLabelVisibilityPreference(labelVisibilityPreference);
+ if (result == null) result = caseCommentedElement(labelVisibilityPreference);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -485,17 +485,17 @@ public class PapyrusgmfgenextensionSwitch<T> extends Switch<T> {
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Label Role</em>'.
+ * Returns the result of interpreting the object as an instance of '<em>Label Visibility Preference</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Label Role</em>'.
+ * @return the result of interpreting the object as an instance of '<em>Label Visibility Preference</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
- public T caseLabelRole(LabelRole object) {
+ public T caseLabelVisibilityPreference(LabelVisibilityPreference object) {
return null;
}

Back to the top