Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOResourceDefImpl.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOResourceDefImpl.java18
1 files changed, 15 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOResourceDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOResourceDefImpl.java
index f55a4708e9..36cfbb4a95 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOResourceDefImpl.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOResourceDefImpl.java
@@ -37,7 +37,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
* <li>{@link org.eclipse.emf.cdo.defs.impl.CDOResourceDefImpl#getCdoTransaction <em>Cdo Transaction</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class CDOResourceDefImpl extends DefImpl implements CDOResourceDef
@@ -56,7 +56,7 @@ public class CDOResourceDefImpl extends DefImpl implements CDOResourceDef
/**
* The default value of the '{@link #getResourceMode() <em>Resource Mode</em>}' attribute. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
+ *
* @see #getResourceMode()
* @generated NOT
* @ordered
@@ -76,7 +76,7 @@ public class CDOResourceDefImpl extends DefImpl implements CDOResourceDef
/**
* The default value of the '{@link #getPath() <em>Path</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
* -->
- *
+ *
* @see #getPath()
* @generated
* @ordered
@@ -124,8 +124,10 @@ public class CDOResourceDefImpl extends DefImpl implements CDOResourceDef
if (cdoTransaction != oldCdoTransaction)
{
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION,
oldCdoTransaction, cdoTransaction));
+ }
}
}
return cdoTransaction;
@@ -149,8 +151,10 @@ public class CDOResourceDefImpl extends DefImpl implements CDOResourceDef
CDOTransactionDef oldCdoTransaction = cdoTransaction;
cdoTransaction = newCdoTransaction;
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION,
oldCdoTransaction, cdoTransaction));
+ }
}
/**
@@ -171,8 +175,10 @@ public class CDOResourceDefImpl extends DefImpl implements CDOResourceDef
ResourceMode oldResourceMode = resourceMode;
resourceMode = newResourceMode == null ? RESOURCE_MODE_EDEFAULT : newResourceMode;
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE,
oldResourceMode, resourceMode));
+ }
}
/**
@@ -193,7 +199,9 @@ public class CDOResourceDefImpl extends DefImpl implements CDOResourceDef
String oldPath = path;
path = newPath;
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_RESOURCE_DEF__PATH, oldPath, path));
+ }
}
/**
@@ -207,7 +215,9 @@ public class CDOResourceDefImpl extends DefImpl implements CDOResourceDef
{
case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION:
if (resolve)
+ {
return getCdoTransaction();
+ }
return basicGetCdoTransaction();
case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE:
return getResourceMode();
@@ -288,7 +298,9 @@ public class CDOResourceDefImpl extends DefImpl implements CDOResourceDef
public String toString()
{
if (eIsProxy())
+ {
return super.toString();
+ }
StringBuffer result = new StringBuffer(super.toString());
result.append(" (resourceMode: ");

Back to the top