Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/impl/P2RepositoryImpl.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/impl/P2RepositoryImpl.java76
1 files changed, 44 insertions, 32 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/impl/P2RepositoryImpl.java b/plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/impl/P2RepositoryImpl.java
index ae64c0864f..ea56defc23 100644
--- a/plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/impl/P2RepositoryImpl.java
+++ b/plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/impl/P2RepositoryImpl.java
@@ -10,8 +10,8 @@
*/
package org.eclipse.emf.cdo.releng.setup.impl;
-import org.eclipse.emf.cdo.releng.setup.DirectorCall;
import org.eclipse.emf.cdo.releng.setup.P2Repository;
+import org.eclipse.emf.cdo.releng.setup.P2Task;
import org.eclipse.emf.cdo.releng.setup.SetupPackage;
import org.eclipse.emf.common.notify.Notification;
@@ -29,7 +29,7 @@ import org.eclipse.emf.ecore.util.EcoreUtil;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.releng.setup.impl.P2RepositoryImpl#getDirectorCall <em>Director Call</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.releng.setup.impl.P2RepositoryImpl#getP2Task <em>P2 Task</em>}</li>
* <li>{@link org.eclipse.emf.cdo.releng.setup.impl.P2RepositoryImpl#getUrl <em>Url</em>}</li>
* </ul>
* </p>
@@ -84,11 +84,11 @@ public class P2RepositoryImpl extends MinimalEObjectImpl.Container implements P2
* <!-- end-user-doc -->
* @generated
*/
- public DirectorCall getDirectorCall()
+ public P2Task getP2Task()
{
- if (eContainerFeatureID() != SetupPackage.P2_REPOSITORY__DIRECTOR_CALL)
+ if (eContainerFeatureID() != SetupPackage.P2_REPOSITORY__P2_TASK)
return null;
- return (DirectorCall)eInternalContainer();
+ return (P2Task)eContainer();
}
/**
@@ -96,9 +96,21 @@ public class P2RepositoryImpl extends MinimalEObjectImpl.Container implements P2
* <!-- end-user-doc -->
* @generated
*/
- public NotificationChain basicSetDirectorCall(DirectorCall newDirectorCall, NotificationChain msgs)
+ public P2Task basicGetP2Task()
{
- msgs = eBasicSetContainer((InternalEObject)newDirectorCall, SetupPackage.P2_REPOSITORY__DIRECTOR_CALL, msgs);
+ if (eContainerFeatureID() != SetupPackage.P2_REPOSITORY__P2_TASK)
+ return null;
+ return (P2Task)eInternalContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetP2Task(P2Task newP2Task, NotificationChain msgs)
+ {
+ msgs = eBasicSetContainer((InternalEObject)newP2Task, SetupPackage.P2_REPOSITORY__P2_TASK, msgs);
return msgs;
}
@@ -107,26 +119,25 @@ public class P2RepositoryImpl extends MinimalEObjectImpl.Container implements P2
* <!-- end-user-doc -->
* @generated
*/
- public void setDirectorCall(DirectorCall newDirectorCall)
+ public void setP2Task(P2Task newP2Task)
{
- if (newDirectorCall != eInternalContainer()
- || (eContainerFeatureID() != SetupPackage.P2_REPOSITORY__DIRECTOR_CALL && newDirectorCall != null))
+ if (newP2Task != eInternalContainer()
+ || (eContainerFeatureID() != SetupPackage.P2_REPOSITORY__P2_TASK && newP2Task != null))
{
- if (EcoreUtil.isAncestor(this, newDirectorCall))
+ if (EcoreUtil.isAncestor(this, newP2Task))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
- if (newDirectorCall != null)
- msgs = ((InternalEObject)newDirectorCall).eInverseAdd(this, SetupPackage.DIRECTOR_CALL__P2_REPOSITORIES,
- DirectorCall.class, msgs);
- msgs = basicSetDirectorCall(newDirectorCall, msgs);
+ if (newP2Task != null)
+ msgs = ((InternalEObject)newP2Task)
+ .eInverseAdd(this, SetupPackage.P2_TASK__P2_REPOSITORIES, P2Task.class, msgs);
+ msgs = basicSetP2Task(newP2Task, msgs);
if (msgs != null)
msgs.dispatch();
}
else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, SetupPackage.P2_REPOSITORY__DIRECTOR_CALL, newDirectorCall,
- newDirectorCall));
+ eNotify(new ENotificationImpl(this, Notification.SET, SetupPackage.P2_REPOSITORY__P2_TASK, newP2Task, newP2Task));
}
/**
@@ -162,10 +173,10 @@ public class P2RepositoryImpl extends MinimalEObjectImpl.Container implements P2
{
switch (featureID)
{
- case SetupPackage.P2_REPOSITORY__DIRECTOR_CALL:
+ case SetupPackage.P2_REPOSITORY__P2_TASK:
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
- return basicSetDirectorCall((DirectorCall)otherEnd, msgs);
+ return basicSetP2Task((P2Task)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
@@ -180,8 +191,8 @@ public class P2RepositoryImpl extends MinimalEObjectImpl.Container implements P2
{
switch (featureID)
{
- case SetupPackage.P2_REPOSITORY__DIRECTOR_CALL:
- return basicSetDirectorCall(null, msgs);
+ case SetupPackage.P2_REPOSITORY__P2_TASK:
+ return basicSetP2Task(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -196,9 +207,8 @@ public class P2RepositoryImpl extends MinimalEObjectImpl.Container implements P2
{
switch (eContainerFeatureID())
{
- case SetupPackage.P2_REPOSITORY__DIRECTOR_CALL:
- return eInternalContainer().eInverseRemove(this, SetupPackage.DIRECTOR_CALL__P2_REPOSITORIES, DirectorCall.class,
- msgs);
+ case SetupPackage.P2_REPOSITORY__P2_TASK:
+ return eInternalContainer().eInverseRemove(this, SetupPackage.P2_TASK__P2_REPOSITORIES, P2Task.class, msgs);
}
return super.eBasicRemoveFromContainerFeature(msgs);
}
@@ -213,8 +223,10 @@ public class P2RepositoryImpl extends MinimalEObjectImpl.Container implements P2
{
switch (featureID)
{
- case SetupPackage.P2_REPOSITORY__DIRECTOR_CALL:
- return getDirectorCall();
+ case SetupPackage.P2_REPOSITORY__P2_TASK:
+ if (resolve)
+ return getP2Task();
+ return basicGetP2Task();
case SetupPackage.P2_REPOSITORY__URL:
return getUrl();
}
@@ -231,8 +243,8 @@ public class P2RepositoryImpl extends MinimalEObjectImpl.Container implements P2
{
switch (featureID)
{
- case SetupPackage.P2_REPOSITORY__DIRECTOR_CALL:
- setDirectorCall((DirectorCall)newValue);
+ case SetupPackage.P2_REPOSITORY__P2_TASK:
+ setP2Task((P2Task)newValue);
return;
case SetupPackage.P2_REPOSITORY__URL:
setUrl((String)newValue);
@@ -251,8 +263,8 @@ public class P2RepositoryImpl extends MinimalEObjectImpl.Container implements P2
{
switch (featureID)
{
- case SetupPackage.P2_REPOSITORY__DIRECTOR_CALL:
- setDirectorCall((DirectorCall)null);
+ case SetupPackage.P2_REPOSITORY__P2_TASK:
+ setP2Task((P2Task)null);
return;
case SetupPackage.P2_REPOSITORY__URL:
setUrl(URL_EDEFAULT);
@@ -271,8 +283,8 @@ public class P2RepositoryImpl extends MinimalEObjectImpl.Container implements P2
{
switch (featureID)
{
- case SetupPackage.P2_REPOSITORY__DIRECTOR_CALL:
- return getDirectorCall() != null;
+ case SetupPackage.P2_REPOSITORY__P2_TASK:
+ return basicGetP2Task() != null;
case SetupPackage.P2_REPOSITORY__URL:
return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
}

Back to the top