diff options
Diffstat (limited to 'plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di/src-spare/org/eclipse/papyrus/sashwindows/di/impl/TabFolderImpl.java')
-rw-r--r-- | plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di/src-spare/org/eclipse/papyrus/sashwindows/di/impl/TabFolderImpl.java | 172 |
1 files changed, 86 insertions, 86 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di/src-spare/org/eclipse/papyrus/sashwindows/di/impl/TabFolderImpl.java b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di/src-spare/org/eclipse/papyrus/sashwindows/di/impl/TabFolderImpl.java index 072132603ab..944db6b38de 100644 --- a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di/src-spare/org/eclipse/papyrus/sashwindows/di/impl/TabFolderImpl.java +++ b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di/src-spare/org/eclipse/papyrus/sashwindows/di/impl/TabFolderImpl.java @@ -1,86 +1,86 @@ -/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.core.sashwindows.di.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.papyrus.infra.core.sashwindows.di.DiFactory;
-import org.eclipse.papyrus.infra.core.sashwindows.di.DiPackage;
-import org.eclipse.papyrus.infra.core.sashwindows.di.PageRef;
-import org.eclipse.papyrus.infra.core.sashwindows.di.TabFolder;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Tab Folder</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.core.sashwindows.di.impl.TabFolderImpl#getChildren <em>Children</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TabFolderImpl extends AbstractPanelImpl implements TabFolder {
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated NOT
- */
- public void addPage(Object pageIdentifier) {
- PageRef newPage = DiFactory.eINSTANCE.createPageRef();
- newPage.setPageIdentifier(pageIdentifier);
- getChildren().add(newPage);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated NOT
- */
- public void removePage(int pageIndex) {
- getChildren().remove(pageIndex);
- }
-
- /**
- *
- * @see org.eclipse.papyrus.infra.core.sashwindows.di.TabFolder#movePage(int, int)
- *
- * @param oldIndex
- * @param newIndex
- * @generated NOT
- */
- public void movePage(int oldIndex, int newIndex) {
- int listSize = getChildren().size();
- if (newIndex >= listSize)
- {
- newIndex = listSize-1;
- }
- if (newIndex < 0)
- {
- newIndex = 0;
- }
-
- if (oldIndex == newIndex)
- return;
-
- if( listSize == 0)
- return;
-
-
- getChildren().move(newIndex, oldIndex);
- }
-
-} //TabFolderImpl
+/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.core.sashwindows.di.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.infra.core.sashwindows.di.DiFactory; +import org.eclipse.papyrus.infra.core.sashwindows.di.DiPackage; +import org.eclipse.papyrus.infra.core.sashwindows.di.PageRef; +import org.eclipse.papyrus.infra.core.sashwindows.di.TabFolder; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Tab Folder</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.core.sashwindows.di.impl.TabFolderImpl#getChildren <em>Children</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TabFolderImpl extends AbstractPanelImpl implements TabFolder { + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + public void addPage(Object pageIdentifier) { + PageRef newPage = DiFactory.eINSTANCE.createPageRef(); + newPage.setPageIdentifier(pageIdentifier); + getChildren().add(newPage); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + public void removePage(int pageIndex) { + getChildren().remove(pageIndex); + } + + /** + * + * @see org.eclipse.papyrus.infra.core.sashwindows.di.TabFolder#movePage(int, int) + * + * @param oldIndex + * @param newIndex + * @generated NOT + */ + public void movePage(int oldIndex, int newIndex) { + int listSize = getChildren().size(); + if (newIndex >= listSize) + { + newIndex = listSize-1; + } + if (newIndex < 0) + { + newIndex = 0; + } + + if (oldIndex == newIndex) + return; + + if( listSize == 0) + return; + + + getChildren().move(newIndex, oldIndex); + } + +} //TabFolderImpl |