diff options
Diffstat (limited to 'plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/util/Net4JUIDefsSwitch.java')
-rw-r--r-- | plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/util/Net4JUIDefsSwitch.java | 56 |
1 files changed, 32 insertions, 24 deletions
diff --git a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/util/Net4JUIDefsSwitch.java b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/util/Net4JUIDefsSwitch.java index cac0525de3..d027290057 100644 --- a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/util/Net4JUIDefsSwitch.java +++ b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/ui/defs/util/Net4JUIDefsSwitch.java @@ -25,21 +25,22 @@ import java.util.List; * {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model, * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is * returned, which is the result of the switch. <!-- end-user-doc --> + * * @see org.eclipse.net4j.ui.defs.Net4JUIDefsPackage * @generated */ public class Net4JUIDefsSwitch<T> { /** - * The cached model package - * <!-- begin-user-doc --> <!-- end-user-doc --> + * The cached model package <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ protected static Net4JUIDefsPackage modelPackage; /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> <!-- end-user-doc --> + * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public Net4JUIDefsSwitch() @@ -53,6 +54,7 @@ public class Net4JUIDefsSwitch<T> /** * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ @@ -64,6 +66,7 @@ public class Net4JUIDefsSwitch<T> /** * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ @@ -76,16 +79,14 @@ public class Net4JUIDefsSwitch<T> else { List<EClass> eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch(eSuperTypes.get(0), theEObject); + return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); } } /** * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ @@ -93,15 +94,18 @@ public class Net4JUIDefsSwitch<T> { switch (classifierID) { - case Net4JUIDefsPackage.INTERACTIVE_CREDENTIALS_PROVIDER_DEF: - { - InteractiveCredentialsProviderDef interactiveCredentialsProviderDef = (InteractiveCredentialsProviderDef)theEObject; - T result = caseInteractiveCredentialsProviderDef(interactiveCredentialsProviderDef); - if (result == null) result = caseDef(interactiveCredentialsProviderDef); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); + case Net4JUIDefsPackage.INTERACTIVE_CREDENTIALS_PROVIDER_DEF: + { + InteractiveCredentialsProviderDef interactiveCredentialsProviderDef = (InteractiveCredentialsProviderDef)theEObject; + T result = caseInteractiveCredentialsProviderDef(interactiveCredentialsProviderDef); + if (result == null) + result = caseDef(interactiveCredentialsProviderDef); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); } } @@ -109,7 +113,9 @@ public class Net4JUIDefsSwitch<T> * Returns the result of interpreting the object as an instance of '<em>Interactive Credentials Provider Def</em>'. * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. * <!-- end-user-doc --> - * @param object the target of the switch. + * + * @param object + * the target of the switch. * @return the result of interpreting the object as an instance of '<em>Interactive Credentials Provider Def</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -120,10 +126,11 @@ public class Net4JUIDefsSwitch<T> } /** - * Returns the result of interpreting the object as an instance of '<em>Def</em>'. - * <!-- begin-user-doc --> This + * Returns the result of interpreting the object as an instance of '<em>Def</em>'. <!-- begin-user-doc --> This * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * @param object the target of the switch. + * + * @param object + * the target of the switch. * @return the result of interpreting the object as an instance of '<em>Def</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -134,11 +141,12 @@ public class Net4JUIDefsSwitch<T> } /** - * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> This + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc --> This * implementation returns null; returning a non-null result will terminate the switch, but this is the last case * anyway. <!-- end-user-doc --> - * @param object the target of the switch. + * + * @param object + * the target of the switch. * @return the result of interpreting the object as an instance of '<em>EObject</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) * @generated |