| /** |
| * Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * 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: |
| * Florian Pirchner - Initial implementation |
| */ |
| package org.eclipse.osbp.mobile.vaadin.ecview.model.impl; |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.emf.ecore.EPackage; |
| |
| import org.eclipse.emf.ecore.impl.EFactoryImpl; |
| |
| import org.eclipse.emf.ecore.plugin.EcorePlugin; |
| |
| import org.eclipse.osbp.mobile.vaadin.ecview.model.*; |
| |
| // TODO: Auto-generated Javadoc |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model <b>Factory</b>. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class VaadinMobileFactoryImpl extends EFactoryImpl implements VaadinMobileFactory { |
| |
| /** |
| * Creates the default factory implementation. |
| * <!-- begin-user-doc --> <!-- |
| * end-user-doc --> |
| * @generated |
| */ |
| public static VaadinMobileFactory init() { |
| try { |
| VaadinMobileFactory theVaadinMobileFactory = (VaadinMobileFactory)EPackage.Registry.INSTANCE.getEFactory(VaadinMobilePackage.eNS_URI); |
| if (theVaadinMobileFactory != null) { |
| return theVaadinMobileFactory; |
| } |
| } |
| catch (Exception exception) { |
| EcorePlugin.INSTANCE.log(exception); |
| } |
| return new VaadinMobileFactoryImpl(); |
| } |
| |
| /** |
| * Creates an instance of the factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public VaadinMobileFactoryImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @param eClass |
| * the e class |
| * @return the e object |
| * @generated |
| */ |
| @Override |
| public EObject create(EClass eClass) { |
| switch (eClass.getClassifierID()) { |
| case VaadinMobilePackage.VM_HORIZONTAL_BUTTON_GROUP: return createVMHorizontalButtonGroup(); |
| case VaadinMobilePackage.VM_SWITCH: return createVMSwitch(); |
| case VaadinMobilePackage.VM_VERTICAL_COMPONENT_GROUP: return createVMVerticalComponentGroup(); |
| case VaadinMobilePackage.VM_TAB_SHEET: return createVMTabSheet(); |
| case VaadinMobilePackage.VM_TAB: return createVMTab(); |
| case VaadinMobilePackage.VM_NAVIGATION_PAGE: return createVMNavigationPage(); |
| case VaadinMobilePackage.VM_NAVIGATION_PAGE_CELL_STYLE: return createVMNavigationPageCellStyle(); |
| case VaadinMobilePackage.VM_NAVIGATION_BUTTON: return createVMNavigationButton(); |
| case VaadinMobilePackage.VM_NAVIGATION_COMMAND: return createVMNavigationCommand(); |
| case VaadinMobilePackage.VM_SEARCH_PANEL: return createVMSearchPanel(); |
| case VaadinMobilePackage.VM_NAVIGATION_ROOT: return createVMNavigationRoot(); |
| case VaadinMobilePackage.VM_NAVIGATION_BAR_BUTTON: return createVMNavigationBarButton(); |
| default: |
| throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the VM horizontal button group |
| * @generated |
| */ |
| public VMHorizontalButtonGroup createVMHorizontalButtonGroup() { |
| VMHorizontalButtonGroupImpl vmHorizontalButtonGroup = new VMHorizontalButtonGroupImpl(); |
| return vmHorizontalButtonGroup; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the VM switch |
| * @generated |
| */ |
| public VMSwitch createVMSwitch() { |
| VMSwitchImpl vmSwitch = new VMSwitchImpl(); |
| return vmSwitch; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the VM vertical component group |
| * @generated |
| */ |
| public VMVerticalComponentGroup createVMVerticalComponentGroup() { |
| VMVerticalComponentGroupImpl vmVerticalComponentGroup = new VMVerticalComponentGroupImpl(); |
| return vmVerticalComponentGroup; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the VM tab sheet |
| * @generated |
| */ |
| public VMTabSheet createVMTabSheet() { |
| VMTabSheetImpl vmTabSheet = new VMTabSheetImpl(); |
| return vmTabSheet; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the VM tab |
| * @generated |
| */ |
| public VMTab createVMTab() { |
| VMTabImpl vmTab = new VMTabImpl(); |
| return vmTab; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the VM navigation page |
| * @generated |
| */ |
| public VMNavigationPage createVMNavigationPage() { |
| VMNavigationPageImpl vmNavigationPage = new VMNavigationPageImpl(); |
| return vmNavigationPage; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the VM navigation page cell style |
| * @generated |
| */ |
| public VMNavigationPageCellStyle createVMNavigationPageCellStyle() { |
| VMNavigationPageCellStyleImpl vmNavigationPageCellStyle = new VMNavigationPageCellStyleImpl(); |
| return vmNavigationPageCellStyle; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the VM navigation button |
| * @generated |
| */ |
| public VMNavigationButton createVMNavigationButton() { |
| VMNavigationButtonImpl vmNavigationButton = new VMNavigationButtonImpl(); |
| return vmNavigationButton; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the VM navigation command |
| * @generated |
| */ |
| public VMNavigationCommand createVMNavigationCommand() { |
| VMNavigationCommandImpl vmNavigationCommand = new VMNavigationCommandImpl(); |
| return vmNavigationCommand; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the VM search panel |
| * @generated |
| */ |
| public VMSearchPanel createVMSearchPanel() { |
| VMSearchPanelImpl vmSearchPanel = new VMSearchPanelImpl(); |
| return vmSearchPanel; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the VM navigation root |
| * @generated |
| */ |
| public VMNavigationRoot createVMNavigationRoot() { |
| VMNavigationRootImpl vmNavigationRoot = new VMNavigationRootImpl(); |
| return vmNavigationRoot; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the VM navigation bar button |
| * @generated |
| */ |
| public VMNavigationBarButton createVMNavigationBarButton() { |
| VMNavigationBarButtonImpl vmNavigationBarButton = new VMNavigationBarButtonImpl(); |
| return vmNavigationBarButton; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the vaadin mobile package |
| * @generated |
| */ |
| public VaadinMobilePackage getVaadinMobilePackage() { |
| return (VaadinMobilePackage)getEPackage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the package |
| * @deprecated |
| * @generated |
| */ |
| @Deprecated |
| public static VaadinMobilePackage getPackage() { |
| return VaadinMobilePackage.eINSTANCE; |
| } |
| |
| } //VaadinMobileFactoryImpl |