diff options
Diffstat (limited to 'org.eclipse.osbp.ecview.dsl/src/org/eclipse/osbp/ecview/semantic/uimodel/impl/UiMobileNavigationRootImpl.java')
-rw-r--r-- | org.eclipse.osbp.ecview.dsl/src/org/eclipse/osbp/ecview/semantic/uimodel/impl/UiMobileNavigationRootImpl.java | 62 |
1 files changed, 60 insertions, 2 deletions
diff --git a/org.eclipse.osbp.ecview.dsl/src/org/eclipse/osbp/ecview/semantic/uimodel/impl/UiMobileNavigationRootImpl.java b/org.eclipse.osbp.ecview.dsl/src/org/eclipse/osbp/ecview/semantic/uimodel/impl/UiMobileNavigationRootImpl.java index c1774dd..5fd9e34 100644 --- a/org.eclipse.osbp.ecview.dsl/src/org/eclipse/osbp/ecview/semantic/uimodel/impl/UiMobileNavigationRootImpl.java +++ b/org.eclipse.osbp.ecview.dsl/src/org/eclipse/osbp/ecview/semantic/uimodel/impl/UiMobileNavigationRootImpl.java @@ -1,9 +1,11 @@ /** * 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 + * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Florian Pirchner - Initial implementation @@ -54,6 +56,7 @@ import org.eclipse.osbp.ecview.semantic.uimodel.UiRawBindable; * <li>{@link org.eclipse.osbp.ecview.semantic.uimodel.impl.UiMobileNavigationRootImpl#getStyles <em>Styles</em>}</li> * <li>{@link org.eclipse.osbp.ecview.semantic.uimodel.impl.UiMobileNavigationRootImpl#isAutowire <em>Autowire</em>}</li> * <li>{@link org.eclipse.osbp.ecview.semantic.uimodel.impl.UiMobileNavigationRootImpl#getAutoWireSource <em>Auto Wire Source</em>}</li> + * <li>{@link org.eclipse.osbp.ecview.semantic.uimodel.impl.UiMobileNavigationRootImpl#getNumberColumns <em>Number Columns</em>}</li> * <li>{@link org.eclipse.osbp.ecview.semantic.uimodel.impl.UiMobileNavigationRootImpl#getContents <em>Contents</em>}</li> * </ul> * @@ -211,6 +214,26 @@ public class UiMobileNavigationRootImpl extends UiVisibilityProcessableImpl impl protected UiBindingExpression autoWireSource; /** + * The default value of the '{@link #getNumberColumns() <em>Number Columns</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNumberColumns() + * @generated + * @ordered + */ + protected static final int NUMBER_COLUMNS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getNumberColumns() <em>Number Columns</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNumberColumns() + * @generated + * @ordered + */ + protected int numberColumns = NUMBER_COLUMNS_EDEFAULT; + + /** * The cached value of the '{@link #getContents() <em>Contents</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> @@ -514,6 +537,27 @@ public class UiMobileNavigationRootImpl extends UiVisibilityProcessableImpl impl * <!-- end-user-doc --> * @generated */ + public int getNumberColumns() { + return numberColumns; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setNumberColumns(int newNumberColumns) { + int oldNumberColumns = numberColumns; + numberColumns = newNumberColumns; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__NUMBER_COLUMNS, oldNumberColumns, numberColumns)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ public EList<UiMobileNavigationRootAssigment> getContents() { if (contents == null) { contents = new EObjectContainmentEList.Resolving<UiMobileNavigationRootAssigment>(UiMobileNavigationRootAssigment.class, this, UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__CONTENTS); @@ -569,6 +613,8 @@ public class UiMobileNavigationRootImpl extends UiVisibilityProcessableImpl impl case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__AUTO_WIRE_SOURCE: if (resolve) return getAutoWireSource(); return basicGetAutoWireSource(); + case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__NUMBER_COLUMNS: + return getNumberColumns(); case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__CONTENTS: return getContents(); } @@ -612,6 +658,9 @@ public class UiMobileNavigationRootImpl extends UiVisibilityProcessableImpl impl case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__AUTO_WIRE_SOURCE: setAutoWireSource((UiBindingExpression)newValue); return; + case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__NUMBER_COLUMNS: + setNumberColumns((Integer)newValue); + return; case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__CONTENTS: getContents().clear(); getContents().addAll((Collection<? extends UiMobileNavigationRootAssigment>)newValue); @@ -655,6 +704,9 @@ public class UiMobileNavigationRootImpl extends UiVisibilityProcessableImpl impl case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__AUTO_WIRE_SOURCE: setAutoWireSource((UiBindingExpression)null); return; + case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__NUMBER_COLUMNS: + setNumberColumns(NUMBER_COLUMNS_EDEFAULT); + return; case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__CONTENTS: getContents().clear(); return; @@ -688,6 +740,8 @@ public class UiMobileNavigationRootImpl extends UiVisibilityProcessableImpl impl return autowire != AUTOWIRE_EDEFAULT; case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__AUTO_WIRE_SOURCE: return autoWireSource != null; + case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__NUMBER_COLUMNS: + return numberColumns != NUMBER_COLUMNS_EDEFAULT; case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__CONTENTS: return contents != null && !contents.isEmpty(); } @@ -723,6 +777,7 @@ public class UiMobileNavigationRootImpl extends UiVisibilityProcessableImpl impl switch (derivedFeatureID) { case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__AUTOWIRE: return UiModelPackage.UI_LAYOUT__AUTOWIRE; case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__AUTO_WIRE_SOURCE: return UiModelPackage.UI_LAYOUT__AUTO_WIRE_SOURCE; + case UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__NUMBER_COLUMNS: return UiModelPackage.UI_LAYOUT__NUMBER_COLUMNS; default: return -1; } } @@ -763,6 +818,7 @@ public class UiMobileNavigationRootImpl extends UiVisibilityProcessableImpl impl switch (baseFeatureID) { case UiModelPackage.UI_LAYOUT__AUTOWIRE: return UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__AUTOWIRE; case UiModelPackage.UI_LAYOUT__AUTO_WIRE_SOURCE: return UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__AUTO_WIRE_SOURCE; + case UiModelPackage.UI_LAYOUT__NUMBER_COLUMNS: return UiModelPackage.UI_MOBILE_NAVIGATION_ROOT__NUMBER_COLUMNS; default: return -1; } } @@ -796,6 +852,8 @@ public class UiMobileNavigationRootImpl extends UiVisibilityProcessableImpl impl result.append(styles); result.append(", autowire: "); result.append(autowire); + result.append(", numberColumns: "); + result.append(numberColumns); result.append(')'); return result.toString(); } |