diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOSessionDefImpl.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOSessionDefImpl.java | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOSessionDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOSessionDefImpl.java index 80cec3575c..e46db69943 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOSessionDefImpl.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOSessionDefImpl.java @@ -174,10 +174,8 @@ public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef if (connectorDef != oldConnectorDef) { if (eNotificationRequired()) - { eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF, oldConnectorDef, connectorDef)); - } } } return connectorDef; @@ -227,10 +225,8 @@ public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef boolean oldConnectorDefESet = connectorDefESet; connectorDefESet = true; if (eNotificationRequired()) - { eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF, oldConnectorDef, connectorDef, !oldConnectorDefESet)); - } } /** @@ -245,10 +241,8 @@ public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef connectorDef = null; connectorDefESet = false; if (eNotificationRequired()) - { eNotify(new ENotificationImpl(this, Notification.UNSET, CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF, oldConnectorDef, null, oldConnectorDefESet)); - } } /** @@ -281,10 +275,8 @@ public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef String oldRepositoryName = repositoryName; repositoryName = newRepositoryName; if (eNotificationRequired()) - { eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME, oldRepositoryName, repositoryName)); - } } /** @@ -301,10 +293,8 @@ public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef if (cdoPackageRegistryDef != oldCdoPackageRegistryDef) { if (eNotificationRequired()) - { eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF, oldCdoPackageRegistryDef, cdoPackageRegistryDef)); - } } } return cdoPackageRegistryDef; @@ -330,10 +320,8 @@ public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef CDOPackageRegistryDef oldCdoPackageRegistryDef = cdoPackageRegistryDef; cdoPackageRegistryDef = newCdoPackageRegistryDef; if (eNotificationRequired()) - { eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF, oldCdoPackageRegistryDef, cdoPackageRegistryDef)); - } } /** @@ -356,10 +344,8 @@ public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef boolean oldLegacySupportEnabled = legacySupportEnabled; legacySupportEnabled = newLegacySupportEnabled; if (eNotificationRequired()) - { eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED, oldLegacySupportEnabled, legacySupportEnabled)); - } } /** @@ -376,10 +362,8 @@ public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef if (failOverStrategyDef != oldFailOverStrategyDef) { if (eNotificationRequired()) - { eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF, oldFailOverStrategyDef, failOverStrategyDef)); - } } } return failOverStrategyDef; @@ -428,10 +412,8 @@ public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef boolean oldFailOverStrategyDefESet = failOverStrategyDefESet; failOverStrategyDefESet = true; if (eNotificationRequired()) - { eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF, oldFailOverStrategyDef, failOverStrategyDef, !oldFailOverStrategyDefESet)); - } } /** @@ -446,10 +428,8 @@ public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef failOverStrategyDef = null; failOverStrategyDefESet = false; if (eNotificationRequired()) - { eNotify(new ENotificationImpl(this, Notification.UNSET, CDODefsPackage.CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF, oldFailOverStrategyDef, null, oldFailOverStrategyDefESet)); - } } /** @@ -474,25 +454,19 @@ public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef { case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF: if (resolve) - { return getConnectorDef(); - } return basicGetConnectorDef(); case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME: return getRepositoryName(); case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF: if (resolve) - { return getCdoPackageRegistryDef(); - } return basicGetCdoPackageRegistryDef(); case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED: return isLegacySupportEnabled(); case CDODefsPackage.CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF: if (resolve) - { return getFailOverStrategyDef(); - } return basicGetFailOverStrategyDef(); } return super.eGet(featureID, resolve, coreType); @@ -590,9 +564,7 @@ public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef public String toString() { if (eIsProxy()) - { return super.toString(); - } StringBuffer result = new StringBuffer(super.toString()); result.append(" (repositoryName: "); |