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/PreferencesImpl.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/impl/PreferencesImpl.java64
1 files changed, 2 insertions, 62 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/impl/PreferencesImpl.java b/plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/impl/PreferencesImpl.java
index f54be8534e..10866085b9 100644
--- a/plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/impl/PreferencesImpl.java
+++ b/plugins/org.eclipse.emf.cdo.releng.setup/src/org/eclipse/emf/cdo/releng/setup/impl/PreferencesImpl.java
@@ -10,18 +10,12 @@
*/
package org.eclipse.emf.cdo.releng.setup.impl;
-import java.util.Collection;
-import org.eclipse.emf.cdo.releng.setup.LinkLocation;
import org.eclipse.emf.cdo.releng.setup.Preferences;
import org.eclipse.emf.cdo.releng.setup.SetupPackage;
+
import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc -->
@@ -33,13 +27,12 @@ import org.eclipse.emf.ecore.util.InternalEList;
* <li>{@link org.eclipse.emf.cdo.releng.setup.impl.PreferencesImpl#getUserName <em>User Name</em>}</li>
* <li>{@link org.eclipse.emf.cdo.releng.setup.impl.PreferencesImpl#getInstallFolder <em>Install Folder</em>}</li>
* <li>{@link org.eclipse.emf.cdo.releng.setup.impl.PreferencesImpl#getGitPrefix <em>Git Prefix</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.releng.setup.impl.PreferencesImpl#getLinkLocations <em>Link Locations</em>}</li>
* </ul>
* </p>
*
* @generated
*/
-public class PreferencesImpl extends ToolInstallationImpl implements Preferences
+public class PreferencesImpl extends SetupTaskContainerImpl implements Preferences
{
/**
* The default value of the '{@link #getUserName() <em>User Name</em>}' attribute.
@@ -102,16 +95,6 @@ public class PreferencesImpl extends ToolInstallationImpl implements Preferences
protected String gitPrefix = GIT_PREFIX_EDEFAULT;
/**
- * The cached value of the '{@link #getLinkLocations() <em>Link Locations</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLinkLocations()
- * @generated
- * @ordered
- */
- protected EList<LinkLocation> linkLocations;
-
- /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -208,37 +191,6 @@ public class PreferencesImpl extends ToolInstallationImpl implements Preferences
* <!-- end-user-doc -->
* @generated
*/
- public EList<LinkLocation> getLinkLocations()
- {
- if (linkLocations == null)
- {
- linkLocations = new EObjectContainmentEList<LinkLocation>(LinkLocation.class, this,
- SetupPackage.PREFERENCES__LINK_LOCATIONS);
- }
- return linkLocations;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case SetupPackage.PREFERENCES__LINK_LOCATIONS:
- return ((InternalEList<?>)getLinkLocations()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
@@ -250,8 +202,6 @@ public class PreferencesImpl extends ToolInstallationImpl implements Preferences
return getInstallFolder();
case SetupPackage.PREFERENCES__GIT_PREFIX:
return getGitPrefix();
- case SetupPackage.PREFERENCES__LINK_LOCATIONS:
- return getLinkLocations();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -261,7 +211,6 @@ public class PreferencesImpl extends ToolInstallationImpl implements Preferences
* <!-- end-user-doc -->
* @generated
*/
- @SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue)
{
@@ -276,10 +225,6 @@ public class PreferencesImpl extends ToolInstallationImpl implements Preferences
case SetupPackage.PREFERENCES__GIT_PREFIX:
setGitPrefix((String)newValue);
return;
- case SetupPackage.PREFERENCES__LINK_LOCATIONS:
- getLinkLocations().clear();
- getLinkLocations().addAll((Collection<? extends LinkLocation>)newValue);
- return;
}
super.eSet(featureID, newValue);
}
@@ -303,9 +248,6 @@ public class PreferencesImpl extends ToolInstallationImpl implements Preferences
case SetupPackage.PREFERENCES__GIT_PREFIX:
setGitPrefix(GIT_PREFIX_EDEFAULT);
return;
- case SetupPackage.PREFERENCES__LINK_LOCATIONS:
- getLinkLocations().clear();
- return;
}
super.eUnset(featureID);
}
@@ -326,8 +268,6 @@ public class PreferencesImpl extends ToolInstallationImpl implements Preferences
return INSTALL_FOLDER_EDEFAULT == null ? installFolder != null : !INSTALL_FOLDER_EDEFAULT.equals(installFolder);
case SetupPackage.PREFERENCES__GIT_PREFIX:
return GIT_PREFIX_EDEFAULT == null ? gitPrefix != null : !GIT_PREFIX_EDEFAULT.equals(gitPrefix);
- case SetupPackage.PREFERENCES__LINK_LOCATIONS:
- return linkLocations != null && !linkLocations.isEmpty();
}
return super.eIsSet(featureID);
}

Back to the top