Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapImpl.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapImpl.java22
1 files changed, 21 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapImpl.java
index 3d50ff084b..3e933d119c 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapImpl.java
@@ -1,4 +1,12 @@
-/**
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*/
package org.eclipse.emf.cdo.tests.legacy.model6.impl;
@@ -115,7 +123,9 @@ public class PropertiesMapImpl extends EObjectImpl implements PropertiesMap
String oldLabel = label;
label = newLabel;
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP__LABEL, oldLabel, label));
+ }
}
/**
@@ -180,14 +190,22 @@ public class PropertiesMapImpl extends EObjectImpl implements PropertiesMap
return getLabel();
case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP:
if (coreType)
+ {
return getPersistentMap();
+ }
else
+ {
return getPersistentMap().map();
+ }
case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP:
if (coreType)
+ {
return getTransientMap();
+ }
else
+ {
return getTransientMap().map();
+ }
}
return super.eGet(featureID, resolve, coreType);
}
@@ -267,7 +285,9 @@ public class PropertiesMapImpl extends EObjectImpl implements PropertiesMap
public String toString()
{
if (eIsProxy())
+ {
return super.toString();
+ }
StringBuffer result = new StringBuffer(super.toString());
result.append(" (label: ");

Back to the top