Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-06-01 08:56:54 +0000
committerEike Stepper2013-06-01 08:56:54 +0000
commit67c1895dd90d8fe8fcb935b8f27c7d290911e641 (patch)
tree53f6ddf6da9462c86ec6d66b60d31c1fa8d89b7c /plugins/org.eclipse.emf.cdo.ecore.retrofit
parent4e4ece8dd69c5eb3b5597d2fe53811d178ebbf0f (diff)
downloadcdo-67c1895dd90d8fe8fcb935b8f27c7d290911e641.tar.gz
cdo-67c1895dd90d8fe8fcb935b8f27c7d290911e641.tar.xz
cdo-67c1895dd90d8fe8fcb935b8f27c7d290911e641.zip
Reformat source code
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ecore.retrofit')
-rw-r--r--plugins/org.eclipse.emf.cdo.ecore.retrofit/src/org/eclipse/emf/ecore/impl/MinimalEStoreEObjectImpl.java92
1 files changed, 42 insertions, 50 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ecore.retrofit/src/org/eclipse/emf/ecore/impl/MinimalEStoreEObjectImpl.java b/plugins/org.eclipse.emf.cdo.ecore.retrofit/src/org/eclipse/emf/ecore/impl/MinimalEStoreEObjectImpl.java
index 286ef26708..74ea0f95ba 100644
--- a/plugins/org.eclipse.emf.cdo.ecore.retrofit/src/org/eclipse/emf/ecore/impl/MinimalEStoreEObjectImpl.java
+++ b/plugins/org.eclipse.emf.cdo.ecore.retrofit/src/org/eclipse/emf/ecore/impl/MinimalEStoreEObjectImpl.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.ecore.impl;
-
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.util.BasicEMap;
@@ -25,7 +24,6 @@ import org.eclipse.emf.ecore.util.EcoreEMap;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.FeatureMapUtil;
-
/**
* A minimal abstract implementation of '<em><b>EObject</b></em>' that delegates to a {@link org.eclipse.emf.ecore.InternalEObject.EStore store}.
* It's extends {@link MinimalEObjectImpl} and does <b>not</b> introduce any additional fields.
@@ -155,12 +153,8 @@ public abstract class MinimalEStoreEObjectImpl extends MinimalEObjectImpl
@Override
protected boolean eDynamicIsSet(int dynamicFeatureID, EStructuralFeature eFeature)
{
- return
- dynamicFeatureID < 0 ?
- eOpenIsSet(eFeature) :
- eFeature.isTransient() ?
- eSettingDelegate(eFeature).dynamicIsSet(this, eSettings(), dynamicFeatureID) :
- eStore().isSet(this, eFeature);
+ return dynamicFeatureID < 0 ? eOpenIsSet(eFeature) : eFeature.isTransient() ? eSettingDelegate(eFeature)
+ .dynamicIsSet(this, eSettings(), dynamicFeatureID) : eStore().isSet(this, eFeature);
}
@SuppressWarnings("nls")
@@ -175,46 +169,44 @@ public abstract class MinimalEStoreEObjectImpl extends MinimalEObjectImpl
public EStoreEcoreEMap()
{
- super
- ((EClass)eType,
- BasicEMap.Entry.class,
- null);
- delegateEList =
- new EStoreEObjectImpl.BasicEStoreEList<BasicEMap.Entry<Object, Object>>(MinimalEStoreEObjectImpl.this, eStructuralFeature)
- {
- private static final long serialVersionUID = 1L;
-
- @Override
- protected void didAdd(int index, BasicEMap.Entry<Object, Object> newObject)
- {
- EStoreEcoreEMap.this.doPut(newObject);
- }
-
- @Override
- protected void didSet(int index, BasicEMap.Entry<Object, Object> newObject, BasicEMap.Entry<Object, Object> oldObject)
- {
- didRemove(index, oldObject);
- didAdd(index, newObject);
- }
-
- @Override
- protected void didRemove(int index, BasicEMap.Entry<Object, Object> oldObject)
- {
- EStoreEcoreEMap.this.doRemove(oldObject);
- }
-
- @Override
- protected void didClear(int size, Object [] oldObjects)
- {
- EStoreEcoreEMap.this.doClear();
- }
-
- @Override
- protected void didMove(int index, BasicEMap.Entry<Object, Object> movedObject, int oldIndex)
- {
- EStoreEcoreEMap.this.doMove(movedObject);
- }
- };
+ super((EClass)eType, BasicEMap.Entry.class, null);
+ delegateEList = new EStoreEObjectImpl.BasicEStoreEList<BasicEMap.Entry<Object, Object>>(
+ MinimalEStoreEObjectImpl.this, eStructuralFeature)
+ {
+ private static final long serialVersionUID = 1L;
+
+ @Override
+ protected void didAdd(int index, BasicEMap.Entry<Object, Object> newObject)
+ {
+ EStoreEcoreEMap.this.doPut(newObject);
+ }
+
+ @Override
+ protected void didSet(int index, BasicEMap.Entry<Object, Object> newObject,
+ BasicEMap.Entry<Object, Object> oldObject)
+ {
+ didRemove(index, oldObject);
+ didAdd(index, newObject);
+ }
+
+ @Override
+ protected void didRemove(int index, BasicEMap.Entry<Object, Object> oldObject)
+ {
+ EStoreEcoreEMap.this.doRemove(oldObject);
+ }
+
+ @Override
+ protected void didClear(int size, Object[] oldObjects)
+ {
+ EStoreEcoreEMap.this.doClear();
+ }
+
+ @Override
+ protected void didMove(int index, BasicEMap.Entry<Object, Object> movedObject, int oldIndex)
+ {
+ EStoreEcoreEMap.this.doMove(movedObject);
+ }
+ };
size = delegateEList.size();
}
}
@@ -313,12 +305,12 @@ public abstract class MinimalEStoreEObjectImpl extends MinimalEObjectImpl
super.eBasicSetAdapterArray(adapters);
}
- protected EObservableAdapterList.Listener[] eBasicAdapterListeners()
+ protected EObservableAdapterList.Listener[] eBasicAdapterListeners()
{
throw new UnsupportedOperationException();
}
- protected void eBasicSetAdapterListeners(EObservableAdapterList.Listener[] eAdapterListeners)
+ protected void eBasicSetAdapterListeners(EObservableAdapterList.Listener[] eAdapterListeners)
{
throw new UnsupportedOperationException();
}

Back to the top