Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/defs/impl/ConnectorDefImpl.java')
-rw-r--r--plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/defs/impl/ConnectorDefImpl.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/defs/impl/ConnectorDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/defs/impl/ConnectorDefImpl.java
index 614e958d95..fc71067857 100644
--- a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/defs/impl/ConnectorDefImpl.java
+++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/defs/impl/ConnectorDefImpl.java
@@ -173,8 +173,10 @@ public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef
boolean oldUserIDESet = userIDESet;
userIDESet = true;
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.CONNECTOR_DEF__USER_ID, oldUserID, userID,
!oldUserIDESet));
+ }
}
/**
@@ -189,8 +191,10 @@ public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef
userID = USER_ID_EDEFAULT;
userIDESet = false;
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.UNSET, Net4jDefsPackage.CONNECTOR_DEF__USER_ID, oldUserID,
USER_ID_EDEFAULT, oldUserIDESet));
+ }
}
/**
@@ -217,8 +221,10 @@ public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef
if (bufferProvider != oldBufferProvider)
{
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jDefsPackage.CONNECTOR_DEF__BUFFER_PROVIDER,
oldBufferProvider, bufferProvider));
+ }
}
}
return bufferProvider;
@@ -244,8 +250,10 @@ public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef
BufferProviderDef oldBufferProvider = bufferProvider;
bufferProvider = newBufferProvider;
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.CONNECTOR_DEF__BUFFER_PROVIDER,
oldBufferProvider, bufferProvider));
+ }
}
/**
@@ -262,8 +270,10 @@ public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef
if (executorService != oldExecutorService)
{
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jDefsPackage.CONNECTOR_DEF__EXECUTOR_SERVICE,
oldExecutorService, executorService));
+ }
}
}
return executorService;
@@ -289,8 +299,10 @@ public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef
ExecutorServiceDef oldExecutorService = executorService;
executorService = newExecutorService;
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.CONNECTOR_DEF__EXECUTOR_SERVICE,
oldExecutorService, executorService));
+ }
}
/**
@@ -307,8 +319,10 @@ public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef
if (negotiator != oldNegotiator)
{
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jDefsPackage.CONNECTOR_DEF__NEGOTIATOR,
oldNegotiator, negotiator));
+ }
}
}
return negotiator;
@@ -336,8 +350,10 @@ public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef
boolean oldNegotiatorESet = negotiatorESet;
negotiatorESet = true;
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.CONNECTOR_DEF__NEGOTIATOR, oldNegotiator,
negotiator, !oldNegotiatorESet));
+ }
}
/**
@@ -352,8 +368,10 @@ public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef
negotiator = null;
negotiatorESet = false;
if (eNotificationRequired())
+ {
eNotify(new ENotificationImpl(this, Notification.UNSET, Net4jDefsPackage.CONNECTOR_DEF__NEGOTIATOR,
oldNegotiator, null, oldNegotiatorESet));
+ }
}
/**
@@ -389,7 +407,9 @@ public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef
public void unsetClientProtocolProvider()
{
if (clientProtocolProvider != null)
+ {
((InternalEList.Unsettable<?>)clientProtocolProvider).unset();
+ }
}
/**
@@ -416,15 +436,21 @@ public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef
return getUserID();
case Net4jDefsPackage.CONNECTOR_DEF__BUFFER_PROVIDER:
if (resolve)
+ {
return getBufferProvider();
+ }
return basicGetBufferProvider();
case Net4jDefsPackage.CONNECTOR_DEF__EXECUTOR_SERVICE:
if (resolve)
+ {
return getExecutorService();
+ }
return basicGetExecutorService();
case Net4jDefsPackage.CONNECTOR_DEF__NEGOTIATOR:
if (resolve)
+ {
return getNegotiator();
+ }
return basicGetNegotiator();
case Net4jDefsPackage.CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER:
return getClientProtocolProvider();
@@ -525,14 +551,20 @@ public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef
public String toString()
{
if (eIsProxy())
+ {
return super.toString();
+ }
StringBuffer result = new StringBuffer(super.toString());
result.append(" (userID: ");
if (userIDESet)
+ {
result.append(userID);
+ }
else
+ {
result.append("<unset>");
+ }
result.append(')');
return result.toString();
}

Back to the top