Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration/src-gen/org/eclipse/papyrus/uml/diagram/paletteconfiguration/util/PaletteconfigurationSwitch.java')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration/src-gen/org/eclipse/papyrus/uml/diagram/paletteconfiguration/util/PaletteconfigurationSwitch.java259
1 files changed, 92 insertions, 167 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration/src-gen/org/eclipse/papyrus/uml/diagram/paletteconfiguration/util/PaletteconfigurationSwitch.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration/src-gen/org/eclipse/papyrus/uml/diagram/paletteconfiguration/util/PaletteconfigurationSwitch.java
index 1e7ef4a877c..beeeb6ec055 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration/src-gen/org/eclipse/papyrus/uml/diagram/paletteconfiguration/util/PaletteconfigurationSwitch.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration/src-gen/org/eclipse/papyrus/uml/diagram/paletteconfiguration/util/PaletteconfigurationSwitch.java
@@ -1,36 +1,34 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
+ * Copyright (c) 2015 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
*/
package org.eclipse.papyrus.uml.diagram.paletteconfiguration.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
+
import org.eclipse.emf.ecore.util.Switch;
-import org.eclipse.papyrus.uml.diagram.paletteconfiguration.ChildConfiguration;
-import org.eclipse.papyrus.uml.diagram.paletteconfiguration.Configuration;
-import org.eclipse.papyrus.uml.diagram.paletteconfiguration.DrawerConfiguration;
-import org.eclipse.papyrus.uml.diagram.paletteconfiguration.ElementDescriptor;
-import org.eclipse.papyrus.uml.diagram.paletteconfiguration.IconDescriptor;
-import org.eclipse.papyrus.uml.diagram.paletteconfiguration.LeafConfiguration;
-import org.eclipse.papyrus.uml.diagram.paletteconfiguration.PaletteConfiguration;
-import org.eclipse.papyrus.uml.diagram.paletteconfiguration.PaletteconfigurationPackage;
-import org.eclipse.papyrus.uml.diagram.paletteconfiguration.SeparatorConfiguration;
-import org.eclipse.papyrus.uml.diagram.paletteconfiguration.StackConfiguration;
-import org.eclipse.papyrus.uml.diagram.paletteconfiguration.ToolConfiguration;
+
+import org.eclipse.papyrus.uml.diagram.paletteconfiguration.*;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
+ * It supports the call {@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.papyrus.uml.diagram.paletteconfiguration.PaletteconfigurationPackage
* @generated
*/
@@ -39,7 +37,6 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected static PaletteconfigurationPackage modelPackage;
@@ -48,7 +45,6 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public PaletteconfigurationSwitch() {
@@ -61,8 +57,7 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @parameter ePackage the package in question.
+ * @param ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
*/
@@ -75,134 +70,86 @@ public class PaletteconfigurationSwitch<T> extends Switch<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
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
- case PaletteconfigurationPackage.PALETTE_CONFIGURATION: {
- PaletteConfiguration paletteConfiguration = (PaletteConfiguration) theEObject;
- T result = casePaletteConfiguration(paletteConfiguration);
- if (result == null) {
- result = caseConfiguration(paletteConfiguration);
+ case PaletteconfigurationPackage.PALETTE_CONFIGURATION: {
+ PaletteConfiguration paletteConfiguration = (PaletteConfiguration)theEObject;
+ T result = casePaletteConfiguration(paletteConfiguration);
+ if (result == null) result = caseConfiguration(paletteConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- if (result == null) {
- result = defaultCase(theEObject);
+ case PaletteconfigurationPackage.TOOL_CONFIGURATION: {
+ ToolConfiguration toolConfiguration = (ToolConfiguration)theEObject;
+ T result = caseToolConfiguration(toolConfiguration);
+ if (result == null) result = caseLeafConfiguration(toolConfiguration);
+ if (result == null) result = caseChildConfiguration(toolConfiguration);
+ if (result == null) result = caseConfiguration(toolConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case PaletteconfigurationPackage.TOOL_CONFIGURATION: {
- ToolConfiguration toolConfiguration = (ToolConfiguration) theEObject;
- T result = caseToolConfiguration(toolConfiguration);
- if (result == null) {
- result = caseLeafConfiguration(toolConfiguration);
+ case PaletteconfigurationPackage.STACK_CONFIGURATION: {
+ StackConfiguration stackConfiguration = (StackConfiguration)theEObject;
+ T result = caseStackConfiguration(stackConfiguration);
+ if (result == null) result = caseChildConfiguration(stackConfiguration);
+ if (result == null) result = caseConfiguration(stackConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- if (result == null) {
- result = caseChildConfiguration(toolConfiguration);
+ case PaletteconfigurationPackage.CHILD_CONFIGURATION: {
+ ChildConfiguration childConfiguration = (ChildConfiguration)theEObject;
+ T result = caseChildConfiguration(childConfiguration);
+ if (result == null) result = caseConfiguration(childConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- if (result == null) {
- result = caseConfiguration(toolConfiguration);
+ case PaletteconfigurationPackage.DRAWER_CONFIGURATION: {
+ DrawerConfiguration drawerConfiguration = (DrawerConfiguration)theEObject;
+ T result = caseDrawerConfiguration(drawerConfiguration);
+ if (result == null) result = caseConfiguration(drawerConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- if (result == null) {
- result = defaultCase(theEObject);
+ case PaletteconfigurationPackage.CONFIGURATION: {
+ Configuration configuration = (Configuration)theEObject;
+ T result = caseConfiguration(configuration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case PaletteconfigurationPackage.STACK_CONFIGURATION: {
- StackConfiguration stackConfiguration = (StackConfiguration) theEObject;
- T result = caseStackConfiguration(stackConfiguration);
- if (result == null) {
- result = caseChildConfiguration(stackConfiguration);
+ case PaletteconfigurationPackage.ICON_DESCRIPTOR: {
+ IconDescriptor iconDescriptor = (IconDescriptor)theEObject;
+ T result = caseIconDescriptor(iconDescriptor);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- if (result == null) {
- result = caseConfiguration(stackConfiguration);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PaletteconfigurationPackage.CHILD_CONFIGURATION: {
- ChildConfiguration childConfiguration = (ChildConfiguration) theEObject;
- T result = caseChildConfiguration(childConfiguration);
- if (result == null) {
- result = caseConfiguration(childConfiguration);
+ case PaletteconfigurationPackage.ELEMENT_DESCRIPTOR: {
+ ElementDescriptor elementDescriptor = (ElementDescriptor)theEObject;
+ T result = caseElementDescriptor(elementDescriptor);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- if (result == null) {
- result = defaultCase(theEObject);
+ case PaletteconfigurationPackage.SEPARATOR_CONFIGURATION: {
+ SeparatorConfiguration separatorConfiguration = (SeparatorConfiguration)theEObject;
+ T result = caseSeparatorConfiguration(separatorConfiguration);
+ if (result == null) result = caseLeafConfiguration(separatorConfiguration);
+ if (result == null) result = caseChildConfiguration(separatorConfiguration);
+ if (result == null) result = caseConfiguration(separatorConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case PaletteconfigurationPackage.DRAWER_CONFIGURATION: {
- DrawerConfiguration drawerConfiguration = (DrawerConfiguration) theEObject;
- T result = caseDrawerConfiguration(drawerConfiguration);
- if (result == null) {
- result = caseConfiguration(drawerConfiguration);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PaletteconfigurationPackage.CONFIGURATION: {
- Configuration configuration = (Configuration) theEObject;
- T result = caseConfiguration(configuration);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PaletteconfigurationPackage.ICON_DESCRIPTOR: {
- IconDescriptor iconDescriptor = (IconDescriptor) theEObject;
- T result = caseIconDescriptor(iconDescriptor);
- if (result == null) {
- result = defaultCase(theEObject);
+ case PaletteconfigurationPackage.LEAF_CONFIGURATION: {
+ LeafConfiguration leafConfiguration = (LeafConfiguration)theEObject;
+ T result = caseLeafConfiguration(leafConfiguration);
+ if (result == null) result = caseChildConfiguration(leafConfiguration);
+ if (result == null) result = caseConfiguration(leafConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case PaletteconfigurationPackage.ELEMENT_DESCRIPTOR: {
- ElementDescriptor elementDescriptor = (ElementDescriptor) theEObject;
- T result = caseElementDescriptor(elementDescriptor);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PaletteconfigurationPackage.SEPARATOR_CONFIGURATION: {
- SeparatorConfiguration separatorConfiguration = (SeparatorConfiguration) theEObject;
- T result = caseSeparatorConfiguration(separatorConfiguration);
- if (result == null) {
- result = caseLeafConfiguration(separatorConfiguration);
- }
- if (result == null) {
- result = caseChildConfiguration(separatorConfiguration);
- }
- if (result == null) {
- result = caseConfiguration(separatorConfiguration);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PaletteconfigurationPackage.LEAF_CONFIGURATION: {
- LeafConfiguration leafConfiguration = (LeafConfiguration) theEObject;
- T result = caseLeafConfiguration(leafConfiguration);
- if (result == null) {
- result = caseChildConfiguration(leafConfiguration);
- }
- if (result == null) {
- result = caseConfiguration(leafConfiguration);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
+ default: return defaultCase(theEObject);
}
}
@@ -212,9 +159,7 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* 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>Palette Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -229,9 +174,7 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* 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>Tool Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -246,9 +189,7 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* 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>Stack Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -263,9 +204,7 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* 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>Child Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -280,9 +219,7 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* 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>Drawer Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -297,9 +234,7 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* 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>Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -314,9 +249,7 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* 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>Icon Descriptor</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -331,9 +264,7 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* 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>Element Descriptor</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -348,9 +279,7 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* 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>Separator Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -365,9 +294,7 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* 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>Leaf Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -382,9 +309,7 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
* 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
@@ -394,4 +319,4 @@ public class PaletteconfigurationSwitch<T> extends Switch<T> {
return null;
}
-} // PaletteconfigurationSwitch
+} //PaletteconfigurationSwitch

Back to the top