diff options
Diffstat (limited to 'org.eclipse.osbp.ecview.dsl/src/org/eclipse/osbp/ecview/semantic/uimodel/impl/UiHorizontalLayoutImpl.java')
-rw-r--r-- | org.eclipse.osbp.ecview.dsl/src/org/eclipse/osbp/ecview/semantic/uimodel/impl/UiHorizontalLayoutImpl.java | 60 |
1 files changed, 58 insertions, 2 deletions
diff --git a/org.eclipse.osbp.ecview.dsl/src/org/eclipse/osbp/ecview/semantic/uimodel/impl/UiHorizontalLayoutImpl.java b/org.eclipse.osbp.ecview.dsl/src/org/eclipse/osbp/ecview/semantic/uimodel/impl/UiHorizontalLayoutImpl.java index 1a81d38..80f968a 100644 --- a/org.eclipse.osbp.ecview.dsl/src/org/eclipse/osbp/ecview/semantic/uimodel/impl/UiHorizontalLayoutImpl.java +++ b/org.eclipse.osbp.ecview.dsl/src/org/eclipse/osbp/ecview/semantic/uimodel/impl/UiHorizontalLayoutImpl.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 @@ -48,6 +50,7 @@ import org.eclipse.osbp.ecview.semantic.uimodel.UiRawBindable; * <li>{@link org.eclipse.osbp.ecview.semantic.uimodel.impl.UiHorizontalLayoutImpl#getStyles <em>Styles</em>}</li> * <li>{@link org.eclipse.osbp.ecview.semantic.uimodel.impl.UiHorizontalLayoutImpl#isAutowire <em>Autowire</em>}</li> * <li>{@link org.eclipse.osbp.ecview.semantic.uimodel.impl.UiHorizontalLayoutImpl#getAutoWireSource <em>Auto Wire Source</em>}</li> + * <li>{@link org.eclipse.osbp.ecview.semantic.uimodel.impl.UiHorizontalLayoutImpl#getNumberColumns <em>Number Columns</em>}</li> * <li>{@link org.eclipse.osbp.ecview.semantic.uimodel.impl.UiHorizontalLayoutImpl#getContents <em>Contents</em>}</li> * </ul> * @@ -205,6 +208,26 @@ public class UiHorizontalLayoutImpl extends UiVisibilityProcessableImpl implemen 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 --> @@ -442,6 +465,27 @@ public class UiHorizontalLayoutImpl extends UiVisibilityProcessableImpl implemen * <!-- 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_HORIZONTAL_LAYOUT__NUMBER_COLUMNS, oldNumberColumns, numberColumns)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ public UiI18nInfo getI18nInfo() { if (i18nInfo != null && i18nInfo.eIsProxy()) { InternalEObject oldI18nInfo = (InternalEObject)i18nInfo; @@ -563,6 +607,8 @@ public class UiHorizontalLayoutImpl extends UiVisibilityProcessableImpl implemen case UiModelPackage.UI_HORIZONTAL_LAYOUT__AUTO_WIRE_SOURCE: if (resolve) return getAutoWireSource(); return basicGetAutoWireSource(); + case UiModelPackage.UI_HORIZONTAL_LAYOUT__NUMBER_COLUMNS: + return getNumberColumns(); case UiModelPackage.UI_HORIZONTAL_LAYOUT__CONTENTS: return getContents(); } @@ -606,6 +652,9 @@ public class UiHorizontalLayoutImpl extends UiVisibilityProcessableImpl implemen case UiModelPackage.UI_HORIZONTAL_LAYOUT__AUTO_WIRE_SOURCE: setAutoWireSource((UiBindingExpression)newValue); return; + case UiModelPackage.UI_HORIZONTAL_LAYOUT__NUMBER_COLUMNS: + setNumberColumns((Integer)newValue); + return; case UiModelPackage.UI_HORIZONTAL_LAYOUT__CONTENTS: getContents().clear(); getContents().addAll((Collection<? extends UiHorizontalLayoutAssigment>)newValue); @@ -649,6 +698,9 @@ public class UiHorizontalLayoutImpl extends UiVisibilityProcessableImpl implemen case UiModelPackage.UI_HORIZONTAL_LAYOUT__AUTO_WIRE_SOURCE: setAutoWireSource((UiBindingExpression)null); return; + case UiModelPackage.UI_HORIZONTAL_LAYOUT__NUMBER_COLUMNS: + setNumberColumns(NUMBER_COLUMNS_EDEFAULT); + return; case UiModelPackage.UI_HORIZONTAL_LAYOUT__CONTENTS: getContents().clear(); return; @@ -682,6 +734,8 @@ public class UiHorizontalLayoutImpl extends UiVisibilityProcessableImpl implemen return autowire != AUTOWIRE_EDEFAULT; case UiModelPackage.UI_HORIZONTAL_LAYOUT__AUTO_WIRE_SOURCE: return autoWireSource != null; + case UiModelPackage.UI_HORIZONTAL_LAYOUT__NUMBER_COLUMNS: + return numberColumns != NUMBER_COLUMNS_EDEFAULT; case UiModelPackage.UI_HORIZONTAL_LAYOUT__CONTENTS: return contents != null && !contents.isEmpty(); } @@ -786,6 +840,8 @@ public class UiHorizontalLayoutImpl extends UiVisibilityProcessableImpl implemen result.append(styles); result.append(", autowire: "); result.append(autowire); + result.append(", numberColumns: "); + result.append(numberColumns); result.append(')'); return result.toString(); } |