Author: dazarov
Date: 2008-05-29 07:46:53 -0400 (Thu, 29 May 2008)
New Revision: 8422
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesElementImpl.java
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesPackageImpl.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1189
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesElementImpl.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesElementImpl.java 2008-05-29
11:45:04 UTC (rev 8421)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesElementImpl.java 2008-05-29
11:46:53 UTC (rev 8422)
@@ -43,6 +43,7 @@
* <li>{@link
org.jboss.tools.seam.ui.pages.editor.ecore.pages.impl.PagesElementImpl#getParent
<em>Parent</em>}</li>
* <li>{@link
org.jboss.tools.seam.ui.pages.editor.ecore.pages.impl.PagesElementImpl#getInputLinks
<em>Input Links</em>}</li>
* <li>{@link
org.jboss.tools.seam.ui.pages.editor.ecore.pages.impl.PagesElementImpl#getOutputLinks
<em>Output Links</em>}</li>
+ * <li>{@link
org.jboss.tools.seam.ui.pages.editor.ecore.pages.impl.PagesElementImpl#getData
<em>Data</em>}</li>
* </ul>
* </p>
*
@@ -150,10 +151,30 @@
protected EList<Link> outputLinks;
/**
+ * The default value of the '{@link #getData() <em>Data</em>}'
attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ * @see #getData()
* @generated
+ * @ordered
*/
+ protected static final Object DATA_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getData() <em>Data</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getData()
+ * @generated
+ * @ordered
+ */
+ protected Object data = DATA_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
protected PagesElementImpl() {
super();
}
@@ -332,6 +353,27 @@
* <!-- end-user-doc -->
* @generated
*/
+ public Object getData() {
+ return data;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setData(Object newData) {
+ Object oldData = data;
+ data = newData;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
PagesPackage.PAGES_ELEMENT__DATA, oldData, data));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
@@ -393,6 +435,8 @@
return getInputLinks();
case PagesPackage.PAGES_ELEMENT__OUTPUT_LINKS:
return getOutputLinks();
+ case PagesPackage.PAGES_ELEMENT__DATA:
+ return getData();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -430,6 +474,9 @@
getOutputLinks().clear();
getOutputLinks().addAll((Collection<? extends Link>)newValue);
return;
+ case PagesPackage.PAGES_ELEMENT__DATA:
+ setData(newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -463,6 +510,9 @@
case PagesPackage.PAGES_ELEMENT__OUTPUT_LINKS:
getOutputLinks().clear();
return;
+ case PagesPackage.PAGES_ELEMENT__DATA:
+ setData(DATA_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -489,6 +539,8 @@
return inputLinks != null && !inputLinks.isEmpty();
case PagesPackage.PAGES_ELEMENT__OUTPUT_LINKS:
return outputLinks != null && !outputLinks.isEmpty();
+ case PagesPackage.PAGES_ELEMENT__DATA:
+ return DATA_EDEFAULT == null ? data != null : !DATA_EDEFAULT.equals(data);
}
return super.eIsSet(featureID);
}
@@ -509,6 +561,8 @@
result.append(location);
result.append(", size: ");
result.append(size);
+ result.append(", data: ");
+ result.append(data);
result.append(')');
return result.toString();
}
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesPackageImpl.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesPackageImpl.java 2008-05-29
11:45:04 UTC (rev 8421)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesPackageImpl.java 2008-05-29
11:46:53 UTC (rev 8422)
@@ -297,6 +297,15 @@
* <!-- end-user-doc -->
* @generated
*/
+ public EAttribute getPagesElement_Data() {
+ return (EAttribute)pagesElementEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public EClass getPagesModel() {
return pagesModelEClass;
}
@@ -391,6 +400,7 @@
createEReference(pagesElementEClass, PAGES_ELEMENT__PARENT);
createEReference(pagesElementEClass, PAGES_ELEMENT__INPUT_LINKS);
createEReference(pagesElementEClass, PAGES_ELEMENT__OUTPUT_LINKS);
+ createEAttribute(pagesElementEClass, PAGES_ELEMENT__DATA);
pagesModelEClass = createEClass(PAGES_MODEL);
@@ -455,6 +465,7 @@
initEReference(getPagesElement_Parent(), this.getPagesElement(),
this.getPagesElement_Children(), "parent", null, 0, 1, PagesElement.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getPagesElement_InputLinks(), this.getLink(), this.getLink_ToElement(),
"inputLinks", null, 0, -1, PagesElement.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
initEReference(getPagesElement_OutputLinks(), this.getLink(),
this.getLink_FromElement(), "outputLinks", null, 0, -1, PagesElement.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPagesElement_Data(), ecorePackage.getEJavaObject(), "data",
null, 0, 1, PagesElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(pagesModelEClass, PagesModel.class, "PagesModel", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);