1 /** 2 * Copyright (c) 2008, 2015 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 */ 14 package org.eclipse.e4.ui.model.application.ui.basic.util; 15 16 import org.eclipse.e4.ui.model.application.MApplicationElement; 17 import org.eclipse.e4.ui.model.application.MContribution; 18 import org.eclipse.e4.ui.model.application.commands.MBindings; 19 import org.eclipse.e4.ui.model.application.commands.MHandlerContainer; 20 import org.eclipse.e4.ui.model.application.ui.MContext; 21 import org.eclipse.e4.ui.model.application.ui.MDirtyable; 22 import org.eclipse.e4.ui.model.application.ui.MElementContainer; 23 import org.eclipse.e4.ui.model.application.ui.MGenericStack; 24 import org.eclipse.e4.ui.model.application.ui.MGenericTile; 25 import org.eclipse.e4.ui.model.application.ui.MGenericTrimContainer; 26 import org.eclipse.e4.ui.model.application.ui.MInput; 27 import org.eclipse.e4.ui.model.application.ui.MLocalizable; 28 import org.eclipse.e4.ui.model.application.ui.MSnippetContainer; 29 import org.eclipse.e4.ui.model.application.ui.MUIElement; 30 import org.eclipse.e4.ui.model.application.ui.MUILabel; 31 import org.eclipse.e4.ui.model.application.ui.basic.MCompositePart; 32 import org.eclipse.e4.ui.model.application.ui.basic.MInputPart; 33 import org.eclipse.e4.ui.model.application.ui.basic.MPart; 34 import org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainer; 35 import org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainerElement; 36 import org.eclipse.e4.ui.model.application.ui.basic.MPartStack; 37 import org.eclipse.e4.ui.model.application.ui.basic.MStackElement; 38 import org.eclipse.e4.ui.model.application.ui.basic.MTrimBar; 39 import org.eclipse.e4.ui.model.application.ui.basic.MTrimElement; 40 import org.eclipse.e4.ui.model.application.ui.basic.MTrimmedWindow; 41 import org.eclipse.e4.ui.model.application.ui.basic.MWindow; 42 import org.eclipse.e4.ui.model.application.ui.basic.MWindowElement; 43 import org.eclipse.e4.ui.model.application.ui.basic.impl.BasicPackageImpl; 44 import org.eclipse.emf.ecore.EObject; 45 import org.eclipse.emf.ecore.EPackage; 46 import org.eclipse.emf.ecore.util.Switch; 47 48 /** 49 * <!-- begin-user-doc --> 50 * The <b>Switch</b> for the model's inheritance hierarchy. 51 * It supports the call {@link #doSwitch(EObject) doSwitch(object)} 52 * to invoke the <code>caseXXX</code> method for each class of the model, 53 * starting with the actual class of the object 54 * and proceeding up the inheritance hierarchy 55 * until a non-null result is returned, 56 * which is the result of the switch. 57 * <!-- end-user-doc --> 58 * @see org.eclipse.e4.ui.model.application.ui.basic.impl.BasicPackageImpl 59 * @generated 60 */ 61 @SuppressWarnings("deprecation") 62 public class BasicSwitch<T1> extends Switch<T1> { 63 /** 64 * The cached model package 65 * <!-- begin-user-doc --> 66 * <!-- end-user-doc --> 67 * @generated 68 */ 69 protected static BasicPackageImpl modelPackage; 70 71 /** 72 * Creates an instance of the switch. 73 * <!-- begin-user-doc --> 74 * <!-- end-user-doc --> 75 * @generated 76 */ BasicSwitch()77 public BasicSwitch() { 78 if (modelPackage == null) { 79 modelPackage = BasicPackageImpl.eINSTANCE; 80 } 81 } 82 83 /** 84 * Checks whether this is a switch for the given package. 85 * <!-- begin-user-doc --> 86 * <!-- end-user-doc --> 87 * @param ePackage the package in question. 88 * @return whether this is a switch for the given package. 89 * @generated 90 */ 91 @Override isSwitchFor(EPackage ePackage)92 protected boolean isSwitchFor(EPackage ePackage) { 93 return ePackage == modelPackage; 94 } 95 96 /** 97 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. 98 * <!-- begin-user-doc --> 99 * <!-- end-user-doc --> 100 * @return the first non-null result returned by a <code>caseXXX</code> call. 101 * @generated 102 */ 103 @Override doSwitch(int classifierID, EObject theEObject)104 protected T1 doSwitch(int classifierID, EObject theEObject) { 105 switch (classifierID) { 106 case BasicPackageImpl.PART: { 107 MPart part = (MPart) theEObject; 108 T1 result = casePart(part); 109 if (result == null) 110 result = casePartSashContainerElement(part); 111 if (result == null) 112 result = caseStackElement(part); 113 if (result == null) 114 result = caseContribution(part); 115 if (result == null) 116 result = caseContext(part); 117 if (result == null) 118 result = caseUILabel(part); 119 if (result == null) 120 result = caseHandlerContainer(part); 121 if (result == null) 122 result = caseDirtyable(part); 123 if (result == null) 124 result = caseBindings(part); 125 if (result == null) 126 result = caseWindowElement(part); 127 if (result == null) 128 result = caseUIElement(part); 129 if (result == null) 130 result = caseApplicationElement(part); 131 if (result == null) 132 result = caseLocalizable(part); 133 if (result == null) 134 result = defaultCase(theEObject); 135 return result; 136 } 137 case BasicPackageImpl.COMPOSITE_PART: { 138 MCompositePart compositePart = (MCompositePart) theEObject; 139 T1 result = caseCompositePart(compositePart); 140 if (result == null) 141 result = casePart(compositePart); 142 if (result == null) 143 result = caseGenericTile(compositePart); 144 if (result == null) 145 result = casePartSashContainerElement(compositePart); 146 if (result == null) 147 result = caseStackElement(compositePart); 148 if (result == null) 149 result = caseContribution(compositePart); 150 if (result == null) 151 result = caseContext(compositePart); 152 if (result == null) 153 result = caseUILabel(compositePart); 154 if (result == null) 155 result = caseHandlerContainer(compositePart); 156 if (result == null) 157 result = caseDirtyable(compositePart); 158 if (result == null) 159 result = caseBindings(compositePart); 160 if (result == null) 161 result = caseWindowElement(compositePart); 162 if (result == null) 163 result = caseElementContainer(compositePart); 164 if (result == null) 165 result = caseUIElement(compositePart); 166 if (result == null) 167 result = caseApplicationElement(compositePart); 168 if (result == null) 169 result = caseLocalizable(compositePart); 170 if (result == null) 171 result = defaultCase(theEObject); 172 return result; 173 } 174 case BasicPackageImpl.INPUT_PART: { 175 MInputPart inputPart = (MInputPart) theEObject; 176 T1 result = caseInputPart(inputPart); 177 if (result == null) 178 result = casePart(inputPart); 179 if (result == null) 180 result = caseInput(inputPart); 181 if (result == null) 182 result = casePartSashContainerElement(inputPart); 183 if (result == null) 184 result = caseStackElement(inputPart); 185 if (result == null) 186 result = caseContribution(inputPart); 187 if (result == null) 188 result = caseContext(inputPart); 189 if (result == null) 190 result = caseUILabel(inputPart); 191 if (result == null) 192 result = caseHandlerContainer(inputPart); 193 if (result == null) 194 result = caseDirtyable(inputPart); 195 if (result == null) 196 result = caseBindings(inputPart); 197 if (result == null) 198 result = caseWindowElement(inputPart); 199 if (result == null) 200 result = caseUIElement(inputPart); 201 if (result == null) 202 result = caseApplicationElement(inputPart); 203 if (result == null) 204 result = caseLocalizable(inputPart); 205 if (result == null) 206 result = defaultCase(theEObject); 207 return result; 208 } 209 case BasicPackageImpl.PART_STACK: { 210 MPartStack partStack = (MPartStack) theEObject; 211 T1 result = casePartStack(partStack); 212 if (result == null) 213 result = caseGenericStack(partStack); 214 if (result == null) 215 result = casePartSashContainerElement(partStack); 216 if (result == null) 217 result = caseWindowElement(partStack); 218 if (result == null) 219 result = caseElementContainer(partStack); 220 if (result == null) 221 result = caseUIElement(partStack); 222 if (result == null) 223 result = caseApplicationElement(partStack); 224 if (result == null) 225 result = caseLocalizable(partStack); 226 if (result == null) 227 result = defaultCase(theEObject); 228 return result; 229 } 230 case BasicPackageImpl.PART_SASH_CONTAINER: { 231 MPartSashContainer partSashContainer = (MPartSashContainer) theEObject; 232 T1 result = casePartSashContainer(partSashContainer); 233 if (result == null) 234 result = caseGenericTile(partSashContainer); 235 if (result == null) 236 result = casePartSashContainerElement(partSashContainer); 237 if (result == null) 238 result = caseWindowElement(partSashContainer); 239 if (result == null) 240 result = caseElementContainer(partSashContainer); 241 if (result == null) 242 result = caseUIElement(partSashContainer); 243 if (result == null) 244 result = caseApplicationElement(partSashContainer); 245 if (result == null) 246 result = caseLocalizable(partSashContainer); 247 if (result == null) 248 result = defaultCase(theEObject); 249 return result; 250 } 251 case BasicPackageImpl.WINDOW: { 252 MWindow window = (MWindow) theEObject; 253 T1 result = caseWindow(window); 254 if (result == null) 255 result = caseElementContainer(window); 256 if (result == null) 257 result = caseUILabel(window); 258 if (result == null) 259 result = caseContext(window); 260 if (result == null) 261 result = caseHandlerContainer(window); 262 if (result == null) 263 result = caseBindings(window); 264 if (result == null) 265 result = caseSnippetContainer(window); 266 if (result == null) 267 result = caseUIElement(window); 268 if (result == null) 269 result = caseApplicationElement(window); 270 if (result == null) 271 result = caseLocalizable(window); 272 if (result == null) 273 result = defaultCase(theEObject); 274 return result; 275 } 276 case BasicPackageImpl.TRIMMED_WINDOW: { 277 MTrimmedWindow trimmedWindow = (MTrimmedWindow) theEObject; 278 T1 result = caseTrimmedWindow(trimmedWindow); 279 if (result == null) 280 result = caseWindow(trimmedWindow); 281 if (result == null) 282 result = caseElementContainer(trimmedWindow); 283 if (result == null) 284 result = caseUILabel(trimmedWindow); 285 if (result == null) 286 result = caseContext(trimmedWindow); 287 if (result == null) 288 result = caseHandlerContainer(trimmedWindow); 289 if (result == null) 290 result = caseBindings(trimmedWindow); 291 if (result == null) 292 result = caseSnippetContainer(trimmedWindow); 293 if (result == null) 294 result = caseUIElement(trimmedWindow); 295 if (result == null) 296 result = caseApplicationElement(trimmedWindow); 297 if (result == null) 298 result = caseLocalizable(trimmedWindow); 299 if (result == null) 300 result = defaultCase(theEObject); 301 return result; 302 } 303 case BasicPackageImpl.TRIM_ELEMENT: { 304 MTrimElement trimElement = (MTrimElement) theEObject; 305 T1 result = caseTrimElement(trimElement); 306 if (result == null) 307 result = caseUIElement(trimElement); 308 if (result == null) 309 result = caseApplicationElement(trimElement); 310 if (result == null) 311 result = caseLocalizable(trimElement); 312 if (result == null) 313 result = defaultCase(theEObject); 314 return result; 315 } 316 case BasicPackageImpl.PART_SASH_CONTAINER_ELEMENT: { 317 MPartSashContainerElement partSashContainerElement = (MPartSashContainerElement) theEObject; 318 T1 result = casePartSashContainerElement(partSashContainerElement); 319 if (result == null) 320 result = caseUIElement(partSashContainerElement); 321 if (result == null) 322 result = caseApplicationElement(partSashContainerElement); 323 if (result == null) 324 result = caseLocalizable(partSashContainerElement); 325 if (result == null) 326 result = defaultCase(theEObject); 327 return result; 328 } 329 case BasicPackageImpl.WINDOW_ELEMENT: { 330 MWindowElement windowElement = (MWindowElement) theEObject; 331 T1 result = caseWindowElement(windowElement); 332 if (result == null) 333 result = caseUIElement(windowElement); 334 if (result == null) 335 result = caseApplicationElement(windowElement); 336 if (result == null) 337 result = caseLocalizable(windowElement); 338 if (result == null) 339 result = defaultCase(theEObject); 340 return result; 341 } 342 case BasicPackageImpl.TRIM_BAR: { 343 MTrimBar trimBar = (MTrimBar) theEObject; 344 T1 result = caseTrimBar(trimBar); 345 if (result == null) 346 result = caseGenericTrimContainer(trimBar); 347 if (result == null) 348 result = caseElementContainer(trimBar); 349 if (result == null) 350 result = caseUIElement(trimBar); 351 if (result == null) 352 result = caseApplicationElement(trimBar); 353 if (result == null) 354 result = caseLocalizable(trimBar); 355 if (result == null) 356 result = defaultCase(theEObject); 357 return result; 358 } 359 case BasicPackageImpl.STACK_ELEMENT: { 360 MStackElement stackElement = (MStackElement) theEObject; 361 T1 result = caseStackElement(stackElement); 362 if (result == null) 363 result = caseUIElement(stackElement); 364 if (result == null) 365 result = caseApplicationElement(stackElement); 366 if (result == null) 367 result = caseLocalizable(stackElement); 368 if (result == null) 369 result = defaultCase(theEObject); 370 return result; 371 } 372 default: 373 return defaultCase(theEObject); 374 } 375 } 376 377 /** 378 * Returns the result of interpreting the object as an instance of '<em>Part</em>'. 379 * <!-- begin-user-doc --> 380 * This implementation returns null; 381 * returning a non-null result will terminate the switch. 382 * <!-- end-user-doc --> 383 * @param object the target of the switch. 384 * @return the result of interpreting the object as an instance of '<em>Part</em>'. 385 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 386 * @since 1.0 387 * @generated 388 */ casePart(MPart object)389 public T1 casePart(MPart object) { 390 return null; 391 } 392 393 /** 394 * Returns the result of interpreting the object as an instance of '<em>Composite Part</em>'. 395 * <!-- begin-user-doc --> 396 * This implementation returns null; 397 * returning a non-null result will terminate the switch. 398 * <!-- end-user-doc --> 399 * @param object the target of the switch. 400 * @return the result of interpreting the object as an instance of '<em>Composite Part</em>'. 401 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 402 * @since 1.1 403 * @generated 404 */ caseCompositePart(MCompositePart object)405 public T1 caseCompositePart(MCompositePart object) { 406 return null; 407 } 408 409 /** 410 * Returns the result of interpreting the object as an instance of '<em>Input Part</em>'. 411 * <!-- begin-user-doc --> 412 * This implementation returns null; 413 * returning a non-null result will terminate the switch. 414 * <!-- end-user-doc --> 415 * @param object the target of the switch. 416 * @return the result of interpreting the object as an instance of '<em>Input Part</em>'. 417 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 418 * @since 1.0 419 * @deprecated See {@link MInputPart model documentation} for details. 420 * @noreference See {@link MInputPart model documentation} for details. 421 * @generated 422 */ 423 @Deprecated caseInputPart(MInputPart object)424 public T1 caseInputPart(MInputPart object) { 425 return null; 426 } 427 428 /** 429 * Returns the result of interpreting the object as an instance of '<em>Part Stack</em>'. 430 * <!-- begin-user-doc --> 431 * This implementation returns null; 432 * returning a non-null result will terminate the switch. 433 * <!-- end-user-doc --> 434 * @param object the target of the switch. 435 * @return the result of interpreting the object as an instance of '<em>Part Stack</em>'. 436 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 437 * @since 1.0 438 * @generated 439 */ casePartStack(MPartStack object)440 public T1 casePartStack(MPartStack object) { 441 return null; 442 } 443 444 /** 445 * Returns the result of interpreting the object as an instance of '<em>Part Sash Container</em>'. 446 * <!-- begin-user-doc --> 447 * This implementation returns null; 448 * returning a non-null result will terminate the switch. 449 * <!-- end-user-doc --> 450 * @param object the target of the switch. 451 * @return the result of interpreting the object as an instance of '<em>Part Sash Container</em>'. 452 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 453 * @since 1.0 454 * @generated 455 */ casePartSashContainer(MPartSashContainer object)456 public T1 casePartSashContainer(MPartSashContainer object) { 457 return null; 458 } 459 460 /** 461 * Returns the result of interpreting the object as an instance of '<em>Window</em>'. 462 * <!-- begin-user-doc --> 463 * This implementation returns null; 464 * returning a non-null result will terminate the switch. 465 * <!-- end-user-doc --> 466 * @param object the target of the switch. 467 * @return the result of interpreting the object as an instance of '<em>Window</em>'. 468 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 469 * @since 1.0 470 * @generated 471 */ caseWindow(MWindow object)472 public T1 caseWindow(MWindow object) { 473 return null; 474 } 475 476 /** 477 * Returns the result of interpreting the object as an instance of '<em>Trimmed Window</em>'. 478 * <!-- begin-user-doc --> 479 * This implementation returns null; 480 * returning a non-null result will terminate the switch. 481 * <!-- end-user-doc --> 482 * @param object the target of the switch. 483 * @return the result of interpreting the object as an instance of '<em>Trimmed Window</em>'. 484 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 485 * @since 1.0 486 * @generated 487 */ caseTrimmedWindow(MTrimmedWindow object)488 public T1 caseTrimmedWindow(MTrimmedWindow object) { 489 return null; 490 } 491 492 /** 493 * Returns the result of interpreting the object as an instance of '<em>Trim Element</em>'. 494 * <!-- begin-user-doc --> 495 * This implementation returns null; 496 * returning a non-null result will terminate the switch. 497 * <!-- end-user-doc --> 498 * @param object the target of the switch. 499 * @return the result of interpreting the object as an instance of '<em>Trim Element</em>'. 500 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 501 * @since 1.0 502 * @generated 503 */ caseTrimElement(MTrimElement object)504 public T1 caseTrimElement(MTrimElement object) { 505 return null; 506 } 507 508 /** 509 * Returns the result of interpreting the object as an instance of '<em>Part Sash Container Element</em>'. 510 * <!-- begin-user-doc --> 511 * This implementation returns null; 512 * returning a non-null result will terminate the switch. 513 * <!-- end-user-doc --> 514 * @param object the target of the switch. 515 * @return the result of interpreting the object as an instance of '<em>Part Sash Container Element</em>'. 516 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 517 * @since 1.0 518 * @generated 519 */ casePartSashContainerElement(MPartSashContainerElement object)520 public T1 casePartSashContainerElement(MPartSashContainerElement object) { 521 return null; 522 } 523 524 /** 525 * Returns the result of interpreting the object as an instance of '<em>Window Element</em>'. 526 * <!-- begin-user-doc --> 527 * This implementation returns null; 528 * returning a non-null result will terminate the switch. 529 * <!-- end-user-doc --> 530 * @param object the target of the switch. 531 * @return the result of interpreting the object as an instance of '<em>Window Element</em>'. 532 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 533 * @since 1.0 534 * @generated 535 */ caseWindowElement(MWindowElement object)536 public T1 caseWindowElement(MWindowElement object) { 537 return null; 538 } 539 540 /** 541 * Returns the result of interpreting the object as an instance of '<em>Trim Bar</em>'. 542 * <!-- begin-user-doc --> 543 * This implementation returns null; 544 * returning a non-null result will terminate the switch. 545 * <!-- end-user-doc --> 546 * @param object the target of the switch. 547 * @return the result of interpreting the object as an instance of '<em>Trim Bar</em>'. 548 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 549 * @since 1.0 550 * @generated 551 */ caseTrimBar(MTrimBar object)552 public T1 caseTrimBar(MTrimBar object) { 553 return null; 554 } 555 556 /** 557 * Returns the result of interpreting the object as an instance of '<em>Stack Element</em>'. 558 * <!-- begin-user-doc --> 559 * This implementation returns null; 560 * returning a non-null result will terminate the switch. 561 * <!-- end-user-doc --> 562 * @param object the target of the switch. 563 * @return the result of interpreting the object as an instance of '<em>Stack Element</em>'. 564 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 565 * @since 1.0 566 * @generated 567 */ caseStackElement(MStackElement object)568 public T1 caseStackElement(MStackElement object) { 569 return null; 570 } 571 572 /** 573 * Returns the result of interpreting the object as an instance of '<em>Element</em>'. 574 * <!-- begin-user-doc --> 575 * This implementation returns null; 576 * returning a non-null result will terminate the switch. 577 * <!-- end-user-doc --> 578 * @param object the target of the switch. 579 * @return the result of interpreting the object as an instance of '<em>Element</em>'. 580 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 581 * @since 1.0 582 * @generated 583 */ caseApplicationElement(MApplicationElement object)584 public T1 caseApplicationElement(MApplicationElement object) { 585 return null; 586 } 587 588 /** 589 * Returns the result of interpreting the object as an instance of '<em>Localizable</em>'. 590 * <!-- begin-user-doc --> 591 * This implementation returns null; 592 * returning a non-null result will terminate the switch. 593 * <!-- end-user-doc --> 594 * @param object the target of the switch. 595 * @return the result of interpreting the object as an instance of '<em>Localizable</em>'. 596 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 597 * @since 1.1 598 * @generated 599 */ caseLocalizable(MLocalizable object)600 public T1 caseLocalizable(MLocalizable object) { 601 return null; 602 } 603 604 /** 605 * Returns the result of interpreting the object as an instance of '<em>UI Element</em>'. 606 * <!-- begin-user-doc --> 607 * This implementation returns null; 608 * returning a non-null result will terminate the switch. 609 * <!-- end-user-doc --> 610 * @param object the target of the switch. 611 * @return the result of interpreting the object as an instance of '<em>UI Element</em>'. 612 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 613 * @since 1.0 614 * @generated 615 */ caseUIElement(MUIElement object)616 public T1 caseUIElement(MUIElement object) { 617 return null; 618 } 619 620 /** 621 * Returns the result of interpreting the object as an instance of '<em>Contribution</em>'. 622 * <!-- begin-user-doc --> 623 * This implementation returns null; 624 * returning a non-null result will terminate the switch. 625 * <!-- end-user-doc --> 626 * @param object the target of the switch. 627 * @return the result of interpreting the object as an instance of '<em>Contribution</em>'. 628 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 629 * @since 1.0 630 * @generated 631 */ caseContribution(MContribution object)632 public T1 caseContribution(MContribution object) { 633 return null; 634 } 635 636 /** 637 * Returns the result of interpreting the object as an instance of '<em>Context</em>'. 638 * <!-- begin-user-doc --> 639 * This implementation returns null; 640 * returning a non-null result will terminate the switch. 641 * <!-- end-user-doc --> 642 * @param object the target of the switch. 643 * @return the result of interpreting the object as an instance of '<em>Context</em>'. 644 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 645 * @since 1.0 646 * @generated 647 */ caseContext(MContext object)648 public T1 caseContext(MContext object) { 649 return null; 650 } 651 652 /** 653 * Returns the result of interpreting the object as an instance of '<em>UI Label</em>'. 654 * <!-- begin-user-doc --> 655 * This implementation returns null; 656 * returning a non-null result will terminate the switch. 657 * <!-- end-user-doc --> 658 * @param object the target of the switch. 659 * @return the result of interpreting the object as an instance of '<em>UI Label</em>'. 660 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 661 * @since 1.0 662 * @generated 663 */ caseUILabel(MUILabel object)664 public T1 caseUILabel(MUILabel object) { 665 return null; 666 } 667 668 /** 669 * Returns the result of interpreting the object as an instance of '<em>Handler Container</em>'. 670 * <!-- begin-user-doc --> 671 * This implementation returns null; 672 * returning a non-null result will terminate the switch. 673 * <!-- end-user-doc --> 674 * @param object the target of the switch. 675 * @return the result of interpreting the object as an instance of '<em>Handler Container</em>'. 676 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 677 * @since 1.0 678 * @generated 679 */ caseHandlerContainer(MHandlerContainer object)680 public T1 caseHandlerContainer(MHandlerContainer object) { 681 return null; 682 } 683 684 /** 685 * Returns the result of interpreting the object as an instance of '<em>Dirtyable</em>'. 686 * <!-- begin-user-doc --> 687 * This implementation returns null; 688 * returning a non-null result will terminate the switch. 689 * <!-- end-user-doc --> 690 * @param object the target of the switch. 691 * @return the result of interpreting the object as an instance of '<em>Dirtyable</em>'. 692 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 693 * @since 1.0 694 * @generated 695 */ caseDirtyable(MDirtyable object)696 public T1 caseDirtyable(MDirtyable object) { 697 return null; 698 } 699 700 /** 701 * Returns the result of interpreting the object as an instance of '<em>Bindings</em>'. 702 * <!-- begin-user-doc --> 703 * This implementation returns null; 704 * returning a non-null result will terminate the switch. 705 * <!-- end-user-doc --> 706 * @param object the target of the switch. 707 * @return the result of interpreting the object as an instance of '<em>Bindings</em>'. 708 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 709 * @since 1.0 710 * @generated 711 */ caseBindings(MBindings object)712 public T1 caseBindings(MBindings object) { 713 return null; 714 } 715 716 /** 717 * Returns the result of interpreting the object as an instance of '<em>Element Container</em>'. 718 * <!-- begin-user-doc --> 719 * This implementation returns null; 720 * returning a non-null result will terminate the switch. 721 * <!-- end-user-doc --> 722 * @param object the target of the switch. 723 * @return the result of interpreting the object as an instance of '<em>Element Container</em>'. 724 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 725 * @since 1.0 726 * @generated 727 */ caseElementContainer(MElementContainer<T> object)728 public <T extends MUIElement> T1 caseElementContainer(MElementContainer<T> object) { 729 return null; 730 } 731 732 /** 733 * Returns the result of interpreting the object as an instance of '<em>Generic Tile</em>'. 734 * <!-- begin-user-doc --> 735 * This implementation returns null; 736 * returning a non-null result will terminate the switch. 737 * <!-- end-user-doc --> 738 * @param object the target of the switch. 739 * @return the result of interpreting the object as an instance of '<em>Generic Tile</em>'. 740 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 741 * @since 1.0 742 * @generated 743 */ caseGenericTile(MGenericTile<T> object)744 public <T extends MUIElement> T1 caseGenericTile(MGenericTile<T> object) { 745 return null; 746 } 747 748 /** 749 * Returns the result of interpreting the object as an instance of '<em>Input</em>'. 750 * <!-- begin-user-doc --> 751 * This implementation returns null; 752 * returning a non-null result will terminate the switch. 753 * <!-- end-user-doc --> 754 * @param object the target of the switch. 755 * @return the result of interpreting the object as an instance of '<em>Input</em>'. 756 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 757 * @since 1.0 758 * @deprecated See {@link MInput model documentation} for details. 759 * @noreference See {@link MInput model documentation} for details. 760 * @generated 761 */ 762 @Deprecated caseInput(MInput object)763 public T1 caseInput(MInput object) { 764 return null; 765 } 766 767 /** 768 * Returns the result of interpreting the object as an instance of '<em>Generic Stack</em>'. 769 * <!-- begin-user-doc --> 770 * This implementation returns null; 771 * returning a non-null result will terminate the switch. 772 * <!-- end-user-doc --> 773 * @param object the target of the switch. 774 * @return the result of interpreting the object as an instance of '<em>Generic Stack</em>'. 775 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 776 * @since 1.0 777 * @generated 778 */ caseGenericStack(MGenericStack<T> object)779 public <T extends MUIElement> T1 caseGenericStack(MGenericStack<T> object) { 780 return null; 781 } 782 783 /** 784 * Returns the result of interpreting the object as an instance of '<em>Snippet Container</em>'. 785 * <!-- begin-user-doc --> 786 * This implementation returns null; 787 * returning a non-null result will terminate the switch. 788 * <!-- end-user-doc --> 789 * @param object the target of the switch. 790 * @return the result of interpreting the object as an instance of '<em>Snippet Container</em>'. 791 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 792 * @since 1.0 793 * @generated 794 */ caseSnippetContainer(MSnippetContainer object)795 public T1 caseSnippetContainer(MSnippetContainer object) { 796 return null; 797 } 798 799 /** 800 * Returns the result of interpreting the object as an instance of '<em>Generic Trim Container</em>'. 801 * <!-- begin-user-doc --> 802 * This implementation returns null; 803 * returning a non-null result will terminate the switch. 804 * <!-- end-user-doc --> 805 * @param object the target of the switch. 806 * @return the result of interpreting the object as an instance of '<em>Generic Trim Container</em>'. 807 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 808 * @since 1.0 809 * @generated 810 */ caseGenericTrimContainer(MGenericTrimContainer<T> object)811 public <T extends MUIElement> T1 caseGenericTrimContainer(MGenericTrimContainer<T> object) { 812 return null; 813 } 814 815 /** 816 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. 817 * <!-- begin-user-doc --> 818 * This implementation returns null; 819 * returning a non-null result will terminate the switch, but this is the last case anyway. 820 * <!-- end-user-doc --> 821 * @param object the target of the switch. 822 * @return the result of interpreting the object as an instance of '<em>EObject</em>'. 823 * @see #doSwitch(org.eclipse.emf.ecore.EObject) 824 * @generated 825 */ 826 @Override defaultCase(EObject object)827 public T1 defaultCase(EObject object) { 828 return null; 829 } 830 831 } //BasicSwitch 832