diff options
Diffstat (limited to 'plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra')
81 files changed, 20819 insertions, 0 deletions
diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/Context.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/Context.java new file mode 100644 index 00000000000..c25b7d822b4 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/Context.java @@ -0,0 +1,214 @@ +/***************************************************************************** + * Copyright (c) 2011, 2015 CEA LIST, Christian W. Damus, and others. + * + * 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: + * CEA LIST - Initial API and implementation + * Christian W. Damus - add prototype reference to Context (CDO) + * Christian W. Damus - bug 482927 + *****************************************************************************/ +package org.eclipse.papyrus.infra.properties.contexts; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EModelElement; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Context</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Context#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Context#getDependencies <em>Dependencies</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Context#getTabs <em>Tabs</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Context#getViews <em>Views</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Context#getDataContexts <em>Data Contexts</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Context#getPrototype <em>Prototype</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Context#getLabel <em>Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Context#getUserLabel <em>User Label</em>}</li> + * </ul> + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getContext() + * @model + * @generated + */ +public interface Context extends EModelElement { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * An unique name for the context, which is used in various components to + * identify it. + * <!-- end-model-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getContext_Name() + * @model required="true" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Context#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Dependencies</b></em>' reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.contexts.Context}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Dependencies</em>' reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Dependencies</em>' reference list. + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getContext_Dependencies() + * @model ordered="false" + * @generated + */ + EList<Context> getDependencies(); + + /** + * Returns the value of the '<em><b>Tabs</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.contexts.Tab}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tabs</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Tabs</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getContext_Tabs() + * @model containment="true" + * @generated + */ + EList<Tab> getTabs(); + + /** + * Returns the value of the '<em><b>Views</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.contexts.View}. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.infra.properties.contexts.View#getContext <em>Context</em>}'. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Views</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Views</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getContext_Views() + * @see org.eclipse.papyrus.infra.properties.contexts.View#getContext + * @model opposite="context" containment="true" + * @generated + */ + EList<View> getViews(); + + /** + * Returns the value of the '<em><b>Data Contexts</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.contexts.DataContextRoot}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Data Contexts</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Data Contexts</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getContext_DataContexts() + * @model containment="true" + * @generated + */ + EList<DataContextRoot> getDataContexts(); + + /** + * Returns the value of the '<em><b>Prototype</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * References the context from which a context was copied. The context manager caches the prototype reference so that it can enable a prototype when the copied context is not available. + * <!-- end-model-doc --> + * + * @return the value of the '<em>Prototype</em>' reference. + * @see #setPrototype(Context) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getContext_Prototype() + * @model + * @generated + */ + Context getPrototype(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Context#getPrototype <em>Prototype</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Prototype</em>' reference. + * @see #getPrototype() + * @generated + */ + void setPrototype(Context value); + + /** + * Returns the value of the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * A potentially translatable (localizable) label for presentation of the context + * in the user interface. If absent, the name should be used in its place. + * <!-- end-model-doc --> + * + * @return the value of the '<em>Label</em>' attribute. + * @see #setLabel(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getContext_Label() + * @model + * @generated + */ + String getLabel(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Context#getLabel <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Label</em>' attribute. + * @see #getLabel() + * @generated + */ + void setLabel(String value); + + /** + * Returns the value of the '<em><b>User Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * A computed label for presentation to the user: the label, if available, otherwise + * just the name of the context. + * <!-- end-model-doc --> + * + * @return the value of the '<em>User Label</em>' attribute. + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getContext_UserLabel() + * @model required="true" transient="true" changeable="false" volatile="true" derived="true" + * @generated + */ + String getUserLabel(); + +} // Context diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/ContextsFactory.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/ContextsFactory.java new file mode 100644 index 00000000000..5527b5275a3 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/ContextsFactory.java @@ -0,0 +1,130 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage + * @generated + */ +public interface ContextsFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + ContextsFactory eINSTANCE = org.eclipse.papyrus.infra.properties.contexts.impl.ContextsFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Context</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Context</em>'. + * @generated + */ + Context createContext(); + + /** + * Returns a new object of class '<em>Tab</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Tab</em>'. + * @generated + */ + Tab createTab(); + + /** + * Returns a new object of class '<em>View</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>View</em>'. + * @generated + */ + View createView(); + + /** + * Returns a new object of class '<em>Section</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Section</em>'. + * @generated + */ + Section createSection(); + + /** + * Returns a new object of class '<em>Data Context Element</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Data Context Element</em>'. + * @generated + */ + DataContextElement createDataContextElement(); + + /** + * Returns a new object of class '<em>Property</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Property</em>'. + * @generated + */ + Property createProperty(); + + /** + * Returns a new object of class '<em>Unknown Property</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Unknown Property</em>'. + * @generated + */ + UnknownProperty createUnknownProperty(); + + /** + * Returns a new object of class '<em>Data Context Package</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Data Context Package</em>'. + * @generated + */ + DataContextPackage createDataContextPackage(); + + /** + * Returns a new object of class '<em>Data Context Root</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Data Context Root</em>'. + * @generated + */ + DataContextRoot createDataContextRoot(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the package supported by this factory. + * @generated + */ + ContextsPackage getContextsPackage(); + +} // ContextsFactory diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/ContextsPackage.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/ContextsPackage.java new file mode 100644 index 00000000000..a573c34f2b6 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/ContextsPackage.java @@ -0,0 +1,1870 @@ +/***************************************************************************** + * Copyright (c) 2011, 2015 CEA LIST, Christian W. Damus, and others. + * + * 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: + * CEA LIST - Initial API and implementation + * Christian W. Damus - add prototype reference to Context (CDO) + * Christian W. Damus - bug 482927 + *****************************************************************************/ +package org.eclipse.papyrus.infra.properties.contexts; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.papyrus.infra.constraints.ConstraintsPackage; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsFactory + * @model kind="package" + * @generated + */ +public interface ContextsPackage extends EPackage { + + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + String eNAME = "contexts"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/properties/contexts/0.9"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + String eNS_PREFIX = "contexts"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + ContextsPackage eINSTANCE = org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.ContextImpl <em>Context</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getContext() + * @generated + */ + int CONTEXT = 0; + + /** + * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CONTEXT__EANNOTATIONS = EcorePackage.EMODEL_ELEMENT__EANNOTATIONS; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CONTEXT__NAME = EcorePackage.EMODEL_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Dependencies</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CONTEXT__DEPENDENCIES = EcorePackage.EMODEL_ELEMENT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Tabs</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CONTEXT__TABS = EcorePackage.EMODEL_ELEMENT_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Views</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CONTEXT__VIEWS = EcorePackage.EMODEL_ELEMENT_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Data Contexts</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CONTEXT__DATA_CONTEXTS = EcorePackage.EMODEL_ELEMENT_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Prototype</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CONTEXT__PROTOTYPE = EcorePackage.EMODEL_ELEMENT_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CONTEXT__LABEL = EcorePackage.EMODEL_ELEMENT_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>User Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CONTEXT__USER_LABEL = EcorePackage.EMODEL_ELEMENT_FEATURE_COUNT + 7; + + /** + * The number of structural features of the '<em>Context</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CONTEXT_FEATURE_COUNT = EcorePackage.EMODEL_ELEMENT_FEATURE_COUNT + 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.TabImpl <em>Tab</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.TabImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getTab() + * @generated + */ + int TAB = 1; + + /** + * The feature id for the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int TAB__LABEL = 0; + + /** + * The feature id for the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int TAB__ID = 1; + + /** + * The feature id for the '<em><b>Category</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int TAB__CATEGORY = 2; + + /** + * The feature id for the '<em><b>Image</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int TAB__IMAGE = 3; + + /** + * The feature id for the '<em><b>After Tab</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int TAB__AFTER_TAB = 4; + + /** + * The feature id for the '<em><b>Sections</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int TAB__SECTIONS = 5; + + /** + * The feature id for the '<em><b>Indented</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int TAB__INDENTED = 6; + + /** + * The feature id for the '<em><b>Priority</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int TAB__PRIORITY = 7; + + /** + * The number of structural features of the '<em>Tab</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int TAB_FEATURE_COUNT = 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.ViewImpl <em>View</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ViewImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getView() + * @generated + */ + int VIEW = 2; + + /** + * The feature id for the '<em><b>Constraints</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VIEW__CONSTRAINTS = ConstraintsPackage.DISPLAY_UNIT__CONSTRAINTS; + + /** + * The feature id for the '<em><b>Element Multiplicity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VIEW__ELEMENT_MULTIPLICITY = ConstraintsPackage.DISPLAY_UNIT__ELEMENT_MULTIPLICITY; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VIEW__NAME = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Sections</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VIEW__SECTIONS = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Context</b></em>' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VIEW__CONTEXT = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Automatic Context</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VIEW__AUTOMATIC_CONTEXT = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Datacontexts</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VIEW__DATACONTEXTS = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 4; + + /** + * The number of structural features of the '<em>View</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VIEW_FEATURE_COUNT = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.SectionImpl <em>Section</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.SectionImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getSection() + * @generated + */ + int SECTION = 3; + + /** + * The feature id for the '<em><b>Constraints</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SECTION__CONSTRAINTS = ConstraintsPackage.DISPLAY_UNIT__CONSTRAINTS; + + /** + * The feature id for the '<em><b>Element Multiplicity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SECTION__ELEMENT_MULTIPLICITY = ConstraintsPackage.DISPLAY_UNIT__ELEMENT_MULTIPLICITY; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SECTION__NAME = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Tab</b></em>' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SECTION__TAB = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Section File</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SECTION__SECTION_FILE = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Widget</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SECTION__WIDGET = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 3; + + /** + * The number of structural features of the '<em>Section</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SECTION_FEATURE_COUNT = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextElementImpl <em>Data Context Element</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.DataContextElementImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getDataContextElement() + * @generated + */ + int DATA_CONTEXT_ELEMENT = 4; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ELEMENT__NAME = 0; + + /** + * The feature id for the '<em><b>Properties</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ELEMENT__PROPERTIES = 1; + + /** + * The feature id for the '<em><b>Package</b></em>' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ELEMENT__PACKAGE = 2; + + /** + * The feature id for the '<em><b>Supertypes</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ELEMENT__SUPERTYPES = 3; + + /** + * The number of structural features of the '<em>Data Context Element</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ELEMENT_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.PropertyImpl <em>Property</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.PropertyImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getProperty() + * @generated + */ + int PROPERTY = 5; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY__NAME = 0; + + /** + * The feature id for the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY__LABEL = 1; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY__TYPE = 2; + + /** + * The feature id for the '<em><b>Context Element</b></em>' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY__CONTEXT_ELEMENT = 3; + + /** + * The feature id for the '<em><b>Multiplicity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY__MULTIPLICITY = 4; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY__DESCRIPTION = 5; + + /** + * The number of structural features of the '<em>Property</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_FEATURE_COUNT = 6; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.UnknownPropertyImpl <em>Unknown Property</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.UnknownPropertyImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getUnknownProperty() + * @generated + */ + int UNKNOWN_PROPERTY = 6; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int UNKNOWN_PROPERTY__NAME = PROPERTY__NAME; + + /** + * The feature id for the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int UNKNOWN_PROPERTY__LABEL = PROPERTY__LABEL; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int UNKNOWN_PROPERTY__TYPE = PROPERTY__TYPE; + + /** + * The feature id for the '<em><b>Context Element</b></em>' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int UNKNOWN_PROPERTY__CONTEXT_ELEMENT = PROPERTY__CONTEXT_ELEMENT; + + /** + * The feature id for the '<em><b>Multiplicity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int UNKNOWN_PROPERTY__MULTIPLICITY = PROPERTY__MULTIPLICITY; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int UNKNOWN_PROPERTY__DESCRIPTION = PROPERTY__DESCRIPTION; + + /** + * The number of structural features of the '<em>Unknown Property</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int UNKNOWN_PROPERTY_FEATURE_COUNT = PROPERTY_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextPackageImpl <em>Data Context Package</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.DataContextPackageImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getDataContextPackage() + * @generated + */ + int DATA_CONTEXT_PACKAGE = 7; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_PACKAGE__NAME = DATA_CONTEXT_ELEMENT__NAME; + + /** + * The feature id for the '<em><b>Properties</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_PACKAGE__PROPERTIES = DATA_CONTEXT_ELEMENT__PROPERTIES; + + /** + * The feature id for the '<em><b>Package</b></em>' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_PACKAGE__PACKAGE = DATA_CONTEXT_ELEMENT__PACKAGE; + + /** + * The feature id for the '<em><b>Supertypes</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_PACKAGE__SUPERTYPES = DATA_CONTEXT_ELEMENT__SUPERTYPES; + + /** + * The feature id for the '<em><b>Elements</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_PACKAGE__ELEMENTS = DATA_CONTEXT_ELEMENT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Data Context Package</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_PACKAGE_FEATURE_COUNT = DATA_CONTEXT_ELEMENT_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextRootImpl <em>Data Context Root</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.DataContextRootImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getDataContextRoot() + * @generated + */ + int DATA_CONTEXT_ROOT = 8; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ROOT__NAME = DATA_CONTEXT_PACKAGE__NAME; + + /** + * The feature id for the '<em><b>Properties</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ROOT__PROPERTIES = DATA_CONTEXT_PACKAGE__PROPERTIES; + + /** + * The feature id for the '<em><b>Package</b></em>' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ROOT__PACKAGE = DATA_CONTEXT_PACKAGE__PACKAGE; + + /** + * The feature id for the '<em><b>Supertypes</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ROOT__SUPERTYPES = DATA_CONTEXT_PACKAGE__SUPERTYPES; + + /** + * The feature id for the '<em><b>Elements</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ROOT__ELEMENTS = DATA_CONTEXT_PACKAGE__ELEMENTS; + + /** + * The feature id for the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ROOT__LABEL = DATA_CONTEXT_PACKAGE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Model Element Factory</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ROOT__MODEL_ELEMENT_FACTORY = DATA_CONTEXT_PACKAGE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Data Context Root</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DATA_CONTEXT_ROOT_FEATURE_COUNT = DATA_CONTEXT_PACKAGE_FEATURE_COUNT + 2; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.contexts.Context <em>Context</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Context</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Context + * @generated + */ + EClass getContext(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Context#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Context#getName() + * @see #getContext() + * @generated + */ + EAttribute getContext_Name(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.infra.properties.contexts.Context#getDependencies <em>Dependencies</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference list '<em>Dependencies</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Context#getDependencies() + * @see #getContext() + * @generated + */ + EReference getContext_Dependencies(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.contexts.Context#getTabs <em>Tabs</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Tabs</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Context#getTabs() + * @see #getContext() + * @generated + */ + EReference getContext_Tabs(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.contexts.Context#getViews <em>Views</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Views</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Context#getViews() + * @see #getContext() + * @generated + */ + EReference getContext_Views(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.contexts.Context#getDataContexts <em>Data Contexts</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Data Contexts</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Context#getDataContexts() + * @see #getContext() + * @generated + */ + EReference getContext_DataContexts(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.properties.contexts.Context#getPrototype <em>Prototype</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Prototype</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Context#getPrototype() + * @see #getContext() + * @generated + */ + EReference getContext_Prototype(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Context#getLabel <em>Label</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Label</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Context#getLabel() + * @see #getContext() + * @generated + */ + EAttribute getContext_Label(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Context#getUserLabel <em>User Label</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>User Label</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Context#getUserLabel() + * @see #getContext() + * @generated + */ + EAttribute getContext_UserLabel(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.contexts.Tab <em>Tab</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Tab</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Tab + * @generated + */ + EClass getTab(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getLabel <em>Label</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Label</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Tab#getLabel() + * @see #getTab() + * @generated + */ + EAttribute getTab_Label(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getId <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Id</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Tab#getId() + * @see #getTab() + * @generated + */ + EAttribute getTab_Id(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getCategory <em>Category</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Category</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Tab#getCategory() + * @see #getTab() + * @generated + */ + EAttribute getTab_Category(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getImage <em>Image</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Image</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Tab#getImage() + * @see #getTab() + * @generated + */ + EAttribute getTab_Image(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getAfterTab <em>After Tab</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>After Tab</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Tab#getAfterTab() + * @see #getTab() + * @generated + */ + EReference getTab_AfterTab(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getSections <em>Sections</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Sections</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Tab#getSections() + * @see #getTab() + * @generated + */ + EReference getTab_Sections(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#isIndented <em>Indented</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Indented</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Tab#isIndented() + * @see #getTab() + * @generated + */ + EAttribute getTab_Indented(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getPriority <em>Priority</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Priority</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Tab#getPriority() + * @see #getTab() + * @generated + */ + EAttribute getTab_Priority(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.contexts.View <em>View</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>View</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.View + * @generated + */ + EClass getView(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.View#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.View#getName() + * @see #getView() + * @generated + */ + EAttribute getView_Name(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.infra.properties.contexts.View#getSections <em>Sections</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference list '<em>Sections</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.View#getSections() + * @see #getView() + * @generated + */ + EReference getView_Sections(); + + /** + * Returns the meta object for the container reference '{@link org.eclipse.papyrus.infra.properties.contexts.View#getContext <em>Context</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the container reference '<em>Context</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.View#getContext() + * @see #getView() + * @generated + */ + EReference getView_Context(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.View#isAutomaticContext <em>Automatic Context</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Automatic Context</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.View#isAutomaticContext() + * @see #getView() + * @generated + */ + EAttribute getView_AutomaticContext(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.infra.properties.contexts.View#getDatacontexts <em>Datacontexts</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference list '<em>Datacontexts</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.View#getDatacontexts() + * @see #getView() + * @generated + */ + EReference getView_Datacontexts(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.contexts.Section <em>Section</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Section</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Section + * @generated + */ + EClass getSection(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Section#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Section#getName() + * @see #getSection() + * @generated + */ + EAttribute getSection_Name(); + + /** + * Returns the meta object for the container reference '{@link org.eclipse.papyrus.infra.properties.contexts.Section#getTab <em>Tab</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the container reference '<em>Tab</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Section#getTab() + * @see #getSection() + * @generated + */ + EReference getSection_Tab(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Section#getSectionFile <em>Section File</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Section File</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Section#getSectionFile() + * @see #getSection() + * @generated + */ + EAttribute getSection_SectionFile(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.properties.contexts.Section#getWidget <em>Widget</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Widget</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Section#getWidget() + * @see #getSection() + * @generated + */ + EReference getSection_Widget(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement <em>Data Context Element</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Data Context Element</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextElement + * @generated + */ + EClass getDataContextElement(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getName() + * @see #getDataContextElement() + * @generated + */ + EAttribute getDataContextElement_Name(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getProperties <em>Properties</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Properties</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getProperties() + * @see #getDataContextElement() + * @generated + */ + EReference getDataContextElement_Properties(); + + /** + * Returns the meta object for the container reference '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getPackage <em>Package</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the container reference '<em>Package</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getPackage() + * @see #getDataContextElement() + * @generated + */ + EReference getDataContextElement_Package(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getSupertypes <em>Supertypes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference list '<em>Supertypes</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getSupertypes() + * @see #getDataContextElement() + * @generated + */ + EReference getDataContextElement_Supertypes(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.contexts.Property <em>Property</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Property</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Property + * @generated + */ + EClass getProperty(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Property#getName() + * @see #getProperty() + * @generated + */ + EAttribute getProperty_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getLabel <em>Label</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Label</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Property#getLabel() + * @see #getProperty() + * @generated + */ + EAttribute getProperty_Label(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getType <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Type</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Property#getType() + * @see #getProperty() + * @generated + */ + EAttribute getProperty_Type(); + + /** + * Returns the meta object for the container reference '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getContextElement <em>Context Element</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the container reference '<em>Context Element</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Property#getContextElement() + * @see #getProperty() + * @generated + */ + EReference getProperty_ContextElement(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getMultiplicity <em>Multiplicity</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Multiplicity</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Property#getMultiplicity() + * @see #getProperty() + * @generated + */ + EAttribute getProperty_Multiplicity(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getDescription <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.Property#getDescription() + * @see #getProperty() + * @generated + */ + EAttribute getProperty_Description(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.contexts.UnknownProperty <em>Unknown Property</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Unknown Property</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.UnknownProperty + * @generated + */ + EClass getUnknownProperty(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextPackage <em>Data Context Package</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Data Context Package</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextPackage + * @generated + */ + EClass getDataContextPackage(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextPackage#getElements <em>Elements</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Elements</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextPackage#getElements() + * @see #getDataContextPackage() + * @generated + */ + EReference getDataContextPackage_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextRoot <em>Data Context Root</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Data Context Root</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextRoot + * @generated + */ + EClass getDataContextRoot(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextRoot#getLabel <em>Label</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Label</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextRoot#getLabel() + * @see #getDataContextRoot() + * @generated + */ + EAttribute getDataContextRoot_Label(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextRoot#getModelElementFactory <em>Model Element Factory</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Model Element Factory</em>'. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextRoot#getModelElementFactory() + * @see #getDataContextRoot() + * @generated + */ + EReference getDataContextRoot_ModelElementFactory(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the factory that creates the instances of the model. + * @generated + */ + ContextsFactory getContextsFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * + * @generated + */ + interface Literals { + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.ContextImpl <em>Context</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getContext() + * @generated + */ + EClass CONTEXT = eINSTANCE.getContext(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute CONTEXT__NAME = eINSTANCE.getContext_Name(); + + /** + * The meta object literal for the '<em><b>Dependencies</b></em>' reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference CONTEXT__DEPENDENCIES = eINSTANCE.getContext_Dependencies(); + + /** + * The meta object literal for the '<em><b>Tabs</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference CONTEXT__TABS = eINSTANCE.getContext_Tabs(); + + /** + * The meta object literal for the '<em><b>Views</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference CONTEXT__VIEWS = eINSTANCE.getContext_Views(); + + /** + * The meta object literal for the '<em><b>Data Contexts</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference CONTEXT__DATA_CONTEXTS = eINSTANCE.getContext_DataContexts(); + + /** + * The meta object literal for the '<em><b>Prototype</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference CONTEXT__PROTOTYPE = eINSTANCE.getContext_Prototype(); + + /** + * The meta object literal for the '<em><b>Label</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute CONTEXT__LABEL = eINSTANCE.getContext_Label(); + + /** + * The meta object literal for the '<em><b>User Label</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute CONTEXT__USER_LABEL = eINSTANCE.getContext_UserLabel(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.TabImpl <em>Tab</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.TabImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getTab() + * @generated + */ + EClass TAB = eINSTANCE.getTab(); + + /** + * The meta object literal for the '<em><b>Label</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute TAB__LABEL = eINSTANCE.getTab_Label(); + + /** + * The meta object literal for the '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute TAB__ID = eINSTANCE.getTab_Id(); + + /** + * The meta object literal for the '<em><b>Category</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute TAB__CATEGORY = eINSTANCE.getTab_Category(); + + /** + * The meta object literal for the '<em><b>Image</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute TAB__IMAGE = eINSTANCE.getTab_Image(); + + /** + * The meta object literal for the '<em><b>After Tab</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference TAB__AFTER_TAB = eINSTANCE.getTab_AfterTab(); + + /** + * The meta object literal for the '<em><b>Sections</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference TAB__SECTIONS = eINSTANCE.getTab_Sections(); + + /** + * The meta object literal for the '<em><b>Indented</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute TAB__INDENTED = eINSTANCE.getTab_Indented(); + + /** + * The meta object literal for the '<em><b>Priority</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute TAB__PRIORITY = eINSTANCE.getTab_Priority(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.ViewImpl <em>View</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ViewImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getView() + * @generated + */ + EClass VIEW = eINSTANCE.getView(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute VIEW__NAME = eINSTANCE.getView_Name(); + + /** + * The meta object literal for the '<em><b>Sections</b></em>' reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference VIEW__SECTIONS = eINSTANCE.getView_Sections(); + + /** + * The meta object literal for the '<em><b>Context</b></em>' container reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference VIEW__CONTEXT = eINSTANCE.getView_Context(); + + /** + * The meta object literal for the '<em><b>Automatic Context</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute VIEW__AUTOMATIC_CONTEXT = eINSTANCE.getView_AutomaticContext(); + + /** + * The meta object literal for the '<em><b>Datacontexts</b></em>' reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference VIEW__DATACONTEXTS = eINSTANCE.getView_Datacontexts(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.SectionImpl <em>Section</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.SectionImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getSection() + * @generated + */ + EClass SECTION = eINSTANCE.getSection(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute SECTION__NAME = eINSTANCE.getSection_Name(); + + /** + * The meta object literal for the '<em><b>Tab</b></em>' container reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference SECTION__TAB = eINSTANCE.getSection_Tab(); + + /** + * The meta object literal for the '<em><b>Section File</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute SECTION__SECTION_FILE = eINSTANCE.getSection_SectionFile(); + + /** + * The meta object literal for the '<em><b>Widget</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference SECTION__WIDGET = eINSTANCE.getSection_Widget(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextElementImpl <em>Data Context Element</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.DataContextElementImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getDataContextElement() + * @generated + */ + EClass DATA_CONTEXT_ELEMENT = eINSTANCE.getDataContextElement(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute DATA_CONTEXT_ELEMENT__NAME = eINSTANCE.getDataContextElement_Name(); + + /** + * The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference DATA_CONTEXT_ELEMENT__PROPERTIES = eINSTANCE.getDataContextElement_Properties(); + + /** + * The meta object literal for the '<em><b>Package</b></em>' container reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference DATA_CONTEXT_ELEMENT__PACKAGE = eINSTANCE.getDataContextElement_Package(); + + /** + * The meta object literal for the '<em><b>Supertypes</b></em>' reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference DATA_CONTEXT_ELEMENT__SUPERTYPES = eINSTANCE.getDataContextElement_Supertypes(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.PropertyImpl <em>Property</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.PropertyImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getProperty() + * @generated + */ + EClass PROPERTY = eINSTANCE.getProperty(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY__NAME = eINSTANCE.getProperty_Name(); + + /** + * The meta object literal for the '<em><b>Label</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY__LABEL = eINSTANCE.getProperty_Label(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY__TYPE = eINSTANCE.getProperty_Type(); + + /** + * The meta object literal for the '<em><b>Context Element</b></em>' container reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference PROPERTY__CONTEXT_ELEMENT = eINSTANCE.getProperty_ContextElement(); + + /** + * The meta object literal for the '<em><b>Multiplicity</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY__MULTIPLICITY = eINSTANCE.getProperty_Multiplicity(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY__DESCRIPTION = eINSTANCE.getProperty_Description(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.UnknownPropertyImpl <em>Unknown Property</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.UnknownPropertyImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getUnknownProperty() + * @generated + */ + EClass UNKNOWN_PROPERTY = eINSTANCE.getUnknownProperty(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextPackageImpl <em>Data Context Package</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.DataContextPackageImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getDataContextPackage() + * @generated + */ + EClass DATA_CONTEXT_PACKAGE = eINSTANCE.getDataContextPackage(); + + /** + * The meta object literal for the '<em><b>Elements</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference DATA_CONTEXT_PACKAGE__ELEMENTS = eINSTANCE.getDataContextPackage_Elements(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextRootImpl <em>Data Context Root</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.impl.DataContextRootImpl + * @see org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl#getDataContextRoot() + * @generated + */ + EClass DATA_CONTEXT_ROOT = eINSTANCE.getDataContextRoot(); + + /** + * The meta object literal for the '<em><b>Label</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute DATA_CONTEXT_ROOT__LABEL = eINSTANCE.getDataContextRoot_Label(); + + /** + * The meta object literal for the '<em><b>Model Element Factory</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference DATA_CONTEXT_ROOT__MODEL_ELEMENT_FACTORY = eINSTANCE.getDataContextRoot_ModelElementFactory(); + + } + +} // ContextsPackage diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/DataContextElement.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/DataContextElement.java new file mode 100644 index 00000000000..470f2dacff9 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/DataContextElement.java @@ -0,0 +1,124 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Data Context Element</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getProperties <em>Properties</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getPackage <em>Package</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getSupertypes <em>Supertypes</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getDataContextElement() + * @model + * @generated + */ +public interface DataContextElement extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getDataContextElement_Name() + * @model required="true" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Properties</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.contexts.Property}. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getContextElement <em>Context Element</em>}'. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Properties</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Properties</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getDataContextElement_Properties() + * @see org.eclipse.papyrus.infra.properties.contexts.Property#getContextElement + * @model opposite="contextElement" containment="true" + * @generated + */ + EList<Property> getProperties(); + + /** + * Returns the value of the '<em><b>Package</b></em>' container reference. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextPackage#getElements <em>Elements</em>}'. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Package</em>' container reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Package</em>' container reference. + * @see #setPackage(DataContextPackage) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getDataContextElement_Package() + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextPackage#getElements + * @model opposite="elements" transient="false" + * @generated + */ + DataContextPackage getPackage(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getPackage <em>Package</em>}' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Package</em>' container reference. + * @see #getPackage() + * @generated + */ + void setPackage(DataContextPackage value); + + /** + * Returns the value of the '<em><b>Supertypes</b></em>' reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Supertypes</em>' reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Supertypes</em>' reference list. + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getDataContextElement_Supertypes() + * @model + * @generated + */ + EList<DataContextElement> getSupertypes(); + +} // DataContextElement diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/DataContextPackage.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/DataContextPackage.java new file mode 100644 index 00000000000..d48229b8074 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/DataContextPackage.java @@ -0,0 +1,46 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Data Context Package</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.DataContextPackage#getElements <em>Elements</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getDataContextPackage() + * @model + * @generated + */ +public interface DataContextPackage extends DataContextElement { + /** + * Returns the value of the '<em><b>Elements</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement}. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getPackage <em>Package</em>}'. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Elements</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getDataContextPackage_Elements() + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getPackage + * @model opposite="package" containment="true" + * @generated + */ + EList<DataContextElement> getElements(); + +} // DataContextPackage diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/DataContextRoot.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/DataContextRoot.java new file mode 100644 index 00000000000..73950406836 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/DataContextRoot.java @@ -0,0 +1,85 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts; + +import org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Data Context Root</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.DataContextRoot#getLabel <em>Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.DataContextRoot#getModelElementFactory <em>Model Element Factory</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getDataContextRoot() + * @model + * @generated + */ +public interface DataContextRoot extends DataContextPackage { + /** + * Returns the value of the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Label</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Label</em>' attribute. + * @see #setLabel(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getDataContextRoot_Label() + * @model required="true" + * @generated + */ + String getLabel(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextRoot#getLabel <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Label</em>' attribute. + * @see #getLabel() + * @generated + */ + void setLabel(String value); + + /** + * Returns the value of the '<em><b>Model Element Factory</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Model Element Factory</em>' reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Model Element Factory</em>' reference. + * @see #setModelElementFactory(ModelElementFactoryDescriptor) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getDataContextRoot_ModelElementFactory() + * @model required="true" + * @generated + */ + ModelElementFactoryDescriptor getModelElementFactory(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextRoot#getModelElementFactory <em>Model Element Factory</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Model Element Factory</em>' reference. + * @see #getModelElementFactory() + * @generated + */ + void setModelElementFactory(ModelElementFactoryDescriptor value); + +} // DataContextRoot diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/Property.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/Property.java new file mode 100644 index 00000000000..16d4baaac6f --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/Property.java @@ -0,0 +1,208 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.infra.properties.environment.Type; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Property</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Property#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Property#getLabel <em>Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Property#getType <em>Type</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Property#getContextElement <em>Context Element</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Property#getMultiplicity <em>Multiplicity</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Property#getDescription <em>Description</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getProperty() + * @model + * @generated + */ +public interface Property extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getProperty_Name() + * @model required="true" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Label</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Label</em>' attribute. + * @see #setLabel(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getProperty_Label() + * @model + * @generated + */ + String getLabel(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getLabel <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Label</em>' attribute. + * @see #getLabel() + * @generated + */ + void setLabel(String value); + + /** + * Returns the value of the '<em><b>Type</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.infra.properties.environment.Type}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Type</em>' attribute. + * @see org.eclipse.papyrus.infra.properties.environment.Type + * @see #setType(Type) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getProperty_Type() + * @model required="true" + * @generated + */ + Type getType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getType <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Type</em>' attribute. + * @see org.eclipse.papyrus.infra.properties.environment.Type + * @see #getType() + * @generated + */ + void setType(Type value); + + /** + * Returns the value of the '<em><b>Context Element</b></em>' container reference. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getProperties <em>Properties</em>}'. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Context Element</em>' container reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Context Element</em>' container reference. + * @see #setContextElement(DataContextElement) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getProperty_ContextElement() + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextElement#getProperties + * @model opposite="properties" transient="false" + * @generated + */ + DataContextElement getContextElement(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getContextElement <em>Context Element</em>}' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Context Element</em>' container reference. + * @see #getContextElement() + * @generated + */ + void setContextElement(DataContextElement value); + + /** + * Returns the value of the '<em><b>Multiplicity</b></em>' attribute. + * The default value is <code>"1"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Multiplicity</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Multiplicity</em>' attribute. + * @see #setMultiplicity(int) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getProperty_Multiplicity() + * @model default="1" required="true" + * @generated + */ + int getMultiplicity(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getMultiplicity <em>Multiplicity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Multiplicity</em>' attribute. + * @see #getMultiplicity() + * @generated + */ + void setMultiplicity(int value); + + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Description</em>' attribute. + * @see #setDescription(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getProperty_Description() + * @model + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Property#getDescription <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + +} // Property diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/Section.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/Section.java new file mode 100644 index 00000000000..dc8c7a325c6 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/Section.java @@ -0,0 +1,146 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts; + +import org.eclipse.papyrus.infra.constraints.DisplayUnit; +import org.eclipse.papyrus.infra.properties.ui.CompositeWidget; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Section</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Section#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Section#getTab <em>Tab</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Section#getSectionFile <em>Section File</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Section#getWidget <em>Widget</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getSection() + * @model + * @generated + */ +public interface Section extends DisplayUnit { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getSection_Name() + * @model required="true" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Section#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Tab</b></em>' container reference. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getSections <em>Sections</em>}'. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tab</em>' container reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Tab</em>' container reference. + * @see #setTab(Tab) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getSection_Tab() + * @see org.eclipse.papyrus.infra.properties.contexts.Tab#getSections + * @model opposite="sections" required="true" transient="false" + * @generated + */ + Tab getTab(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Section#getTab <em>Tab</em>}' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Tab</em>' container reference. + * @see #getTab() + * @generated + */ + void setTab(Tab value); + + /** + * Returns the value of the '<em><b>Section File</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Section File</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Section File</em>' attribute. + * @see #setSectionFile(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getSection_SectionFile() + * @model required="true" + * @generated + */ + String getSectionFile(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Section#getSectionFile <em>Section File</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Section File</em>' attribute. + * @see #getSectionFile() + * @generated + */ + void setSectionFile(String value); + + /** + * Returns the value of the '<em><b>Widget</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Widget</em>' reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Widget</em>' reference. + * @see #setWidget(CompositeWidget) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getSection_Widget() + * @model required="true" + * @generated + */ + CompositeWidget getWidget(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Section#getWidget <em>Widget</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Widget</em>' reference. + * @see #getWidget() + * @generated + */ + void setWidget(CompositeWidget value); + +} // Section diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/Tab.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/Tab.java new file mode 100644 index 00000000000..24c469cf536 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/Tab.java @@ -0,0 +1,251 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Tab</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getLabel <em>Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getCategory <em>Category</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getImage <em>Image</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getAfterTab <em>After Tab</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getSections <em>Sections</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Tab#isIndented <em>Indented</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getPriority <em>Priority</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getTab() + * @model + * @generated + */ +public interface Tab extends EObject { + /** + * Returns the value of the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Label</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Label</em>' attribute. + * @see #setLabel(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getTab_Label() + * @model required="true" + * @generated + */ + String getLabel(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getLabel <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Label</em>' attribute. + * @see #getLabel() + * @generated + */ + void setLabel(String value); + + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Id</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Id</em>' attribute. + * @see #setId(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getTab_Id() + * @model required="true" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getId <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Category</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Category</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Category</em>' attribute. + * @see #setCategory(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getTab_Category() + * @model + * @generated + */ + String getCategory(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getCategory <em>Category</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Category</em>' attribute. + * @see #getCategory() + * @generated + */ + void setCategory(String value); + + /** + * Returns the value of the '<em><b>Image</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Image</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Image</em>' attribute. + * @see #setImage(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getTab_Image() + * @model + * @generated + */ + String getImage(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getImage <em>Image</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Image</em>' attribute. + * @see #getImage() + * @generated + */ + void setImage(String value); + + /** + * Returns the value of the '<em><b>After Tab</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>After Tab</em>' reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>After Tab</em>' reference. + * @see #setAfterTab(Tab) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getTab_AfterTab() + * @model + * @generated + */ + Tab getAfterTab(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getAfterTab <em>After Tab</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>After Tab</em>' reference. + * @see #getAfterTab() + * @generated + */ + void setAfterTab(Tab value); + + /** + * Returns the value of the '<em><b>Sections</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.contexts.Section}. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.infra.properties.contexts.Section#getTab <em>Tab</em>}'. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sections</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Sections</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getTab_Sections() + * @see org.eclipse.papyrus.infra.properties.contexts.Section#getTab + * @model opposite="tab" containment="true" + * @generated + */ + EList<Section> getSections(); + + /** + * Returns the value of the '<em><b>Indented</b></em>' attribute. + * The default value is <code>"false"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Indented</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Indented</em>' attribute. + * @see #setIndented(boolean) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getTab_Indented() + * @model default="false" required="true" + * @generated + */ + boolean isIndented(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#isIndented <em>Indented</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Indented</em>' attribute. + * @see #isIndented() + * @generated + */ + void setIndented(boolean value); + + /** + * Returns the value of the '<em><b>Priority</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Priority</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Priority</em>' attribute. + * @see #setPriority(int) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getTab_Priority() + * @model + * @generated + */ + int getPriority(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.Tab#getPriority <em>Priority</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Priority</em>' attribute. + * @see #getPriority() + * @generated + */ + void setPriority(int value); + +} // Tab diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/UnknownProperty.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/UnknownProperty.java new file mode 100644 index 00000000000..29106f3ee99 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/UnknownProperty.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Unknown Property</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getUnknownProperty() + * @model + * @generated + */ +public interface UnknownProperty extends Property { +} // UnknownProperty diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/View.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/View.java new file mode 100644 index 00000000000..05139789a31 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/View.java @@ -0,0 +1,151 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.papyrus.infra.constraints.DisplayUnit; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>View</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.View#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.View#getSections <em>Sections</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.View#getContext <em>Context</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.View#isAutomaticContext <em>Automatic Context</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.View#getDatacontexts <em>Datacontexts</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getView() + * @model + * @generated + */ +public interface View extends DisplayUnit { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getView_Name() + * @model required="true" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.View#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Sections</b></em>' reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.contexts.Section}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sections</em>' reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Sections</em>' reference list. + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getView_Sections() + * @model + * @generated + */ + EList<Section> getSections(); + + /** + * Returns the value of the '<em><b>Context</b></em>' container reference. + * It is bidirectional and its opposite is '{@link org.eclipse.papyrus.infra.properties.contexts.Context#getViews <em>Views</em>}'. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Context</em>' container reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Context</em>' container reference. + * @see #setContext(Context) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getView_Context() + * @see org.eclipse.papyrus.infra.properties.contexts.Context#getViews + * @model opposite="views" required="true" transient="false" + * @generated + */ + Context getContext(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.View#getContext <em>Context</em>}' container reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Context</em>' container reference. + * @see #getContext() + * @generated + */ + void setContext(Context value); + + /** + * Returns the value of the '<em><b>Automatic Context</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Automatic Context</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Automatic Context</em>' attribute. + * @see #setAutomaticContext(boolean) + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getView_AutomaticContext() + * @model required="true" + * @generated + */ + boolean isAutomaticContext(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.contexts.View#isAutomaticContext <em>Automatic Context</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Automatic Context</em>' attribute. + * @see #isAutomaticContext() + * @generated + */ + void setAutomaticContext(boolean value); + + /** + * Returns the value of the '<em><b>Datacontexts</b></em>' reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Datacontexts</em>' reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Datacontexts</em>' reference list. + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#getView_Datacontexts() + * @model + * @generated + */ + EList<DataContextElement> getDatacontexts(); + +} // View diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/ContextImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/ContextImpl.java new file mode 100644 index 00000000000..3d939954c40 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/ContextImpl.java @@ -0,0 +1,545 @@ +/***************************************************************************** + * Copyright (c) 2011, 2015 CEA LIST, Christian W. Damus, and others. + * + * 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: + * CEA LIST - Initial API and implementation + * Christian W. Damus - add prototype reference to Context (CDO) + * Christian W. Damus - bug 482927 + *****************************************************************************/ +package org.eclipse.papyrus.infra.properties.contexts.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +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.impl.EModelElementImpl; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.infra.properties.contexts.Context; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextRoot; +import org.eclipse.papyrus.infra.properties.contexts.Tab; +import org.eclipse.papyrus.infra.properties.contexts.View; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Context</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ContextImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ContextImpl#getDependencies <em>Dependencies</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ContextImpl#getTabs <em>Tabs</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ContextImpl#getViews <em>Views</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ContextImpl#getDataContexts <em>Data Contexts</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ContextImpl#getPrototype <em>Prototype</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ContextImpl#getLabel <em>Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ContextImpl#getUserLabel <em>User Label</em>}</li> + * </ul> + * + * @generated + */ +public class ContextImpl extends EModelElementImpl implements Context { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getDependencies() <em>Dependencies</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getDependencies() + * @generated + * @ordered + */ + protected EList<Context> dependencies; + + /** + * The cached value of the '{@link #getTabs() <em>Tabs</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getTabs() + * @generated + * @ordered + */ + protected EList<Tab> tabs; + + /** + * The cached value of the '{@link #getViews() <em>Views</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getViews() + * @generated + * @ordered + */ + protected EList<View> views; + + /** + * The cached value of the '{@link #getDataContexts() <em>Data Contexts</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getDataContexts() + * @generated + * @ordered + */ + protected EList<DataContextRoot> dataContexts; + + /** + * The cached value of the '{@link #getPrototype() <em>Prototype</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getPrototype() + * @generated + * @ordered + */ + protected Context prototype; + + /** + * The default value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLabel() + * @generated + * @ordered + */ + protected static final String LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLabel() + * @generated + * @ordered + */ + protected String label = LABEL_EDEFAULT; + + /** + * The default value of the '{@link #getUserLabel() <em>User Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getUserLabel() + * @generated + * @ordered + */ + protected static final String USER_LABEL_EDEFAULT = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected ContextImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ContextsPackage.Literals.CONTEXT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.CONTEXT__NAME, oldName, name)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<Context> getDependencies() { + if (dependencies == null) { + dependencies = new EObjectResolvingEList<Context>(Context.class, this, ContextsPackage.CONTEXT__DEPENDENCIES); + } + return dependencies; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<Tab> getTabs() { + if (tabs == null) { + tabs = new EObjectContainmentEList<Tab>(Tab.class, this, ContextsPackage.CONTEXT__TABS); + } + return tabs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<View> getViews() { + if (views == null) { + views = new EObjectContainmentWithInverseEList<View>(View.class, this, ContextsPackage.CONTEXT__VIEWS, ContextsPackage.VIEW__CONTEXT); + } + return views; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<DataContextRoot> getDataContexts() { + if (dataContexts == null) { + dataContexts = new EObjectContainmentEList<DataContextRoot>(DataContextRoot.class, this, ContextsPackage.CONTEXT__DATA_CONTEXTS); + } + return dataContexts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Context getPrototype() { + if (prototype != null && prototype.eIsProxy()) { + InternalEObject oldPrototype = (InternalEObject) prototype; + prototype = (Context) eResolveProxy(oldPrototype); + if (prototype != oldPrototype) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ContextsPackage.CONTEXT__PROTOTYPE, oldPrototype, prototype)); + } + } + } + return prototype; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Context basicGetPrototype() { + return prototype; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setPrototype(Context newPrototype) { + Context oldPrototype = prototype; + prototype = newPrototype; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.CONTEXT__PROTOTYPE, oldPrototype, prototype)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getLabel() { + return label; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setLabel(String newLabel) { + String oldLabel = label; + label = newLabel; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.CONTEXT__LABEL, oldLabel, label)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated NOT + */ + @Override + public String getUserLabel() { + String result = getLabel(); + if ((result == null) || result.isEmpty()) { + result = getName(); + } + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.CONTEXT__VIEWS: + return ((InternalEList<InternalEObject>) (InternalEList<?>) getViews()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.CONTEXT__TABS: + return ((InternalEList<?>) getTabs()).basicRemove(otherEnd, msgs); + case ContextsPackage.CONTEXT__VIEWS: + return ((InternalEList<?>) getViews()).basicRemove(otherEnd, msgs); + case ContextsPackage.CONTEXT__DATA_CONTEXTS: + return ((InternalEList<?>) getDataContexts()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ContextsPackage.CONTEXT__NAME: + return getName(); + case ContextsPackage.CONTEXT__DEPENDENCIES: + return getDependencies(); + case ContextsPackage.CONTEXT__TABS: + return getTabs(); + case ContextsPackage.CONTEXT__VIEWS: + return getViews(); + case ContextsPackage.CONTEXT__DATA_CONTEXTS: + return getDataContexts(); + case ContextsPackage.CONTEXT__PROTOTYPE: + if (resolve) { + return getPrototype(); + } + return basicGetPrototype(); + case ContextsPackage.CONTEXT__LABEL: + return getLabel(); + case ContextsPackage.CONTEXT__USER_LABEL: + return getUserLabel(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ContextsPackage.CONTEXT__NAME: + setName((String) newValue); + return; + case ContextsPackage.CONTEXT__DEPENDENCIES: + getDependencies().clear(); + getDependencies().addAll((Collection<? extends Context>) newValue); + return; + case ContextsPackage.CONTEXT__TABS: + getTabs().clear(); + getTabs().addAll((Collection<? extends Tab>) newValue); + return; + case ContextsPackage.CONTEXT__VIEWS: + getViews().clear(); + getViews().addAll((Collection<? extends View>) newValue); + return; + case ContextsPackage.CONTEXT__DATA_CONTEXTS: + getDataContexts().clear(); + getDataContexts().addAll((Collection<? extends DataContextRoot>) newValue); + return; + case ContextsPackage.CONTEXT__PROTOTYPE: + setPrototype((Context) newValue); + return; + case ContextsPackage.CONTEXT__LABEL: + setLabel((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ContextsPackage.CONTEXT__NAME: + setName(NAME_EDEFAULT); + return; + case ContextsPackage.CONTEXT__DEPENDENCIES: + getDependencies().clear(); + return; + case ContextsPackage.CONTEXT__TABS: + getTabs().clear(); + return; + case ContextsPackage.CONTEXT__VIEWS: + getViews().clear(); + return; + case ContextsPackage.CONTEXT__DATA_CONTEXTS: + getDataContexts().clear(); + return; + case ContextsPackage.CONTEXT__PROTOTYPE: + setPrototype((Context) null); + return; + case ContextsPackage.CONTEXT__LABEL: + setLabel(LABEL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ContextsPackage.CONTEXT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ContextsPackage.CONTEXT__DEPENDENCIES: + return dependencies != null && !dependencies.isEmpty(); + case ContextsPackage.CONTEXT__TABS: + return tabs != null && !tabs.isEmpty(); + case ContextsPackage.CONTEXT__VIEWS: + return views != null && !views.isEmpty(); + case ContextsPackage.CONTEXT__DATA_CONTEXTS: + return dataContexts != null && !dataContexts.isEmpty(); + case ContextsPackage.CONTEXT__PROTOTYPE: + return prototype != null; + case ContextsPackage.CONTEXT__LABEL: + return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); + case ContextsPackage.CONTEXT__USER_LABEL: + return USER_LABEL_EDEFAULT == null ? getUserLabel() != null : !USER_LABEL_EDEFAULT.equals(getUserLabel()); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", label: "); + result.append(label); + result.append(')'); + return result.toString(); + } + +} // ContextImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/ContextsFactoryImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/ContextsFactoryImpl.java new file mode 100644 index 00000000000..81f78a682b2 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/ContextsFactoryImpl.java @@ -0,0 +1,234 @@ +/***************************************************************************** + * Copyright (c) 2011, 2013 CEA LIST. + * + * 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: + * CEA LIST - Initial API and implementation + * Christian W. Damus - add prototype reference to Context (CDO) + *****************************************************************************/ +package org.eclipse.papyrus.infra.properties.contexts.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.papyrus.infra.properties.contexts.Context; +import org.eclipse.papyrus.infra.properties.contexts.ContextsFactory; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextElement; +import org.eclipse.papyrus.infra.properties.contexts.DataContextPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextRoot; +import org.eclipse.papyrus.infra.properties.contexts.Property; +import org.eclipse.papyrus.infra.properties.contexts.Section; +import org.eclipse.papyrus.infra.properties.contexts.Tab; +import org.eclipse.papyrus.infra.properties.contexts.UnknownProperty; +import org.eclipse.papyrus.infra.properties.contexts.View; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * + * @generated + */ +public class ContextsFactoryImpl extends EFactoryImpl implements ContextsFactory { + + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static ContextsFactory init() { + try { + ContextsFactory theContextsFactory = (ContextsFactory) EPackage.Registry.INSTANCE.getEFactory(ContextsPackage.eNS_URI); + if (theContextsFactory != null) { + return theContextsFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new ContextsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public ContextsFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case ContextsPackage.CONTEXT: + return createContext(); + case ContextsPackage.TAB: + return createTab(); + case ContextsPackage.VIEW: + return createView(); + case ContextsPackage.SECTION: + return createSection(); + case ContextsPackage.DATA_CONTEXT_ELEMENT: + return createDataContextElement(); + case ContextsPackage.PROPERTY: + return createProperty(); + case ContextsPackage.UNKNOWN_PROPERTY: + return createUnknownProperty(); + case ContextsPackage.DATA_CONTEXT_PACKAGE: + return createDataContextPackage(); + case ContextsPackage.DATA_CONTEXT_ROOT: + return createDataContextRoot(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Context createContext() { + ContextImpl context = new ContextImpl(); + return context; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Tab createTab() { + TabImpl tab = new TabImpl(); + return tab; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public View createView() { + ViewImpl view = new ViewImpl(); + return view; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Section createSection() { + SectionImpl section = new SectionImpl(); + return section; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public DataContextElement createDataContextElement() { + DataContextElementImpl dataContextElement = new DataContextElementImpl(); + return dataContextElement; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Property createProperty() { + PropertyImpl property = new PropertyImpl(); + return property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public UnknownProperty createUnknownProperty() { + UnknownPropertyImpl unknownProperty = new UnknownPropertyImpl(); + return unknownProperty; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public DataContextPackage createDataContextPackage() { + DataContextPackageImpl dataContextPackage = new DataContextPackageImpl(); + return dataContextPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public DataContextRoot createDataContextRoot() { + DataContextRootImpl dataContextRoot = new DataContextRootImpl(); + return dataContextRoot; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public ContextsPackage getContextsPackage() { + return (ContextsPackage) getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @deprecated + * @generated + */ + @Deprecated + public static ContextsPackage getPackage() { + return ContextsPackage.eINSTANCE; + } + +} // ContextsFactoryImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/ContextsPackageImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/ContextsPackageImpl.java new file mode 100644 index 00000000000..9b95891e9bd --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/ContextsPackageImpl.java @@ -0,0 +1,918 @@ +/***************************************************************************** + * Copyright (c) 2011, 2015 CEA LIST, Christian W. Damus, and others. + * + * 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: + * CEA LIST - Initial API and implementation + * Christian W. Damus - add prototype reference to Context (CDO) + * Christian W. Damus - bug 482927 + *****************************************************************************/ +package org.eclipse.papyrus.infra.properties.contexts.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.papyrus.infra.constraints.ConstraintsPackage; +import org.eclipse.papyrus.infra.properties.contexts.Context; +import org.eclipse.papyrus.infra.properties.contexts.ContextsFactory; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextElement; +import org.eclipse.papyrus.infra.properties.contexts.DataContextPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextRoot; +import org.eclipse.papyrus.infra.properties.contexts.Property; +import org.eclipse.papyrus.infra.properties.contexts.Section; +import org.eclipse.papyrus.infra.properties.contexts.Tab; +import org.eclipse.papyrus.infra.properties.contexts.UnknownProperty; +import org.eclipse.papyrus.infra.properties.contexts.View; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; +import org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * + * @generated + */ +public class ContextsPackageImpl extends EPackageImpl implements ContextsPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass contextEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass tabEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass viewEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass sectionEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass dataContextElementEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass propertyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass unknownPropertyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass dataContextPackageEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass dataContextRootEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p> + * Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage#eNS_URI + * @see #init() + * @generated + */ + private ContextsPackageImpl() { + super(eNS_URI, ContextsFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p> + * This method is used to initialize {@link ContextsPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static ContextsPackage init() { + if (isInited) { + return (ContextsPackage) EPackage.Registry.INSTANCE.getEPackage(ContextsPackage.eNS_URI); + } + + // Obtain or create and register package + ContextsPackageImpl theContextsPackage = (ContextsPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ContextsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ContextsPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + ConstraintsPackage.eINSTANCE.eClass(); + EcorePackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + EnvironmentPackageImpl theEnvironmentPackage = (EnvironmentPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI) instanceof EnvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI) + : EnvironmentPackage.eINSTANCE); + UiPackageImpl theUiPackage = (UiPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(UiPackage.eNS_URI) instanceof UiPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UiPackage.eNS_URI) : UiPackage.eINSTANCE); + + // Create package meta-data objects + theContextsPackage.createPackageContents(); + theEnvironmentPackage.createPackageContents(); + theUiPackage.createPackageContents(); + + // Initialize created meta-data + theContextsPackage.initializePackageContents(); + theEnvironmentPackage.initializePackageContents(); + theUiPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theContextsPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ContextsPackage.eNS_URI, theContextsPackage); + return theContextsPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getContext() { + return contextEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getContext_Name() { + return (EAttribute) contextEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getContext_Dependencies() { + return (EReference) contextEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getContext_Tabs() { + return (EReference) contextEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getContext_Views() { + return (EReference) contextEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getContext_DataContexts() { + return (EReference) contextEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getContext_Prototype() { + return (EReference) contextEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getContext_Label() { + return (EAttribute) contextEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getContext_UserLabel() { + return (EAttribute) contextEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getTab() { + return tabEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getTab_Label() { + return (EAttribute) tabEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getTab_Id() { + return (EAttribute) tabEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getTab_Category() { + return (EAttribute) tabEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getTab_Image() { + return (EAttribute) tabEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getTab_AfterTab() { + return (EReference) tabEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getTab_Sections() { + return (EReference) tabEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getTab_Indented() { + return (EAttribute) tabEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getTab_Priority() { + return (EAttribute) tabEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getView() { + return viewEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getView_Name() { + return (EAttribute) viewEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getView_Sections() { + return (EReference) viewEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getView_Context() { + return (EReference) viewEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getView_AutomaticContext() { + return (EAttribute) viewEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getView_Datacontexts() { + return (EReference) viewEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getSection() { + return sectionEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getSection_Name() { + return (EAttribute) sectionEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getSection_Tab() { + return (EReference) sectionEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getSection_SectionFile() { + return (EAttribute) sectionEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getSection_Widget() { + return (EReference) sectionEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getDataContextElement() { + return dataContextElementEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getDataContextElement_Name() { + return (EAttribute) dataContextElementEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getDataContextElement_Properties() { + return (EReference) dataContextElementEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getDataContextElement_Package() { + return (EReference) dataContextElementEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getDataContextElement_Supertypes() { + return (EReference) dataContextElementEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getProperty() { + return propertyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getProperty_Name() { + return (EAttribute) propertyEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getProperty_Label() { + return (EAttribute) propertyEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getProperty_Type() { + return (EAttribute) propertyEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getProperty_ContextElement() { + return (EReference) propertyEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getProperty_Multiplicity() { + return (EAttribute) propertyEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getProperty_Description() { + return (EAttribute) propertyEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getUnknownProperty() { + return unknownPropertyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getDataContextPackage() { + return dataContextPackageEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getDataContextPackage_Elements() { + return (EReference) dataContextPackageEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getDataContextRoot() { + return dataContextRootEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getDataContextRoot_Label() { + return (EAttribute) dataContextRootEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getDataContextRoot_ModelElementFactory() { + return (EReference) dataContextRootEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public ContextsFactory getContextsFactory() { + return (ContextsFactory) getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void createPackageContents() { + if (isCreated) { + return; + } + isCreated = true; + + // Create classes and their features + contextEClass = createEClass(CONTEXT); + createEAttribute(contextEClass, CONTEXT__NAME); + createEReference(contextEClass, CONTEXT__DEPENDENCIES); + createEReference(contextEClass, CONTEXT__TABS); + createEReference(contextEClass, CONTEXT__VIEWS); + createEReference(contextEClass, CONTEXT__DATA_CONTEXTS); + createEReference(contextEClass, CONTEXT__PROTOTYPE); + createEAttribute(contextEClass, CONTEXT__LABEL); + createEAttribute(contextEClass, CONTEXT__USER_LABEL); + + tabEClass = createEClass(TAB); + createEAttribute(tabEClass, TAB__LABEL); + createEAttribute(tabEClass, TAB__ID); + createEAttribute(tabEClass, TAB__CATEGORY); + createEAttribute(tabEClass, TAB__IMAGE); + createEReference(tabEClass, TAB__AFTER_TAB); + createEReference(tabEClass, TAB__SECTIONS); + createEAttribute(tabEClass, TAB__INDENTED); + createEAttribute(tabEClass, TAB__PRIORITY); + + viewEClass = createEClass(VIEW); + createEAttribute(viewEClass, VIEW__NAME); + createEReference(viewEClass, VIEW__SECTIONS); + createEReference(viewEClass, VIEW__CONTEXT); + createEAttribute(viewEClass, VIEW__AUTOMATIC_CONTEXT); + createEReference(viewEClass, VIEW__DATACONTEXTS); + + sectionEClass = createEClass(SECTION); + createEAttribute(sectionEClass, SECTION__NAME); + createEReference(sectionEClass, SECTION__TAB); + createEAttribute(sectionEClass, SECTION__SECTION_FILE); + createEReference(sectionEClass, SECTION__WIDGET); + + dataContextElementEClass = createEClass(DATA_CONTEXT_ELEMENT); + createEAttribute(dataContextElementEClass, DATA_CONTEXT_ELEMENT__NAME); + createEReference(dataContextElementEClass, DATA_CONTEXT_ELEMENT__PROPERTIES); + createEReference(dataContextElementEClass, DATA_CONTEXT_ELEMENT__PACKAGE); + createEReference(dataContextElementEClass, DATA_CONTEXT_ELEMENT__SUPERTYPES); + + propertyEClass = createEClass(PROPERTY); + createEAttribute(propertyEClass, PROPERTY__NAME); + createEAttribute(propertyEClass, PROPERTY__LABEL); + createEAttribute(propertyEClass, PROPERTY__TYPE); + createEReference(propertyEClass, PROPERTY__CONTEXT_ELEMENT); + createEAttribute(propertyEClass, PROPERTY__MULTIPLICITY); + createEAttribute(propertyEClass, PROPERTY__DESCRIPTION); + + unknownPropertyEClass = createEClass(UNKNOWN_PROPERTY); + + dataContextPackageEClass = createEClass(DATA_CONTEXT_PACKAGE); + createEReference(dataContextPackageEClass, DATA_CONTEXT_PACKAGE__ELEMENTS); + + dataContextRootEClass = createEClass(DATA_CONTEXT_ROOT); + createEAttribute(dataContextRootEClass, DATA_CONTEXT_ROOT__LABEL); + createEReference(dataContextRootEClass, DATA_CONTEXT_ROOT__MODEL_ELEMENT_FACTORY); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) { + return; + } + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + ConstraintsPackage theConstraintsPackage = (ConstraintsPackage) EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI); + UiPackage theUiPackage = (UiPackage) EPackage.Registry.INSTANCE.getEPackage(UiPackage.eNS_URI); + EnvironmentPackage theEnvironmentPackage = (EnvironmentPackage) EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + contextEClass.getESuperTypes().add(theEcorePackage.getEModelElement()); + viewEClass.getESuperTypes().add(theConstraintsPackage.getDisplayUnit()); + sectionEClass.getESuperTypes().add(theConstraintsPackage.getDisplayUnit()); + unknownPropertyEClass.getESuperTypes().add(this.getProperty()); + dataContextPackageEClass.getESuperTypes().add(this.getDataContextElement()); + dataContextRootEClass.getESuperTypes().add(this.getDataContextPackage()); + + // Initialize classes and features; add operations and parameters + initEClass(contextEClass, Context.class, "Context", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getContext_Name(), ecorePackage.getEString(), "name", null, 1, 1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getContext_Dependencies(), this.getContext(), null, "dependencies", null, 0, -1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getContext_Tabs(), this.getTab(), null, "tabs", null, 0, -1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getContext_Views(), this.getView(), this.getView_Context(), "views", null, 0, -1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getContext_DataContexts(), this.getDataContextRoot(), null, "dataContexts", null, 0, -1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getContext_Prototype(), this.getContext(), null, "prototype", null, 0, 1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContext_Label(), ecorePackage.getEString(), "label", null, 0, 1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContext_UserLabel(), ecorePackage.getEString(), "userLabel", null, 1, 1, Context.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); + + initEClass(tabEClass, Tab.class, "Tab", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTab_Label(), ecorePackage.getEString(), "label", null, 1, 1, Tab.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTab_Id(), ecorePackage.getEString(), "id", null, 1, 1, Tab.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTab_Category(), ecorePackage.getEString(), "category", null, 0, 1, Tab.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTab_Image(), ecorePackage.getEString(), "image", null, 0, 1, Tab.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTab_AfterTab(), this.getTab(), null, "afterTab", null, 0, 1, Tab.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTab_Sections(), this.getSection(), this.getSection_Tab(), "sections", null, 0, -1, Tab.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTab_Indented(), ecorePackage.getEBoolean(), "indented", "false", 1, 1, Tab.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTab_Priority(), ecorePackage.getEInt(), "priority", null, 0, 1, Tab.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(viewEClass, View.class, "View", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getView_Name(), ecorePackage.getEString(), "name", null, 1, 1, View.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getView_Sections(), this.getSection(), null, "sections", null, 0, -1, View.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getView_Context(), this.getContext(), this.getContext_Views(), "context", null, 1, 1, View.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getView_AutomaticContext(), ecorePackage.getEBoolean(), "automaticContext", null, 1, 1, View.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getView_Datacontexts(), this.getDataContextElement(), null, "datacontexts", null, 0, -1, View.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(sectionEClass, Section.class, "Section", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSection_Name(), ecorePackage.getEString(), "name", null, 1, 1, Section.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSection_Tab(), this.getTab(), this.getTab_Sections(), "tab", null, 1, 1, Section.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSection_SectionFile(), ecorePackage.getEString(), "sectionFile", null, 1, 1, Section.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSection_Widget(), theUiPackage.getCompositeWidget(), null, "widget", null, 1, 1, Section.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dataContextElementEClass, DataContextElement.class, "DataContextElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDataContextElement_Name(), ecorePackage.getEString(), "name", null, 1, 1, DataContextElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDataContextElement_Properties(), this.getProperty(), this.getProperty_ContextElement(), "properties", null, 0, -1, DataContextElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDataContextElement_Package(), this.getDataContextPackage(), this.getDataContextPackage_Elements(), "package", null, 0, 1, DataContextElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDataContextElement_Supertypes(), this.getDataContextElement(), null, "supertypes", null, 0, -1, DataContextElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(propertyEClass, Property.class, "Property", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getProperty_Name(), ecorePackage.getEString(), "name", null, 1, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getProperty_Label(), ecorePackage.getEString(), "label", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getProperty_Type(), theEnvironmentPackage.getType(), "type", null, 1, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getProperty_ContextElement(), this.getDataContextElement(), this.getDataContextElement_Properties(), "contextElement", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getProperty_Multiplicity(), ecorePackage.getEInt(), "multiplicity", "1", 1, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getProperty_Description(), ecorePackage.getEString(), "description", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(unknownPropertyEClass, UnknownProperty.class, "UnknownProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(dataContextPackageEClass, DataContextPackage.class, "DataContextPackage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDataContextPackage_Elements(), this.getDataContextElement(), this.getDataContextElement_Package(), "elements", null, 0, -1, DataContextPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dataContextRootEClass, DataContextRoot.class, "DataContextRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDataContextRoot_Label(), ecorePackage.getEString(), "label", null, 1, 1, DataContextRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDataContextRoot_ModelElementFactory(), theEnvironmentPackage.getModelElementFactoryDescriptor(), null, "modelElementFactory", null, 1, 1, DataContextRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} // ContextsPackageImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/DataContextElementImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/DataContextElementImpl.java new file mode 100644 index 00000000000..e66c8c07bc7 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/DataContextElementImpl.java @@ -0,0 +1,390 @@ +/***************************************************************************** + * Copyright (c) 2011, 2013 CEA LIST. + * + * 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: + * CEA LIST - Initial API and implementation + * Christian W. Damus - add prototype reference to Context (CDO) + *****************************************************************************/ +package org.eclipse.papyrus.infra.properties.contexts.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +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.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextElement; +import org.eclipse.papyrus.infra.properties.contexts.DataContextPackage; +import org.eclipse.papyrus.infra.properties.contexts.Property; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Data Context Element</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextElementImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextElementImpl#getProperties <em>Properties</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextElementImpl#getPackage <em>Package</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextElementImpl#getSupertypes <em>Supertypes</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DataContextElementImpl extends EObjectImpl implements DataContextElement { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getProperties() + * @generated + * @ordered + */ + protected EList<Property> properties; + + /** + * The cached value of the '{@link #getSupertypes() <em>Supertypes</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getSupertypes() + * @generated + * @ordered + */ + protected EList<DataContextElement> supertypes; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected DataContextElementImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ContextsPackage.Literals.DATA_CONTEXT_ELEMENT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.DATA_CONTEXT_ELEMENT__NAME, oldName, name)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<Property> getProperties() { + if (properties == null) { + properties = new EObjectContainmentWithInverseEList<Property>(Property.class, this, ContextsPackage.DATA_CONTEXT_ELEMENT__PROPERTIES, ContextsPackage.PROPERTY__CONTEXT_ELEMENT); + } + return properties; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public DataContextPackage getPackage() { + if (eContainerFeatureID() != ContextsPackage.DATA_CONTEXT_ELEMENT__PACKAGE) { + return null; + } + return (DataContextPackage) eInternalContainer(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetPackage(DataContextPackage newPackage, NotificationChain msgs) { + msgs = eBasicSetContainer((InternalEObject) newPackage, ContextsPackage.DATA_CONTEXT_ELEMENT__PACKAGE, msgs); + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setPackage(DataContextPackage newPackage) { + if (newPackage != eInternalContainer() || (eContainerFeatureID() != ContextsPackage.DATA_CONTEXT_ELEMENT__PACKAGE && newPackage != null)) { + if (EcoreUtil.isAncestor(this, newPackage)) { + throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); + } + NotificationChain msgs = null; + if (eInternalContainer() != null) { + msgs = eBasicRemoveFromContainer(msgs); + } + if (newPackage != null) { + msgs = ((InternalEObject) newPackage).eInverseAdd(this, ContextsPackage.DATA_CONTEXT_PACKAGE__ELEMENTS, DataContextPackage.class, msgs); + } + msgs = basicSetPackage(newPackage, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } + else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.DATA_CONTEXT_ELEMENT__PACKAGE, newPackage, newPackage)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<DataContextElement> getSupertypes() { + if (supertypes == null) { + supertypes = new EObjectResolvingEList<DataContextElement>(DataContextElement.class, this, ContextsPackage.DATA_CONTEXT_ELEMENT__SUPERTYPES); + } + return supertypes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_ELEMENT__PROPERTIES: + return ((InternalEList<InternalEObject>) (InternalEList<?>) getProperties()).basicAdd(otherEnd, msgs); + case ContextsPackage.DATA_CONTEXT_ELEMENT__PACKAGE: + if (eInternalContainer() != null) { + msgs = eBasicRemoveFromContainer(msgs); + } + return basicSetPackage((DataContextPackage) otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_ELEMENT__PROPERTIES: + return ((InternalEList<?>) getProperties()).basicRemove(otherEnd, msgs); + case ContextsPackage.DATA_CONTEXT_ELEMENT__PACKAGE: + return basicSetPackage(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { + switch (eContainerFeatureID()) { + case ContextsPackage.DATA_CONTEXT_ELEMENT__PACKAGE: + return eInternalContainer().eInverseRemove(this, ContextsPackage.DATA_CONTEXT_PACKAGE__ELEMENTS, DataContextPackage.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_ELEMENT__NAME: + return getName(); + case ContextsPackage.DATA_CONTEXT_ELEMENT__PROPERTIES: + return getProperties(); + case ContextsPackage.DATA_CONTEXT_ELEMENT__PACKAGE: + return getPackage(); + case ContextsPackage.DATA_CONTEXT_ELEMENT__SUPERTYPES: + return getSupertypes(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_ELEMENT__NAME: + setName((String) newValue); + return; + case ContextsPackage.DATA_CONTEXT_ELEMENT__PROPERTIES: + getProperties().clear(); + getProperties().addAll((Collection<? extends Property>) newValue); + return; + case ContextsPackage.DATA_CONTEXT_ELEMENT__PACKAGE: + setPackage((DataContextPackage) newValue); + return; + case ContextsPackage.DATA_CONTEXT_ELEMENT__SUPERTYPES: + getSupertypes().clear(); + getSupertypes().addAll((Collection<? extends DataContextElement>) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_ELEMENT__NAME: + setName(NAME_EDEFAULT); + return; + case ContextsPackage.DATA_CONTEXT_ELEMENT__PROPERTIES: + getProperties().clear(); + return; + case ContextsPackage.DATA_CONTEXT_ELEMENT__PACKAGE: + setPackage((DataContextPackage) null); + return; + case ContextsPackage.DATA_CONTEXT_ELEMENT__SUPERTYPES: + getSupertypes().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_ELEMENT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ContextsPackage.DATA_CONTEXT_ELEMENT__PROPERTIES: + return properties != null && !properties.isEmpty(); + case ContextsPackage.DATA_CONTEXT_ELEMENT__PACKAGE: + return getPackage() != null; + case ContextsPackage.DATA_CONTEXT_ELEMENT__SUPERTYPES: + return supertypes != null && !supertypes.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} // DataContextElementImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/DataContextPackageImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/DataContextPackageImpl.java new file mode 100644 index 00000000000..4a2687d93cf --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/DataContextPackageImpl.java @@ -0,0 +1,176 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts.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.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextElement; +import org.eclipse.papyrus.infra.properties.contexts.DataContextPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Data Context Package</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextPackageImpl#getElements <em>Elements</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DataContextPackageImpl extends DataContextElementImpl implements DataContextPackage { + /** + * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList<DataContextElement> elements; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected DataContextPackageImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ContextsPackage.Literals.DATA_CONTEXT_PACKAGE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<DataContextElement> getElements() { + if (elements == null) { + elements = new EObjectContainmentWithInverseEList<DataContextElement>(DataContextElement.class, this, ContextsPackage.DATA_CONTEXT_PACKAGE__ELEMENTS, ContextsPackage.DATA_CONTEXT_ELEMENT__PACKAGE); + } + return elements; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_PACKAGE__ELEMENTS: + return ((InternalEList<InternalEObject>) (InternalEList<?>) getElements()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_PACKAGE__ELEMENTS: + return ((InternalEList<?>) getElements()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_PACKAGE__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_PACKAGE__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection<? extends DataContextElement>) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_PACKAGE__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_PACKAGE__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // DataContextPackageImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/DataContextRootImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/DataContextRootImpl.java new file mode 100644 index 00000000000..8e11c7e30df --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/DataContextRootImpl.java @@ -0,0 +1,251 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextRoot; +import org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Data Context Root</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextRootImpl#getLabel <em>Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.DataContextRootImpl#getModelElementFactory <em>Model Element Factory</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DataContextRootImpl extends DataContextPackageImpl implements DataContextRoot { + /** + * The default value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLabel() + * @generated + * @ordered + */ + protected static final String LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLabel() + * @generated + * @ordered + */ + protected String label = LABEL_EDEFAULT; + + /** + * The cached value of the '{@link #getModelElementFactory() <em>Model Element Factory</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getModelElementFactory() + * @generated + * @ordered + */ + protected ModelElementFactoryDescriptor modelElementFactory; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected DataContextRootImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ContextsPackage.Literals.DATA_CONTEXT_ROOT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getLabel() { + return label; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setLabel(String newLabel) { + String oldLabel = label; + label = newLabel; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.DATA_CONTEXT_ROOT__LABEL, oldLabel, label)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public ModelElementFactoryDescriptor getModelElementFactory() { + if (modelElementFactory != null && modelElementFactory.eIsProxy()) { + InternalEObject oldModelElementFactory = (InternalEObject) modelElementFactory; + modelElementFactory = (ModelElementFactoryDescriptor) eResolveProxy(oldModelElementFactory); + if (modelElementFactory != oldModelElementFactory) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ContextsPackage.DATA_CONTEXT_ROOT__MODEL_ELEMENT_FACTORY, oldModelElementFactory, modelElementFactory)); + } + } + } + return modelElementFactory; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public ModelElementFactoryDescriptor basicGetModelElementFactory() { + return modelElementFactory; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setModelElementFactory(ModelElementFactoryDescriptor newModelElementFactory) { + ModelElementFactoryDescriptor oldModelElementFactory = modelElementFactory; + modelElementFactory = newModelElementFactory; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.DATA_CONTEXT_ROOT__MODEL_ELEMENT_FACTORY, oldModelElementFactory, modelElementFactory)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_ROOT__LABEL: + return getLabel(); + case ContextsPackage.DATA_CONTEXT_ROOT__MODEL_ELEMENT_FACTORY: + if (resolve) { + return getModelElementFactory(); + } + return basicGetModelElementFactory(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_ROOT__LABEL: + setLabel((String) newValue); + return; + case ContextsPackage.DATA_CONTEXT_ROOT__MODEL_ELEMENT_FACTORY: + setModelElementFactory((ModelElementFactoryDescriptor) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_ROOT__LABEL: + setLabel(LABEL_EDEFAULT); + return; + case ContextsPackage.DATA_CONTEXT_ROOT__MODEL_ELEMENT_FACTORY: + setModelElementFactory((ModelElementFactoryDescriptor) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ContextsPackage.DATA_CONTEXT_ROOT__LABEL: + return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); + case ContextsPackage.DATA_CONTEXT_ROOT__MODEL_ELEMENT_FACTORY: + return modelElementFactory != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (label: "); + result.append(label); + result.append(')'); + return result.toString(); + } + +} // DataContextRootImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/PropertyImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/PropertyImpl.java new file mode 100644 index 00000000000..f706a22dac6 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/PropertyImpl.java @@ -0,0 +1,548 @@ +/***************************************************************************** + * Copyright (c) 2011, 2013 CEA LIST. + * + * 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: + * CEA LIST - Initial API and implementation + * Christian W. Damus - add prototype reference to Context (CDO) + *****************************************************************************/ +package org.eclipse.papyrus.infra.properties.contexts.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextElement; +import org.eclipse.papyrus.infra.properties.contexts.Property; +import org.eclipse.papyrus.infra.properties.environment.Type; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Property</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.PropertyImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.PropertyImpl#getLabel <em>Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.PropertyImpl#getType <em>Type</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.PropertyImpl#getContextElement <em>Context Element</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.PropertyImpl#getMultiplicity <em>Multiplicity</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.PropertyImpl#getDescription <em>Description</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PropertyImpl extends EObjectImpl implements Property { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLabel() + * @generated + * @ordered + */ + protected static final String LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLabel() + * @generated + * @ordered + */ + protected String label = LABEL_EDEFAULT; + + /** + * The default value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getType() + * @generated + * @ordered + */ + protected static final Type TYPE_EDEFAULT = Type.STRING; + + /** + * The cached value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getType() + * @generated + * @ordered + */ + protected Type type = TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getMultiplicity() + * @generated + * @ordered + */ + protected static final int MULTIPLICITY_EDEFAULT = 1; + + /** + * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getMultiplicity() + * @generated + * @ordered + */ + protected int multiplicity = MULTIPLICITY_EDEFAULT; + + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected PropertyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ContextsPackage.Literals.PROPERTY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.PROPERTY__NAME, oldName, name)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getLabel() { + return label; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setLabel(String newLabel) { + String oldLabel = label; + label = newLabel; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.PROPERTY__LABEL, oldLabel, label)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Type getType() { + return type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setType(Type newType) { + Type oldType = type; + type = newType == null ? TYPE_EDEFAULT : newType; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.PROPERTY__TYPE, oldType, type)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public DataContextElement getContextElement() { + if (eContainerFeatureID() != ContextsPackage.PROPERTY__CONTEXT_ELEMENT) { + return null; + } + return (DataContextElement) eInternalContainer(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetContextElement(DataContextElement newContextElement, NotificationChain msgs) { + msgs = eBasicSetContainer((InternalEObject) newContextElement, ContextsPackage.PROPERTY__CONTEXT_ELEMENT, msgs); + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setContextElement(DataContextElement newContextElement) { + if (newContextElement != eInternalContainer() || (eContainerFeatureID() != ContextsPackage.PROPERTY__CONTEXT_ELEMENT && newContextElement != null)) { + if (EcoreUtil.isAncestor(this, newContextElement)) { + throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); + } + NotificationChain msgs = null; + if (eInternalContainer() != null) { + msgs = eBasicRemoveFromContainer(msgs); + } + if (newContextElement != null) { + msgs = ((InternalEObject) newContextElement).eInverseAdd(this, ContextsPackage.DATA_CONTEXT_ELEMENT__PROPERTIES, DataContextElement.class, msgs); + } + msgs = basicSetContextElement(newContextElement, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } + else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.PROPERTY__CONTEXT_ELEMENT, newContextElement, newContextElement)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public int getMultiplicity() { + return multiplicity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setMultiplicity(int newMultiplicity) { + int oldMultiplicity = multiplicity; + multiplicity = newMultiplicity; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.PROPERTY__MULTIPLICITY, oldMultiplicity, multiplicity)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.PROPERTY__DESCRIPTION, oldDescription, description)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.PROPERTY__CONTEXT_ELEMENT: + if (eInternalContainer() != null) { + msgs = eBasicRemoveFromContainer(msgs); + } + return basicSetContextElement((DataContextElement) otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.PROPERTY__CONTEXT_ELEMENT: + return basicSetContextElement(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { + switch (eContainerFeatureID()) { + case ContextsPackage.PROPERTY__CONTEXT_ELEMENT: + return eInternalContainer().eInverseRemove(this, ContextsPackage.DATA_CONTEXT_ELEMENT__PROPERTIES, DataContextElement.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ContextsPackage.PROPERTY__NAME: + return getName(); + case ContextsPackage.PROPERTY__LABEL: + return getLabel(); + case ContextsPackage.PROPERTY__TYPE: + return getType(); + case ContextsPackage.PROPERTY__CONTEXT_ELEMENT: + return getContextElement(); + case ContextsPackage.PROPERTY__MULTIPLICITY: + return getMultiplicity(); + case ContextsPackage.PROPERTY__DESCRIPTION: + return getDescription(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ContextsPackage.PROPERTY__NAME: + setName((String) newValue); + return; + case ContextsPackage.PROPERTY__LABEL: + setLabel((String) newValue); + return; + case ContextsPackage.PROPERTY__TYPE: + setType((Type) newValue); + return; + case ContextsPackage.PROPERTY__CONTEXT_ELEMENT: + setContextElement((DataContextElement) newValue); + return; + case ContextsPackage.PROPERTY__MULTIPLICITY: + setMultiplicity((Integer) newValue); + return; + case ContextsPackage.PROPERTY__DESCRIPTION: + setDescription((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ContextsPackage.PROPERTY__NAME: + setName(NAME_EDEFAULT); + return; + case ContextsPackage.PROPERTY__LABEL: + setLabel(LABEL_EDEFAULT); + return; + case ContextsPackage.PROPERTY__TYPE: + setType(TYPE_EDEFAULT); + return; + case ContextsPackage.PROPERTY__CONTEXT_ELEMENT: + setContextElement((DataContextElement) null); + return; + case ContextsPackage.PROPERTY__MULTIPLICITY: + setMultiplicity(MULTIPLICITY_EDEFAULT); + return; + case ContextsPackage.PROPERTY__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ContextsPackage.PROPERTY__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ContextsPackage.PROPERTY__LABEL: + return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); + case ContextsPackage.PROPERTY__TYPE: + return type != TYPE_EDEFAULT; + case ContextsPackage.PROPERTY__CONTEXT_ELEMENT: + return getContextElement() != null; + case ContextsPackage.PROPERTY__MULTIPLICITY: + return multiplicity != MULTIPLICITY_EDEFAULT; + case ContextsPackage.PROPERTY__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", label: "); + result.append(label); + result.append(", type: "); + result.append(type); + result.append(", multiplicity: "); + result.append(multiplicity); + result.append(", description: "); + result.append(description); + result.append(')'); + return result.toString(); + } + +} // PropertyImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/SectionImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/SectionImpl.java new file mode 100644 index 00000000000..8b26040a27f --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/SectionImpl.java @@ -0,0 +1,435 @@ +/***************************************************************************** + * Copyright (c) 2011, 2013 CEA LIST. + * + * 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: + * CEA LIST - Initial API and implementation + * Christian W. Damus - add prototype reference to Context (CDO) + *****************************************************************************/ +package org.eclipse.papyrus.infra.properties.contexts.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.eclipse.papyrus.infra.constraints.impl.DisplayUnitImpl; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.Section; +import org.eclipse.papyrus.infra.properties.contexts.Tab; +import org.eclipse.papyrus.infra.properties.ui.CompositeWidget; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Section</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.SectionImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.SectionImpl#getTab <em>Tab</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.SectionImpl#getSectionFile <em>Section File</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.SectionImpl#getWidget <em>Widget</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SectionImpl extends DisplayUnitImpl implements Section { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getSectionFile() <em>Section File</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getSectionFile() + * @generated + * @ordered + */ + protected static final String SECTION_FILE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSectionFile() <em>Section File</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getSectionFile() + * @generated + * @ordered + */ + protected String sectionFile = SECTION_FILE_EDEFAULT; + + /** + * The cached value of the '{@link #getWidget() <em>Widget</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getWidget() + * @generated + * @ordered + */ + protected CompositeWidget widget; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected SectionImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ContextsPackage.Literals.SECTION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.SECTION__NAME, oldName, name)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Tab getTab() { + if (eContainerFeatureID() != ContextsPackage.SECTION__TAB) { + return null; + } + return (Tab) eInternalContainer(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetTab(Tab newTab, NotificationChain msgs) { + msgs = eBasicSetContainer((InternalEObject) newTab, ContextsPackage.SECTION__TAB, msgs); + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setTab(Tab newTab) { + if (newTab != eInternalContainer() || (eContainerFeatureID() != ContextsPackage.SECTION__TAB && newTab != null)) { + if (EcoreUtil.isAncestor(this, newTab)) { + throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); + } + NotificationChain msgs = null; + if (eInternalContainer() != null) { + msgs = eBasicRemoveFromContainer(msgs); + } + if (newTab != null) { + msgs = ((InternalEObject) newTab).eInverseAdd(this, ContextsPackage.TAB__SECTIONS, Tab.class, msgs); + } + msgs = basicSetTab(newTab, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } + else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.SECTION__TAB, newTab, newTab)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getSectionFile() { + return sectionFile; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setSectionFile(String newSectionFile) { + String oldSectionFile = sectionFile; + sectionFile = newSectionFile; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.SECTION__SECTION_FILE, oldSectionFile, sectionFile)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public CompositeWidget getWidget() { + if (widget != null && widget.eIsProxy()) { + InternalEObject oldWidget = (InternalEObject) widget; + widget = (CompositeWidget) eResolveProxy(oldWidget); + if (widget != oldWidget) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ContextsPackage.SECTION__WIDGET, oldWidget, widget)); + } + } + } + return widget; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public CompositeWidget basicGetWidget() { + return widget; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setWidget(CompositeWidget newWidget) { + CompositeWidget oldWidget = widget; + widget = newWidget; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.SECTION__WIDGET, oldWidget, widget)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.SECTION__TAB: + if (eInternalContainer() != null) { + msgs = eBasicRemoveFromContainer(msgs); + } + return basicSetTab((Tab) otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.SECTION__TAB: + return basicSetTab(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { + switch (eContainerFeatureID()) { + case ContextsPackage.SECTION__TAB: + return eInternalContainer().eInverseRemove(this, ContextsPackage.TAB__SECTIONS, Tab.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ContextsPackage.SECTION__NAME: + return getName(); + case ContextsPackage.SECTION__TAB: + return getTab(); + case ContextsPackage.SECTION__SECTION_FILE: + return getSectionFile(); + case ContextsPackage.SECTION__WIDGET: + if (resolve) { + return getWidget(); + } + return basicGetWidget(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ContextsPackage.SECTION__NAME: + setName((String) newValue); + return; + case ContextsPackage.SECTION__TAB: + setTab((Tab) newValue); + return; + case ContextsPackage.SECTION__SECTION_FILE: + setSectionFile((String) newValue); + return; + case ContextsPackage.SECTION__WIDGET: + setWidget((CompositeWidget) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ContextsPackage.SECTION__NAME: + setName(NAME_EDEFAULT); + return; + case ContextsPackage.SECTION__TAB: + setTab((Tab) null); + return; + case ContextsPackage.SECTION__SECTION_FILE: + setSectionFile(SECTION_FILE_EDEFAULT); + return; + case ContextsPackage.SECTION__WIDGET: + setWidget((CompositeWidget) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ContextsPackage.SECTION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ContextsPackage.SECTION__TAB: + return getTab() != null; + case ContextsPackage.SECTION__SECTION_FILE: + return SECTION_FILE_EDEFAULT == null ? sectionFile != null : !SECTION_FILE_EDEFAULT.equals(sectionFile); + case ContextsPackage.SECTION__WIDGET: + return widget != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", sectionFile: "); + result.append(sectionFile); + result.append(')'); + return result.toString(); + } + +} // SectionImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/TabImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/TabImpl.java new file mode 100644 index 00000000000..bdad639e66f --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/TabImpl.java @@ -0,0 +1,632 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +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.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.Section; +import org.eclipse.papyrus.infra.properties.contexts.Tab; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Tab</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.TabImpl#getLabel <em>Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.TabImpl#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.TabImpl#getCategory <em>Category</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.TabImpl#getImage <em>Image</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.TabImpl#getAfterTab <em>After Tab</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.TabImpl#getSections <em>Sections</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.TabImpl#isIndented <em>Indented</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.TabImpl#getPriority <em>Priority</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TabImpl extends EObjectImpl implements Tab { + /** + * The default value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLabel() + * @generated + * @ordered + */ + protected static final String LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLabel() + * @generated + * @ordered + */ + protected String label = LABEL_EDEFAULT; + + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getCategory() <em>Category</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getCategory() + * @generated + * @ordered + */ + protected static final String CATEGORY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCategory() <em>Category</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getCategory() + * @generated + * @ordered + */ + protected String category = CATEGORY_EDEFAULT; + + /** + * The default value of the '{@link #getImage() <em>Image</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getImage() + * @generated + * @ordered + */ + protected static final String IMAGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getImage() <em>Image</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getImage() + * @generated + * @ordered + */ + protected String image = IMAGE_EDEFAULT; + + /** + * The cached value of the '{@link #getAfterTab() <em>After Tab</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getAfterTab() + * @generated + * @ordered + */ + protected Tab afterTab; + + /** + * The cached value of the '{@link #getSections() <em>Sections</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getSections() + * @generated + * @ordered + */ + protected EList<Section> sections; + + /** + * The default value of the '{@link #isIndented() <em>Indented</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #isIndented() + * @generated + * @ordered + */ + protected static final boolean INDENTED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIndented() <em>Indented</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #isIndented() + * @generated + * @ordered + */ + protected boolean indented = INDENTED_EDEFAULT; + + /** + * The default value of the '{@link #getPriority() <em>Priority</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getPriority() + * @generated + * @ordered + */ + protected static final int PRIORITY_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getPriority() <em>Priority</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getPriority() + * @generated + * @ordered + */ + protected int priority = PRIORITY_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected TabImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ContextsPackage.Literals.TAB; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getLabel() { + return label; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setLabel(String newLabel) { + String oldLabel = label; + label = newLabel; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.TAB__LABEL, oldLabel, label)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.TAB__ID, oldId, id)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getCategory() { + return category; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setCategory(String newCategory) { + String oldCategory = category; + category = newCategory; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.TAB__CATEGORY, oldCategory, category)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getImage() { + return image; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setImage(String newImage) { + String oldImage = image; + image = newImage; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.TAB__IMAGE, oldImage, image)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Tab getAfterTab() { + if (afterTab != null && afterTab.eIsProxy()) { + InternalEObject oldAfterTab = (InternalEObject) afterTab; + afterTab = (Tab) eResolveProxy(oldAfterTab); + if (afterTab != oldAfterTab) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ContextsPackage.TAB__AFTER_TAB, oldAfterTab, afterTab)); + } + } + } + return afterTab; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Tab basicGetAfterTab() { + return afterTab; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setAfterTab(Tab newAfterTab) { + Tab oldAfterTab = afterTab; + afterTab = newAfterTab; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.TAB__AFTER_TAB, oldAfterTab, afterTab)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<Section> getSections() { + if (sections == null) { + sections = new EObjectContainmentWithInverseEList<Section>(Section.class, this, ContextsPackage.TAB__SECTIONS, ContextsPackage.SECTION__TAB); + } + return sections; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean isIndented() { + return indented; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setIndented(boolean newIndented) { + boolean oldIndented = indented; + indented = newIndented; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.TAB__INDENTED, oldIndented, indented)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public int getPriority() { + return priority; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setPriority(int newPriority) { + int oldPriority = priority; + priority = newPriority; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.TAB__PRIORITY, oldPriority, priority)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.TAB__SECTIONS: + return ((InternalEList<InternalEObject>) (InternalEList<?>) getSections()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.TAB__SECTIONS: + return ((InternalEList<?>) getSections()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ContextsPackage.TAB__LABEL: + return getLabel(); + case ContextsPackage.TAB__ID: + return getId(); + case ContextsPackage.TAB__CATEGORY: + return getCategory(); + case ContextsPackage.TAB__IMAGE: + return getImage(); + case ContextsPackage.TAB__AFTER_TAB: + if (resolve) { + return getAfterTab(); + } + return basicGetAfterTab(); + case ContextsPackage.TAB__SECTIONS: + return getSections(); + case ContextsPackage.TAB__INDENTED: + return isIndented(); + case ContextsPackage.TAB__PRIORITY: + return getPriority(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ContextsPackage.TAB__LABEL: + setLabel((String) newValue); + return; + case ContextsPackage.TAB__ID: + setId((String) newValue); + return; + case ContextsPackage.TAB__CATEGORY: + setCategory((String) newValue); + return; + case ContextsPackage.TAB__IMAGE: + setImage((String) newValue); + return; + case ContextsPackage.TAB__AFTER_TAB: + setAfterTab((Tab) newValue); + return; + case ContextsPackage.TAB__SECTIONS: + getSections().clear(); + getSections().addAll((Collection<? extends Section>) newValue); + return; + case ContextsPackage.TAB__INDENTED: + setIndented((Boolean) newValue); + return; + case ContextsPackage.TAB__PRIORITY: + setPriority((Integer) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ContextsPackage.TAB__LABEL: + setLabel(LABEL_EDEFAULT); + return; + case ContextsPackage.TAB__ID: + setId(ID_EDEFAULT); + return; + case ContextsPackage.TAB__CATEGORY: + setCategory(CATEGORY_EDEFAULT); + return; + case ContextsPackage.TAB__IMAGE: + setImage(IMAGE_EDEFAULT); + return; + case ContextsPackage.TAB__AFTER_TAB: + setAfterTab((Tab) null); + return; + case ContextsPackage.TAB__SECTIONS: + getSections().clear(); + return; + case ContextsPackage.TAB__INDENTED: + setIndented(INDENTED_EDEFAULT); + return; + case ContextsPackage.TAB__PRIORITY: + setPriority(PRIORITY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ContextsPackage.TAB__LABEL: + return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); + case ContextsPackage.TAB__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ContextsPackage.TAB__CATEGORY: + return CATEGORY_EDEFAULT == null ? category != null : !CATEGORY_EDEFAULT.equals(category); + case ContextsPackage.TAB__IMAGE: + return IMAGE_EDEFAULT == null ? image != null : !IMAGE_EDEFAULT.equals(image); + case ContextsPackage.TAB__AFTER_TAB: + return afterTab != null; + case ContextsPackage.TAB__SECTIONS: + return sections != null && !sections.isEmpty(); + case ContextsPackage.TAB__INDENTED: + return indented != INDENTED_EDEFAULT; + case ContextsPackage.TAB__PRIORITY: + return priority != PRIORITY_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (label: "); + result.append(label); + result.append(", id: "); + result.append(id); + result.append(", category: "); + result.append(category); + result.append(", image: "); + result.append(image); + result.append(", indented: "); + result.append(indented); + result.append(", priority: "); + result.append(priority); + result.append(')'); + return result.toString(); + } + +} // TabImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/UnknownPropertyImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/UnknownPropertyImpl.java new file mode 100644 index 00000000000..0b49f036d2a --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/UnknownPropertyImpl.java @@ -0,0 +1,44 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.contexts.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.UnknownProperty; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Unknown Property</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class UnknownPropertyImpl extends PropertyImpl implements UnknownProperty { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected UnknownPropertyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ContextsPackage.Literals.UNKNOWN_PROPERTY; + } + +} // UnknownPropertyImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/ViewImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/ViewImpl.java new file mode 100644 index 00000000000..82355891178 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/impl/ViewImpl.java @@ -0,0 +1,445 @@ +/***************************************************************************** + * Copyright (c) 2011, 2013 CEA LIST. + * + * 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: + * CEA LIST - Initial API and implementation + * Christian W. Damus - add prototype reference to Context (CDO) + *****************************************************************************/ +package org.eclipse.papyrus.infra.properties.contexts.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +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.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.eclipse.papyrus.infra.constraints.impl.DisplayUnitImpl; +import org.eclipse.papyrus.infra.properties.contexts.Context; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextElement; +import org.eclipse.papyrus.infra.properties.contexts.Section; +import org.eclipse.papyrus.infra.properties.contexts.View; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>View</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ViewImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ViewImpl#getSections <em>Sections</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ViewImpl#getContext <em>Context</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ViewImpl#isAutomaticContext <em>Automatic Context</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.contexts.impl.ViewImpl#getDatacontexts <em>Datacontexts</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ViewImpl extends DisplayUnitImpl implements View { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getSections() <em>Sections</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getSections() + * @generated + * @ordered + */ + protected EList<Section> sections; + + /** + * The default value of the '{@link #isAutomaticContext() <em>Automatic Context</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #isAutomaticContext() + * @generated + * @ordered + */ + protected static final boolean AUTOMATIC_CONTEXT_EDEFAULT = false; + + /** + * The cached value of the '{@link #isAutomaticContext() <em>Automatic Context</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #isAutomaticContext() + * @generated + * @ordered + */ + protected boolean automaticContext = AUTOMATIC_CONTEXT_EDEFAULT; + + /** + * The cached value of the '{@link #getDatacontexts() <em>Datacontexts</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getDatacontexts() + * @generated + * @ordered + */ + protected EList<DataContextElement> datacontexts; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected ViewImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ContextsPackage.Literals.VIEW; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.VIEW__NAME, oldName, name)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<Section> getSections() { + if (sections == null) { + sections = new EObjectResolvingEList<Section>(Section.class, this, ContextsPackage.VIEW__SECTIONS); + } + return sections; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Context getContext() { + if (eContainerFeatureID() != ContextsPackage.VIEW__CONTEXT) { + return null; + } + return (Context) eInternalContainer(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetContext(Context newContext, NotificationChain msgs) { + msgs = eBasicSetContainer((InternalEObject) newContext, ContextsPackage.VIEW__CONTEXT, msgs); + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setContext(Context newContext) { + if (newContext != eInternalContainer() || (eContainerFeatureID() != ContextsPackage.VIEW__CONTEXT && newContext != null)) { + if (EcoreUtil.isAncestor(this, newContext)) { + throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); + } + NotificationChain msgs = null; + if (eInternalContainer() != null) { + msgs = eBasicRemoveFromContainer(msgs); + } + if (newContext != null) { + msgs = ((InternalEObject) newContext).eInverseAdd(this, ContextsPackage.CONTEXT__VIEWS, Context.class, msgs); + } + msgs = basicSetContext(newContext, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } + else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.VIEW__CONTEXT, newContext, newContext)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean isAutomaticContext() { + return automaticContext; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setAutomaticContext(boolean newAutomaticContext) { + boolean oldAutomaticContext = automaticContext; + automaticContext = newAutomaticContext; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ContextsPackage.VIEW__AUTOMATIC_CONTEXT, oldAutomaticContext, automaticContext)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<DataContextElement> getDatacontexts() { + if (datacontexts == null) { + datacontexts = new EObjectResolvingEList<DataContextElement>(DataContextElement.class, this, ContextsPackage.VIEW__DATACONTEXTS); + } + return datacontexts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.VIEW__CONTEXT: + if (eInternalContainer() != null) { + msgs = eBasicRemoveFromContainer(msgs); + } + return basicSetContext((Context) otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ContextsPackage.VIEW__CONTEXT: + return basicSetContext(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { + switch (eContainerFeatureID()) { + case ContextsPackage.VIEW__CONTEXT: + return eInternalContainer().eInverseRemove(this, ContextsPackage.CONTEXT__VIEWS, Context.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ContextsPackage.VIEW__NAME: + return getName(); + case ContextsPackage.VIEW__SECTIONS: + return getSections(); + case ContextsPackage.VIEW__CONTEXT: + return getContext(); + case ContextsPackage.VIEW__AUTOMATIC_CONTEXT: + return isAutomaticContext(); + case ContextsPackage.VIEW__DATACONTEXTS: + return getDatacontexts(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ContextsPackage.VIEW__NAME: + setName((String) newValue); + return; + case ContextsPackage.VIEW__SECTIONS: + getSections().clear(); + getSections().addAll((Collection<? extends Section>) newValue); + return; + case ContextsPackage.VIEW__CONTEXT: + setContext((Context) newValue); + return; + case ContextsPackage.VIEW__AUTOMATIC_CONTEXT: + setAutomaticContext((Boolean) newValue); + return; + case ContextsPackage.VIEW__DATACONTEXTS: + getDatacontexts().clear(); + getDatacontexts().addAll((Collection<? extends DataContextElement>) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ContextsPackage.VIEW__NAME: + setName(NAME_EDEFAULT); + return; + case ContextsPackage.VIEW__SECTIONS: + getSections().clear(); + return; + case ContextsPackage.VIEW__CONTEXT: + setContext((Context) null); + return; + case ContextsPackage.VIEW__AUTOMATIC_CONTEXT: + setAutomaticContext(AUTOMATIC_CONTEXT_EDEFAULT); + return; + case ContextsPackage.VIEW__DATACONTEXTS: + getDatacontexts().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ContextsPackage.VIEW__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ContextsPackage.VIEW__SECTIONS: + return sections != null && !sections.isEmpty(); + case ContextsPackage.VIEW__CONTEXT: + return getContext() != null; + case ContextsPackage.VIEW__AUTOMATIC_CONTEXT: + return automaticContext != AUTOMATIC_CONTEXT_EDEFAULT; + case ContextsPackage.VIEW__DATACONTEXTS: + return datacontexts != null && !datacontexts.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", automaticContext: "); + result.append(automaticContext); + result.append(')'); + return result.toString(); + } + +} // ViewImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/util/ContextsAdapterFactory.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/util/ContextsAdapterFactory.java new file mode 100644 index 00000000000..74ab38ebf95 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/util/ContextsAdapterFactory.java @@ -0,0 +1,347 @@ +/***************************************************************************** + * Copyright (c) 2011, 2015 CEA LIST, Christian W. Damus, and others. + * + * 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: + * CEA LIST - Initial API and implementation + * Christian W. Damus - bug 482927 + *****************************************************************************/ +package org.eclipse.papyrus.infra.properties.contexts.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EModelElement; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.infra.constraints.DisplayUnit; +import org.eclipse.papyrus.infra.properties.contexts.Context; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextElement; +import org.eclipse.papyrus.infra.properties.contexts.DataContextPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextRoot; +import org.eclipse.papyrus.infra.properties.contexts.Property; +import org.eclipse.papyrus.infra.properties.contexts.Section; +import org.eclipse.papyrus.infra.properties.contexts.Tab; +import org.eclipse.papyrus.infra.properties.contexts.UnknownProperty; +import org.eclipse.papyrus.infra.properties.contexts.View; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage + * @generated + */ +public class ContextsAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected static ContextsPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public ContextsAdapterFactory() { + if (modelPackage == null) { + modelPackage = ContextsPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject) object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected ContextsSwitch<Adapter> modelSwitch = new ContextsSwitch<Adapter>() { + @Override + public Adapter caseContext(Context object) { + return createContextAdapter(); + } + + @Override + public Adapter caseTab(Tab object) { + return createTabAdapter(); + } + + @Override + public Adapter caseView(View object) { + return createViewAdapter(); + } + + @Override + public Adapter caseSection(Section object) { + return createSectionAdapter(); + } + + @Override + public Adapter caseDataContextElement(DataContextElement object) { + return createDataContextElementAdapter(); + } + + @Override + public Adapter caseProperty(Property object) { + return createPropertyAdapter(); + } + + @Override + public Adapter caseUnknownProperty(UnknownProperty object) { + return createUnknownPropertyAdapter(); + } + + @Override + public Adapter caseDataContextPackage(DataContextPackage object) { + return createDataContextPackageAdapter(); + } + + @Override + public Adapter caseDataContextRoot(DataContextRoot object) { + return createDataContextRootAdapter(); + } + + @Override + public Adapter caseEModelElement(EModelElement object) { + return createEModelElementAdapter(); + } + + @Override + public Adapter caseDisplayUnit(DisplayUnit object) { + return createDisplayUnitAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param target + * the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.contexts.Context <em>Context</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.contexts.Context + * @generated + */ + public Adapter createContextAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.contexts.Tab <em>Tab</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.contexts.Tab + * @generated + */ + public Adapter createTabAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.contexts.View <em>View</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.contexts.View + * @generated + */ + public Adapter createViewAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.contexts.Section <em>Section</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.contexts.Section + * @generated + */ + public Adapter createSectionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextElement <em>Data Context Element</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextElement + * @generated + */ + public Adapter createDataContextElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.contexts.Property <em>Property</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.contexts.Property + * @generated + */ + public Adapter createPropertyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.contexts.UnknownProperty <em>Unknown Property</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.contexts.UnknownProperty + * @generated + */ + public Adapter createUnknownPropertyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextPackage <em>Data Context Package</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextPackage + * @generated + */ + public Adapter createDataContextPackageAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.contexts.DataContextRoot <em>Data Context Root</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.contexts.DataContextRoot + * @generated + */ + public Adapter createDataContextRootAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EModelElement <em>EModel Element</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.emf.ecore.EModelElement + * @generated + */ + public Adapter createEModelElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.constraints.DisplayUnit <em>Display Unit</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.constraints.DisplayUnit + * @generated + */ + public Adapter createDisplayUnitAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} // ContextsAdapterFactory diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/util/ContextsResourceFactoryImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/util/ContextsResourceFactoryImpl.java new file mode 100644 index 00000000000..58adfffe591 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/util/ContextsResourceFactoryImpl.java @@ -0,0 +1,44 @@ +/** + */ +package org.eclipse.papyrus.infra.properties.contexts.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +/** + * <!-- begin-user-doc --> + * The <b>Resource Factory</b> associated with the package. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.util.ContextsResourceImpl + * @generated + */ +public class ContextsResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public ContextsResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + Resource result = new ContextsResourceImpl(uri); + return result; + } + +} // ContextsResourceFactoryImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/util/ContextsResourceImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/util/ContextsResourceImpl.java new file mode 100644 index 00000000000..6677bc7566c --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/util/ContextsResourceImpl.java @@ -0,0 +1,41 @@ +/** + */ +package org.eclipse.papyrus.infra.properties.contexts.util; + +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; + +/** + * <!-- begin-user-doc --> + * The <b>Resource </b> associated with the package. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.util.ContextsResourceFactoryImpl + * @generated + */ +public class ContextsResourceImpl extends XMIResourceImpl { + /** + * Creates an instance of the resource. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param uri + * the URI of the new resource. + * @generated + */ + public ContextsResourceImpl(URI uri) { + super(uri); + } + + /** + * @see org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl#useUUIDs() + * + * @return + * @generated NOT + */ + @Override + protected boolean useUUIDs() { + return true; + } + +} // ContextsResourceImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/util/ContextsSwitch.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/util/ContextsSwitch.java new file mode 100644 index 00000000000..e068e991ee1 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/contexts/util/ContextsSwitch.java @@ -0,0 +1,396 @@ +/***************************************************************************** + * Copyright (c) 2011, 2015 CEA LIST, Christian W. Damus, and others. + * + * 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: + * CEA LIST - Initial API and implementation + * Christian W. Damus - bug 482927 + *****************************************************************************/ +package org.eclipse.papyrus.infra.properties.contexts.util; + +import org.eclipse.emf.ecore.EModelElement; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.util.Switch; +import org.eclipse.papyrus.infra.constraints.DisplayUnit; +import org.eclipse.papyrus.infra.properties.contexts.Context; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextElement; +import org.eclipse.papyrus.infra.properties.contexts.DataContextPackage; +import org.eclipse.papyrus.infra.properties.contexts.DataContextRoot; +import org.eclipse.papyrus.infra.properties.contexts.Property; +import org.eclipse.papyrus.infra.properties.contexts.Section; +import org.eclipse.papyrus.infra.properties.contexts.Tab; +import org.eclipse.papyrus.infra.properties.contexts.UnknownProperty; +import org.eclipse.papyrus.infra.properties.contexts.View; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.contexts.ContextsPackage + * @generated + */ +public class ContextsSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected static ContextsPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public ContextsSwitch() { + if (modelPackage == null) { + modelPackage = ContextsPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param ePackage + * the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case ContextsPackage.CONTEXT: { + Context context = (Context) theEObject; + T result = caseContext(context); + if (result == null) { + result = caseEModelElement(context); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case ContextsPackage.TAB: { + Tab tab = (Tab) theEObject; + T result = caseTab(tab); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case ContextsPackage.VIEW: { + View view = (View) theEObject; + T result = caseView(view); + if (result == null) { + result = caseDisplayUnit(view); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case ContextsPackage.SECTION: { + Section section = (Section) theEObject; + T result = caseSection(section); + if (result == null) { + result = caseDisplayUnit(section); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case ContextsPackage.DATA_CONTEXT_ELEMENT: { + DataContextElement dataContextElement = (DataContextElement) theEObject; + T result = caseDataContextElement(dataContextElement); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case ContextsPackage.PROPERTY: { + Property property = (Property) theEObject; + T result = caseProperty(property); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case ContextsPackage.UNKNOWN_PROPERTY: { + UnknownProperty unknownProperty = (UnknownProperty) theEObject; + T result = caseUnknownProperty(unknownProperty); + if (result == null) { + result = caseProperty(unknownProperty); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case ContextsPackage.DATA_CONTEXT_PACKAGE: { + DataContextPackage dataContextPackage = (DataContextPackage) theEObject; + T result = caseDataContextPackage(dataContextPackage); + if (result == null) { + result = caseDataContextElement(dataContextPackage); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case ContextsPackage.DATA_CONTEXT_ROOT: { + DataContextRoot dataContextRoot = (DataContextRoot) theEObject; + T result = caseDataContextRoot(dataContextRoot); + if (result == null) { + result = caseDataContextPackage(dataContextRoot); + } + if (result == null) { + result = caseDataContextElement(dataContextRoot); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Context</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Context</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContext(Context object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Tab</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Tab</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTab(Tab object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>View</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>View</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseView(View object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Section</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Section</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSection(Section object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Data Context Element</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Data Context Element</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDataContextElement(DataContextElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Property</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Property</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProperty(Property object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Unknown Property</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Unknown Property</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUnknownProperty(UnknownProperty object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Data Context Package</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Data Context Package</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDataContextPackage(DataContextPackage object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Data Context Root</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Data Context Root</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDataContextRoot(DataContextRoot object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EModel Element</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EModel Element</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEModelElement(EModelElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Display Unit</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Display Unit</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDisplayUnit(DisplayUnit object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} // ContextsSwitch diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/CompositeWidgetType.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/CompositeWidgetType.java new file mode 100644 index 00000000000..0c0097e1676 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/CompositeWidgetType.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Composite Widget Type</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getCompositeWidgetType() + * @model + * @generated + */ +public interface CompositeWidgetType extends WidgetType { +} // CompositeWidgetType diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/Environment.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/Environment.java new file mode 100644 index 00000000000..8a7a42f63f0 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/Environment.java @@ -0,0 +1,147 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.papyrus.infra.constraints.environment.ConstraintEnvironment; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Environment</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.Environment#getModelElementFactories <em>Model Element Factories</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.Environment#getWidgetTypes <em>Widget Types</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.Environment#getPropertyEditorTypes <em>Property Editor Types</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.Environment#getCompositeWidgetTypes <em>Composite Widget Types</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.Environment#getLayoutTypes <em>Layout Types</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.Environment#getNamespaces <em>Namespaces</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.Environment#getMiscClasses <em>Misc Classes</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getEnvironment() + * @model + * @generated + */ +public interface Environment extends ConstraintEnvironment { + /** + * Returns the value of the '<em><b>Model Element Factories</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Model Element Factories</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Model Element Factories</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getEnvironment_ModelElementFactories() + * @model containment="true" + * @generated + */ + EList<ModelElementFactoryDescriptor> getModelElementFactories(); + + /** + * Returns the value of the '<em><b>Widget Types</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.environment.StandardWidgetType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Widget Types</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Widget Types</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getEnvironment_WidgetTypes() + * @model containment="true" + * @generated + */ + EList<StandardWidgetType> getWidgetTypes(); + + /** + * Returns the value of the '<em><b>Property Editor Types</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.environment.PropertyEditorType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Property Editor Types</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Property Editor Types</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getEnvironment_PropertyEditorTypes() + * @model containment="true" + * @generated + */ + EList<PropertyEditorType> getPropertyEditorTypes(); + + /** + * Returns the value of the '<em><b>Composite Widget Types</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.environment.CompositeWidgetType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Composite Widget Types</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Composite Widget Types</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getEnvironment_CompositeWidgetTypes() + * @model containment="true" + * @generated + */ + EList<CompositeWidgetType> getCompositeWidgetTypes(); + + /** + * Returns the value of the '<em><b>Layout Types</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.environment.LayoutType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Layout Types</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Layout Types</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getEnvironment_LayoutTypes() + * @model containment="true" + * @generated + */ + EList<LayoutType> getLayoutTypes(); + + /** + * Returns the value of the '<em><b>Namespaces</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.environment.Namespace}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Namespaces</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Namespaces</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getEnvironment_Namespaces() + * @model containment="true" + * @generated + */ + EList<Namespace> getNamespaces(); + + /** + * Returns the value of the '<em><b>Misc Classes</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.environment.MiscClass}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Misc Classes</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Misc Classes</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getEnvironment_MiscClasses() + * @model containment="true" + * @generated + */ + EList<MiscClass> getMiscClasses(); + +} // Environment diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/EnvironmentFactory.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/EnvironmentFactory.java new file mode 100644 index 00000000000..3dc2aa82771 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/EnvironmentFactory.java @@ -0,0 +1,120 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage + * @generated + */ +public interface EnvironmentFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EnvironmentFactory eINSTANCE = org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Environment</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Environment</em>'. + * @generated + */ + Environment createEnvironment(); + + /** + * Returns a new object of class '<em>Property Editor Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Property Editor Type</em>'. + * @generated + */ + PropertyEditorType createPropertyEditorType(); + + /** + * Returns a new object of class '<em>Composite Widget Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Composite Widget Type</em>'. + * @generated + */ + CompositeWidgetType createCompositeWidgetType(); + + /** + * Returns a new object of class '<em>Layout Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Layout Type</em>'. + * @generated + */ + LayoutType createLayoutType(); + + /** + * Returns a new object of class '<em>Model Element Factory Descriptor</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Model Element Factory Descriptor</em>'. + * @generated + */ + ModelElementFactoryDescriptor createModelElementFactoryDescriptor(); + + /** + * Returns a new object of class '<em>Standard Widget Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Standard Widget Type</em>'. + * @generated + */ + StandardWidgetType createStandardWidgetType(); + + /** + * Returns a new object of class '<em>Namespace</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Namespace</em>'. + * @generated + */ + Namespace createNamespace(); + + /** + * Returns a new object of class '<em>Misc Class</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Misc Class</em>'. + * @generated + */ + MiscClass createMiscClass(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the package supported by this factory. + * @generated + */ + EnvironmentPackage getEnvironmentPackage(); + +} // EnvironmentFactory diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/EnvironmentPackage.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/EnvironmentPackage.java new file mode 100644 index 00000000000..e80ace2c6d1 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/EnvironmentPackage.java @@ -0,0 +1,1267 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentFactory + * @model kind="package" + * @generated + */ +public interface EnvironmentPackage extends EPackage { + + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + String eNAME = "environment"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/properties/environment/0.9"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + String eNS_PREFIX = "environment"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EnvironmentPackage eINSTANCE = org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentImpl <em>Environment</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getEnvironment() + * @generated + */ + int ENVIRONMENT = 0; + + /** + * The feature id for the '<em><b>Constraint Types</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ENVIRONMENT__CONSTRAINT_TYPES = org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage.CONSTRAINT_ENVIRONMENT__CONSTRAINT_TYPES; + + /** + * The feature id for the '<em><b>Model Element Factories</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ENVIRONMENT__MODEL_ELEMENT_FACTORIES = org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage.CONSTRAINT_ENVIRONMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Widget Types</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ENVIRONMENT__WIDGET_TYPES = org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage.CONSTRAINT_ENVIRONMENT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Property Editor Types</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ENVIRONMENT__PROPERTY_EDITOR_TYPES = org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage.CONSTRAINT_ENVIRONMENT_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Composite Widget Types</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ENVIRONMENT__COMPOSITE_WIDGET_TYPES = org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage.CONSTRAINT_ENVIRONMENT_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Layout Types</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ENVIRONMENT__LAYOUT_TYPES = org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage.CONSTRAINT_ENVIRONMENT_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Namespaces</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ENVIRONMENT__NAMESPACES = org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage.CONSTRAINT_ENVIRONMENT_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Misc Classes</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ENVIRONMENT__MISC_CLASSES = org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage.CONSTRAINT_ENVIRONMENT_FEATURE_COUNT + 6; + + /** + * The number of structural features of the '<em>Environment</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ENVIRONMENT_FEATURE_COUNT = org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage.CONSTRAINT_ENVIRONMENT_FEATURE_COUNT + 7; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.WidgetTypeImpl <em>Widget Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.WidgetTypeImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getWidgetType() + * @generated + */ + int WIDGET_TYPE = 2; + + /** + * The feature id for the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int WIDGET_TYPE__LABEL = 0; + + /** + * The feature id for the '<em><b>Widget Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int WIDGET_TYPE__WIDGET_CLASS = 1; + + /** + * The feature id for the '<em><b>Namespace</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int WIDGET_TYPE__NAMESPACE = 2; + + /** + * The number of structural features of the '<em>Widget Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int WIDGET_TYPE_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.PropertyEditorTypeImpl <em>Property Editor Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.PropertyEditorTypeImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getPropertyEditorType() + * @generated + */ + int PROPERTY_EDITOR_TYPE = 1; + + /** + * The feature id for the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR_TYPE__LABEL = WIDGET_TYPE__LABEL; + + /** + * The feature id for the '<em><b>Widget Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR_TYPE__WIDGET_CLASS = WIDGET_TYPE__WIDGET_CLASS; + + /** + * The feature id for the '<em><b>Namespace</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR_TYPE__NAMESPACE = WIDGET_TYPE__NAMESPACE; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR_TYPE__TYPE = WIDGET_TYPE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Multiplicity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR_TYPE__MULTIPLICITY = WIDGET_TYPE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Property Editor Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR_TYPE_FEATURE_COUNT = WIDGET_TYPE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.CompositeWidgetTypeImpl <em>Composite Widget Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.CompositeWidgetTypeImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getCompositeWidgetType() + * @generated + */ + int COMPOSITE_WIDGET_TYPE = 3; + + /** + * The feature id for the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPOSITE_WIDGET_TYPE__LABEL = WIDGET_TYPE__LABEL; + + /** + * The feature id for the '<em><b>Widget Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPOSITE_WIDGET_TYPE__WIDGET_CLASS = WIDGET_TYPE__WIDGET_CLASS; + + /** + * The feature id for the '<em><b>Namespace</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPOSITE_WIDGET_TYPE__NAMESPACE = WIDGET_TYPE__NAMESPACE; + + /** + * The number of structural features of the '<em>Composite Widget Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPOSITE_WIDGET_TYPE_FEATURE_COUNT = WIDGET_TYPE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.LayoutTypeImpl <em>Layout Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.LayoutTypeImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getLayoutType() + * @generated + */ + int LAYOUT_TYPE = 4; + + /** + * The feature id for the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LAYOUT_TYPE__LABEL = WIDGET_TYPE__LABEL; + + /** + * The feature id for the '<em><b>Widget Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LAYOUT_TYPE__WIDGET_CLASS = WIDGET_TYPE__WIDGET_CLASS; + + /** + * The feature id for the '<em><b>Namespace</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LAYOUT_TYPE__NAMESPACE = WIDGET_TYPE__NAMESPACE; + + /** + * The number of structural features of the '<em>Layout Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LAYOUT_TYPE_FEATURE_COUNT = WIDGET_TYPE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.ModelElementFactoryDescriptorImpl <em>Model Element Factory Descriptor</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.ModelElementFactoryDescriptorImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getModelElementFactoryDescriptor() + * @generated + */ + int MODEL_ELEMENT_FACTORY_DESCRIPTOR = 5; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MODEL_ELEMENT_FACTORY_DESCRIPTOR__NAME = 0; + + /** + * The feature id for the '<em><b>Factory Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MODEL_ELEMENT_FACTORY_DESCRIPTOR__FACTORY_CLASS = 1; + + /** + * The number of structural features of the '<em>Model Element Factory Descriptor</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MODEL_ELEMENT_FACTORY_DESCRIPTOR_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.StandardWidgetTypeImpl <em>Standard Widget Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.StandardWidgetTypeImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getStandardWidgetType() + * @generated + */ + int STANDARD_WIDGET_TYPE = 6; + + /** + * The feature id for the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int STANDARD_WIDGET_TYPE__LABEL = WIDGET_TYPE__LABEL; + + /** + * The feature id for the '<em><b>Widget Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int STANDARD_WIDGET_TYPE__WIDGET_CLASS = WIDGET_TYPE__WIDGET_CLASS; + + /** + * The feature id for the '<em><b>Namespace</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int STANDARD_WIDGET_TYPE__NAMESPACE = WIDGET_TYPE__NAMESPACE; + + /** + * The number of structural features of the '<em>Standard Widget Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int STANDARD_WIDGET_TYPE_FEATURE_COUNT = WIDGET_TYPE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.NamespaceImpl <em>Namespace</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.NamespaceImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getNamespace() + * @generated + */ + int NAMESPACE = 7; + + /** + * The feature id for the '<em><b>Prefix</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int NAMESPACE__PREFIX = 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int NAMESPACE__NAME = 1; + + /** + * The feature id for the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int NAMESPACE__VALUE = 2; + + /** + * The number of structural features of the '<em>Namespace</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int NAMESPACE_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.MiscClassImpl <em>Misc Class</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.MiscClassImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getMiscClass() + * @generated + */ + int MISC_CLASS = 8; + + /** + * The feature id for the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MISC_CLASS__LABEL = 0; + + /** + * The feature id for the '<em><b>Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MISC_CLASS__CLASS = 1; + + /** + * The feature id for the '<em><b>Namespace</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MISC_CLASS__NAMESPACE = 2; + + /** + * The number of structural features of the '<em>Misc Class</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MISC_CLASS_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.environment.Type <em>Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.Type + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getType() + * @generated + */ + int TYPE = 9; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.environment.Environment <em>Environment</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Environment</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Environment + * @generated + */ + EClass getEnvironment(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.environment.Environment#getModelElementFactories <em>Model Element Factories</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Model Element Factories</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Environment#getModelElementFactories() + * @see #getEnvironment() + * @generated + */ + EReference getEnvironment_ModelElementFactories(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.environment.Environment#getWidgetTypes <em>Widget Types</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Widget Types</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Environment#getWidgetTypes() + * @see #getEnvironment() + * @generated + */ + EReference getEnvironment_WidgetTypes(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.environment.Environment#getPropertyEditorTypes <em>Property Editor Types</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Property Editor Types</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Environment#getPropertyEditorTypes() + * @see #getEnvironment() + * @generated + */ + EReference getEnvironment_PropertyEditorTypes(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.environment.Environment#getCompositeWidgetTypes <em>Composite Widget Types</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Composite Widget Types</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Environment#getCompositeWidgetTypes() + * @see #getEnvironment() + * @generated + */ + EReference getEnvironment_CompositeWidgetTypes(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.environment.Environment#getLayoutTypes <em>Layout Types</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Layout Types</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Environment#getLayoutTypes() + * @see #getEnvironment() + * @generated + */ + EReference getEnvironment_LayoutTypes(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.environment.Environment#getNamespaces <em>Namespaces</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Namespaces</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Environment#getNamespaces() + * @see #getEnvironment() + * @generated + */ + EReference getEnvironment_Namespaces(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.environment.Environment#getMiscClasses <em>Misc Classes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Misc Classes</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Environment#getMiscClasses() + * @see #getEnvironment() + * @generated + */ + EReference getEnvironment_MiscClasses(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.environment.PropertyEditorType <em>Property Editor Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Property Editor Type</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.PropertyEditorType + * @generated + */ + EClass getPropertyEditorType(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.environment.PropertyEditorType#getType <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Type</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.PropertyEditorType#getType() + * @see #getPropertyEditorType() + * @generated + */ + EAttribute getPropertyEditorType_Type(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.environment.PropertyEditorType#getMultiplicity <em>Multiplicity</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Multiplicity</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.PropertyEditorType#getMultiplicity() + * @see #getPropertyEditorType() + * @generated + */ + EAttribute getPropertyEditorType_Multiplicity(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.environment.WidgetType <em>Widget Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Widget Type</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.WidgetType + * @generated + */ + EClass getWidgetType(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.environment.WidgetType#getLabel <em>Label</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Label</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.WidgetType#getLabel() + * @see #getWidgetType() + * @generated + */ + EAttribute getWidgetType_Label(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.environment.WidgetType#getWidgetClass <em>Widget Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Widget Class</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.WidgetType#getWidgetClass() + * @see #getWidgetType() + * @generated + */ + EAttribute getWidgetType_WidgetClass(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.properties.environment.WidgetType#getNamespace <em>Namespace</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Namespace</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.WidgetType#getNamespace() + * @see #getWidgetType() + * @generated + */ + EReference getWidgetType_Namespace(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.environment.CompositeWidgetType <em>Composite Widget Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Composite Widget Type</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.CompositeWidgetType + * @generated + */ + EClass getCompositeWidgetType(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.environment.LayoutType <em>Layout Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Layout Type</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.LayoutType + * @generated + */ + EClass getLayoutType(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor <em>Model Element Factory Descriptor</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Model Element Factory Descriptor</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor + * @generated + */ + EClass getModelElementFactoryDescriptor(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor#getName() + * @see #getModelElementFactoryDescriptor() + * @generated + */ + EAttribute getModelElementFactoryDescriptor_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor#getFactoryClass <em>Factory Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Factory Class</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor#getFactoryClass() + * @see #getModelElementFactoryDescriptor() + * @generated + */ + EAttribute getModelElementFactoryDescriptor_FactoryClass(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.environment.StandardWidgetType <em>Standard Widget Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Standard Widget Type</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.StandardWidgetType + * @generated + */ + EClass getStandardWidgetType(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.environment.Namespace <em>Namespace</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Namespace</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Namespace + * @generated + */ + EClass getNamespace(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.environment.Namespace#getPrefix <em>Prefix</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Prefix</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Namespace#getPrefix() + * @see #getNamespace() + * @generated + */ + EAttribute getNamespace_Prefix(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.environment.Namespace#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Namespace#getName() + * @see #getNamespace() + * @generated + */ + EAttribute getNamespace_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.environment.Namespace#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Value</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Namespace#getValue() + * @see #getNamespace() + * @generated + */ + EAttribute getNamespace_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.environment.MiscClass <em>Misc Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Misc Class</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.MiscClass + * @generated + */ + EClass getMiscClass(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.environment.MiscClass#getLabel <em>Label</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Label</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.MiscClass#getLabel() + * @see #getMiscClass() + * @generated + */ + EAttribute getMiscClass_Label(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.environment.MiscClass#getClass_ <em>Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Class</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.MiscClass#getClass_() + * @see #getMiscClass() + * @generated + */ + EAttribute getMiscClass_Class(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.properties.environment.MiscClass#getNamespace <em>Namespace</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Namespace</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.MiscClass#getNamespace() + * @see #getMiscClass() + * @generated + */ + EReference getMiscClass_Namespace(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.infra.properties.environment.Type <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for enum '<em>Type</em>'. + * @see org.eclipse.papyrus.infra.properties.environment.Type + * @generated + */ + EEnum getType(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the factory that creates the instances of the model. + * @generated + */ + EnvironmentFactory getEnvironmentFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * + * @generated + */ + interface Literals { + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentImpl <em>Environment</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getEnvironment() + * @generated + */ + EClass ENVIRONMENT = eINSTANCE.getEnvironment(); + + /** + * The meta object literal for the '<em><b>Model Element Factories</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference ENVIRONMENT__MODEL_ELEMENT_FACTORIES = eINSTANCE.getEnvironment_ModelElementFactories(); + + /** + * The meta object literal for the '<em><b>Widget Types</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference ENVIRONMENT__WIDGET_TYPES = eINSTANCE.getEnvironment_WidgetTypes(); + + /** + * The meta object literal for the '<em><b>Property Editor Types</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference ENVIRONMENT__PROPERTY_EDITOR_TYPES = eINSTANCE.getEnvironment_PropertyEditorTypes(); + + /** + * The meta object literal for the '<em><b>Composite Widget Types</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference ENVIRONMENT__COMPOSITE_WIDGET_TYPES = eINSTANCE.getEnvironment_CompositeWidgetTypes(); + + /** + * The meta object literal for the '<em><b>Layout Types</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference ENVIRONMENT__LAYOUT_TYPES = eINSTANCE.getEnvironment_LayoutTypes(); + + /** + * The meta object literal for the '<em><b>Namespaces</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference ENVIRONMENT__NAMESPACES = eINSTANCE.getEnvironment_Namespaces(); + + /** + * The meta object literal for the '<em><b>Misc Classes</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference ENVIRONMENT__MISC_CLASSES = eINSTANCE.getEnvironment_MiscClasses(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.PropertyEditorTypeImpl <em>Property Editor Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.PropertyEditorTypeImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getPropertyEditorType() + * @generated + */ + EClass PROPERTY_EDITOR_TYPE = eINSTANCE.getPropertyEditorType(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY_EDITOR_TYPE__TYPE = eINSTANCE.getPropertyEditorType_Type(); + + /** + * The meta object literal for the '<em><b>Multiplicity</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY_EDITOR_TYPE__MULTIPLICITY = eINSTANCE.getPropertyEditorType_Multiplicity(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.WidgetTypeImpl <em>Widget Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.WidgetTypeImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getWidgetType() + * @generated + */ + EClass WIDGET_TYPE = eINSTANCE.getWidgetType(); + + /** + * The meta object literal for the '<em><b>Label</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute WIDGET_TYPE__LABEL = eINSTANCE.getWidgetType_Label(); + + /** + * The meta object literal for the '<em><b>Widget Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute WIDGET_TYPE__WIDGET_CLASS = eINSTANCE.getWidgetType_WidgetClass(); + + /** + * The meta object literal for the '<em><b>Namespace</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference WIDGET_TYPE__NAMESPACE = eINSTANCE.getWidgetType_Namespace(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.CompositeWidgetTypeImpl <em>Composite Widget Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.CompositeWidgetTypeImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getCompositeWidgetType() + * @generated + */ + EClass COMPOSITE_WIDGET_TYPE = eINSTANCE.getCompositeWidgetType(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.LayoutTypeImpl <em>Layout Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.LayoutTypeImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getLayoutType() + * @generated + */ + EClass LAYOUT_TYPE = eINSTANCE.getLayoutType(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.ModelElementFactoryDescriptorImpl <em>Model Element Factory Descriptor</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.ModelElementFactoryDescriptorImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getModelElementFactoryDescriptor() + * @generated + */ + EClass MODEL_ELEMENT_FACTORY_DESCRIPTOR = eINSTANCE.getModelElementFactoryDescriptor(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute MODEL_ELEMENT_FACTORY_DESCRIPTOR__NAME = eINSTANCE.getModelElementFactoryDescriptor_Name(); + + /** + * The meta object literal for the '<em><b>Factory Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute MODEL_ELEMENT_FACTORY_DESCRIPTOR__FACTORY_CLASS = eINSTANCE.getModelElementFactoryDescriptor_FactoryClass(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.StandardWidgetTypeImpl <em>Standard Widget Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.StandardWidgetTypeImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getStandardWidgetType() + * @generated + */ + EClass STANDARD_WIDGET_TYPE = eINSTANCE.getStandardWidgetType(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.NamespaceImpl <em>Namespace</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.NamespaceImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getNamespace() + * @generated + */ + EClass NAMESPACE = eINSTANCE.getNamespace(); + + /** + * The meta object literal for the '<em><b>Prefix</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute NAMESPACE__PREFIX = eINSTANCE.getNamespace_Prefix(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute NAMESPACE__NAME = eINSTANCE.getNamespace_Name(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute NAMESPACE__VALUE = eINSTANCE.getNamespace_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.environment.impl.MiscClassImpl <em>Misc Class</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.impl.MiscClassImpl + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getMiscClass() + * @generated + */ + EClass MISC_CLASS = eINSTANCE.getMiscClass(); + + /** + * The meta object literal for the '<em><b>Label</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute MISC_CLASS__LABEL = eINSTANCE.getMiscClass_Label(); + + /** + * The meta object literal for the '<em><b>Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute MISC_CLASS__CLASS = eINSTANCE.getMiscClass_Class(); + + /** + * The meta object literal for the '<em><b>Namespace</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference MISC_CLASS__NAMESPACE = eINSTANCE.getMiscClass_Namespace(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.environment.Type <em>Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.Type + * @see org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl#getType() + * @generated + */ + EEnum TYPE = eINSTANCE.getType(); + + } + +} // EnvironmentPackage diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/LayoutType.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/LayoutType.java new file mode 100644 index 00000000000..ff18d05e2c9 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/LayoutType.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Layout Type</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getLayoutType() + * @model + * @generated + */ +public interface LayoutType extends WidgetType { +} // LayoutType diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/MiscClass.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/MiscClass.java new file mode 100644 index 00000000000..fce0d29e3bf --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/MiscClass.java @@ -0,0 +1,114 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Misc Class</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.MiscClass#getLabel <em>Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.MiscClass#getClass_ <em>Class</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.MiscClass#getNamespace <em>Namespace</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getMiscClass() + * @model + * @generated + */ +public interface MiscClass extends EObject { + /** + * Returns the value of the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Label</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Label</em>' attribute. + * @see #setLabel(String) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getMiscClass_Label() + * @model + * @generated + */ + String getLabel(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.MiscClass#getLabel <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Label</em>' attribute. + * @see #getLabel() + * @generated + */ + void setLabel(String value); + + /** + * Returns the value of the '<em><b>Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Class</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Class</em>' attribute. + * @see #setClass(String) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getMiscClass_Class() + * @model required="true" + * @generated + */ + String getClass_(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.MiscClass#getClass_ <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Class</em>' attribute. + * @see #getClass_() + * @generated + */ + void setClass(String value); + + /** + * Returns the value of the '<em><b>Namespace</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Namespace</em>' reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Namespace</em>' reference. + * @see #setNamespace(Namespace) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getMiscClass_Namespace() + * @model + * @generated + */ + Namespace getNamespace(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.MiscClass#getNamespace <em>Namespace</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Namespace</em>' reference. + * @see #getNamespace() + * @generated + */ + void setNamespace(Namespace value); + +} // MiscClass diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/ModelElementFactoryDescriptor.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/ModelElementFactoryDescriptor.java new file mode 100644 index 00000000000..4af261399b4 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/ModelElementFactoryDescriptor.java @@ -0,0 +1,85 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Model Element Factory Descriptor</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor#getFactoryClass <em>Factory Class</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getModelElementFactoryDescriptor() + * @model + * @generated + */ +public interface ModelElementFactoryDescriptor extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getModelElementFactoryDescriptor_Name() + * @model required="true" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Factory Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Factory Class</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Factory Class</em>' attribute. + * @see #setFactoryClass(String) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getModelElementFactoryDescriptor_FactoryClass() + * @model required="true" + * @generated + */ + String getFactoryClass(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor#getFactoryClass <em>Factory Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Factory Class</em>' attribute. + * @see #getFactoryClass() + * @generated + */ + void setFactoryClass(String value); + +} // ModelElementFactoryDescriptor diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/Namespace.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/Namespace.java new file mode 100644 index 00000000000..328b5a2a822 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/Namespace.java @@ -0,0 +1,115 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Namespace</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.Namespace#getPrefix <em>Prefix</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.Namespace#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.Namespace#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getNamespace() + * @model + * @generated + */ +public interface Namespace extends EObject { + /** + * Returns the value of the '<em><b>Prefix</b></em>' attribute. + * The default value is <code>"clr-namespace"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Prefix</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Prefix</em>' attribute. + * @see #setPrefix(String) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getNamespace_Prefix() + * @model default="clr-namespace" + * @generated + */ + String getPrefix(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.Namespace#getPrefix <em>Prefix</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Prefix</em>' attribute. + * @see #getPrefix() + * @generated + */ + void setPrefix(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getNamespace_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.Namespace#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Value</em>' attribute. + * @see #setValue(String) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getNamespace_Value() + * @model required="true" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.Namespace#getValue <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Value</em>' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // Namespace diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/PropertyEditorType.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/PropertyEditorType.java new file mode 100644 index 00000000000..fdf48426b28 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/PropertyEditorType.java @@ -0,0 +1,88 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Property Editor Type</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.PropertyEditorType#getType <em>Type</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.PropertyEditorType#getMultiplicity <em>Multiplicity</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getPropertyEditorType() + * @model + * @generated + */ +public interface PropertyEditorType extends WidgetType { + /** + * Returns the value of the '<em><b>Type</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.infra.properties.environment.Type}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Type</em>' attribute. + * @see org.eclipse.papyrus.infra.properties.environment.Type + * @see #setType(Type) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getPropertyEditorType_Type() + * @model required="true" + * @generated + */ + Type getType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.PropertyEditorType#getType <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Type</em>' attribute. + * @see org.eclipse.papyrus.infra.properties.environment.Type + * @see #getType() + * @generated + */ + void setType(Type value); + + /** + * Returns the value of the '<em><b>Multiplicity</b></em>' attribute. + * The default value is <code>"1"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Multiplicity</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Multiplicity</em>' attribute. + * @see #setMultiplicity(int) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getPropertyEditorType_Multiplicity() + * @model default="1" required="true" + * @generated + */ + int getMultiplicity(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.PropertyEditorType#getMultiplicity <em>Multiplicity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Multiplicity</em>' attribute. + * @see #getMultiplicity() + * @generated + */ + void setMultiplicity(int value); + +} // PropertyEditorType diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/StandardWidgetType.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/StandardWidgetType.java new file mode 100644 index 00000000000..ee297fb7715 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/StandardWidgetType.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Standard Widget Type</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getStandardWidgetType() + * @model + * @generated + */ +public interface StandardWidgetType extends WidgetType { +} // StandardWidgetType diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/Type.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/Type.java new file mode 100644 index 00000000000..c64b0a55387 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/Type.java @@ -0,0 +1,347 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * <!-- begin-user-doc --> + * A representation of the literals of the enumeration '<em><b>Type</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getType() + * @model + * @generated + */ +public enum Type implements Enumerator { + /** + * The '<em><b>String</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #STRING_VALUE + * @generated + * @ordered + */ + STRING(0, "String", "String"), + + /** + * The '<em><b>Boolean</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #BOOLEAN_VALUE + * @generated + * @ordered + */ + BOOLEAN(1, "Boolean", "Boolean"), + + /** + * The '<em><b>Integer</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #INTEGER_VALUE + * @generated + * @ordered + */ + INTEGER(2, "Integer", "Integer"), + + /** + * The '<em><b>Reference</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #REFERENCE_VALUE + * @generated + * @ordered + */ + REFERENCE(3, "Reference", "Reference"), + + /** + * The '<em><b>Enumeration</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #ENUMERATION_VALUE + * @generated + * @ordered + */ + ENUMERATION(4, "Enumeration", "Enumeration"), /** + * The '<em><b>Double</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #DOUBLE_VALUE + * @generated + * @ordered + */ + DOUBLE(5, "Double", "Double"); + + /** + * The '<em><b>String</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>String</b></em>' literal object isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #STRING + * @model name="String" + * @generated + * @ordered + */ + public static final int STRING_VALUE = 0; + + /** + * The '<em><b>Boolean</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Boolean</b></em>' literal object isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #BOOLEAN + * @model name="Boolean" + * @generated + * @ordered + */ + public static final int BOOLEAN_VALUE = 1; + + /** + * The '<em><b>Integer</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Integer</b></em>' literal object isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #INTEGER + * @model name="Integer" + * @generated + * @ordered + */ + public static final int INTEGER_VALUE = 2; + + /** + * The '<em><b>Reference</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Reference</b></em>' literal object isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #REFERENCE + * @model name="Reference" + * @generated + * @ordered + */ + public static final int REFERENCE_VALUE = 3; + + /** + * The '<em><b>Enumeration</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Enumeration</b></em>' literal object isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #ENUMERATION + * @model name="Enumeration" + * @generated + * @ordered + */ + public static final int ENUMERATION_VALUE = 4; + + /** + * The '<em><b>Double</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Double</b></em>' literal object isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #DOUBLE + * @model name="Double" + * @generated + * @ordered + */ + public static final int DOUBLE_VALUE = 5; + + /** + * An array of all the '<em><b>Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private static final Type[] VALUES_ARRAY = + new Type[] { + STRING, + BOOLEAN, + INTEGER, + REFERENCE, + ENUMERATION, + DOUBLE, + }; + + /** + * A public read-only list of all the '<em><b>Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static final List<Type> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Type</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static Type get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + Type result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Type</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static Type getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + Type result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Type</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static Type get(int value) { + switch (value) { + case STRING_VALUE: + return STRING; + case BOOLEAN_VALUE: + return BOOLEAN; + case INTEGER_VALUE: + return INTEGER; + case REFERENCE_VALUE: + return REFERENCE; + case ENUMERATION_VALUE: + return ENUMERATION; + case DOUBLE_VALUE: + return DOUBLE; + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private final int value; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private final String name; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private Type(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public int getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} // Type diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/WidgetType.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/WidgetType.java new file mode 100644 index 00000000000..c379f0219ae --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/WidgetType.java @@ -0,0 +1,114 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Widget Type</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.WidgetType#getLabel <em>Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.WidgetType#getWidgetClass <em>Widget Class</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.WidgetType#getNamespace <em>Namespace</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getWidgetType() + * @model abstract="true" + * @generated + */ +public interface WidgetType extends EObject { + /** + * Returns the value of the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Label</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Label</em>' attribute. + * @see #setLabel(String) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getWidgetType_Label() + * @model required="true" + * @generated + */ + String getLabel(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.WidgetType#getLabel <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Label</em>' attribute. + * @see #getLabel() + * @generated + */ + void setLabel(String value); + + /** + * Returns the value of the '<em><b>Widget Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Widget Class</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Widget Class</em>' attribute. + * @see #setWidgetClass(String) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getWidgetType_WidgetClass() + * @model required="true" + * @generated + */ + String getWidgetClass(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.WidgetType#getWidgetClass <em>Widget Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Widget Class</em>' attribute. + * @see #getWidgetClass() + * @generated + */ + void setWidgetClass(String value); + + /** + * Returns the value of the '<em><b>Namespace</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Namespace</em>' reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Namespace</em>' reference. + * @see #setNamespace(Namespace) + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#getWidgetType_Namespace() + * @model + * @generated + */ + Namespace getNamespace(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.environment.WidgetType#getNamespace <em>Namespace</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Namespace</em>' reference. + * @see #getNamespace() + * @generated + */ + void setNamespace(Namespace value); + +} // WidgetType diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/CompositeWidgetTypeImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/CompositeWidgetTypeImpl.java new file mode 100644 index 00000000000..1c342841756 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/CompositeWidgetTypeImpl.java @@ -0,0 +1,44 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.papyrus.infra.properties.environment.CompositeWidgetType; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Composite Widget Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class CompositeWidgetTypeImpl extends WidgetTypeImpl implements CompositeWidgetType { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected CompositeWidgetTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EnvironmentPackage.Literals.COMPOSITE_WIDGET_TYPE; + } + +} // CompositeWidgetTypeImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/EnvironmentFactoryImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/EnvironmentFactoryImpl.java new file mode 100644 index 00000000000..a7bc7e71653 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/EnvironmentFactoryImpl.java @@ -0,0 +1,271 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +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.papyrus.infra.properties.environment.CompositeWidgetType; +import org.eclipse.papyrus.infra.properties.environment.Environment; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentFactory; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.LayoutType; +import org.eclipse.papyrus.infra.properties.environment.MiscClass; +import org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor; +import org.eclipse.papyrus.infra.properties.environment.Namespace; +import org.eclipse.papyrus.infra.properties.environment.PropertyEditorType; +import org.eclipse.papyrus.infra.properties.environment.StandardWidgetType; +import org.eclipse.papyrus.infra.properties.environment.Type; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * + * @generated + */ +public class EnvironmentFactoryImpl extends EFactoryImpl implements EnvironmentFactory { + + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static EnvironmentFactory init() { + try { + EnvironmentFactory theEnvironmentFactory = (EnvironmentFactory) EPackage.Registry.INSTANCE.getEFactory(EnvironmentPackage.eNS_URI); + if (theEnvironmentFactory != null) { + return theEnvironmentFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new EnvironmentFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EnvironmentFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case EnvironmentPackage.ENVIRONMENT: + return createEnvironment(); + case EnvironmentPackage.PROPERTY_EDITOR_TYPE: + return createPropertyEditorType(); + case EnvironmentPackage.COMPOSITE_WIDGET_TYPE: + return createCompositeWidgetType(); + case EnvironmentPackage.LAYOUT_TYPE: + return createLayoutType(); + case EnvironmentPackage.MODEL_ELEMENT_FACTORY_DESCRIPTOR: + return createModelElementFactoryDescriptor(); + case EnvironmentPackage.STANDARD_WIDGET_TYPE: + return createStandardWidgetType(); + case EnvironmentPackage.NAMESPACE: + return createNamespace(); + case EnvironmentPackage.MISC_CLASS: + return createMiscClass(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case EnvironmentPackage.TYPE: + return createTypeFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case EnvironmentPackage.TYPE: + return convertTypeToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Environment createEnvironment() { + EnvironmentImpl environment = new EnvironmentImpl(); + return environment; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public PropertyEditorType createPropertyEditorType() { + PropertyEditorTypeImpl propertyEditorType = new PropertyEditorTypeImpl(); + return propertyEditorType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public CompositeWidgetType createCompositeWidgetType() { + CompositeWidgetTypeImpl compositeWidgetType = new CompositeWidgetTypeImpl(); + return compositeWidgetType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public LayoutType createLayoutType() { + LayoutTypeImpl layoutType = new LayoutTypeImpl(); + return layoutType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public ModelElementFactoryDescriptor createModelElementFactoryDescriptor() { + ModelElementFactoryDescriptorImpl modelElementFactoryDescriptor = new ModelElementFactoryDescriptorImpl(); + return modelElementFactoryDescriptor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public StandardWidgetType createStandardWidgetType() { + StandardWidgetTypeImpl standardWidgetType = new StandardWidgetTypeImpl(); + return standardWidgetType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Namespace createNamespace() { + NamespaceImpl namespace = new NamespaceImpl(); + return namespace; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public MiscClass createMiscClass() { + MiscClassImpl miscClass = new MiscClassImpl(); + return miscClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Type createTypeFromString(EDataType eDataType, String initialValue) { + Type result = Type.get(initialValue); + if (result == null) { + throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + } + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String convertTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EnvironmentPackage getEnvironmentPackage() { + return (EnvironmentPackage) getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @deprecated + * @generated + */ + @Deprecated + public static EnvironmentPackage getPackage() { + return EnvironmentPackage.eINSTANCE; + } + +} // EnvironmentFactoryImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/EnvironmentImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/EnvironmentImpl.java new file mode 100644 index 00000000000..dbceb0a1ba4 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/EnvironmentImpl.java @@ -0,0 +1,401 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.infra.constraints.environment.impl.ConstraintEnvironmentImpl; +import org.eclipse.papyrus.infra.properties.environment.CompositeWidgetType; +import org.eclipse.papyrus.infra.properties.environment.Environment; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.LayoutType; +import org.eclipse.papyrus.infra.properties.environment.MiscClass; +import org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor; +import org.eclipse.papyrus.infra.properties.environment.Namespace; +import org.eclipse.papyrus.infra.properties.environment.PropertyEditorType; +import org.eclipse.papyrus.infra.properties.environment.StandardWidgetType; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Environment</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentImpl#getModelElementFactories <em>Model Element Factories</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentImpl#getWidgetTypes <em>Widget Types</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentImpl#getPropertyEditorTypes <em>Property Editor Types</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentImpl#getCompositeWidgetTypes <em>Composite Widget Types</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentImpl#getLayoutTypes <em>Layout Types</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentImpl#getNamespaces <em>Namespaces</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentImpl#getMiscClasses <em>Misc Classes</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EnvironmentImpl extends ConstraintEnvironmentImpl implements Environment { + /** + * The cached value of the '{@link #getModelElementFactories() <em>Model Element Factories</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getModelElementFactories() + * @generated + * @ordered + */ + protected EList<ModelElementFactoryDescriptor> modelElementFactories; + + /** + * The cached value of the '{@link #getWidgetTypes() <em>Widget Types</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getWidgetTypes() + * @generated + * @ordered + */ + protected EList<StandardWidgetType> widgetTypes; + + /** + * The cached value of the '{@link #getPropertyEditorTypes() <em>Property Editor Types</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getPropertyEditorTypes() + * @generated + * @ordered + */ + protected EList<PropertyEditorType> propertyEditorTypes; + + /** + * The cached value of the '{@link #getCompositeWidgetTypes() <em>Composite Widget Types</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getCompositeWidgetTypes() + * @generated + * @ordered + */ + protected EList<CompositeWidgetType> compositeWidgetTypes; + + /** + * The cached value of the '{@link #getLayoutTypes() <em>Layout Types</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLayoutTypes() + * @generated + * @ordered + */ + protected EList<LayoutType> layoutTypes; + + /** + * The cached value of the '{@link #getNamespaces() <em>Namespaces</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getNamespaces() + * @generated + * @ordered + */ + protected EList<Namespace> namespaces; + + /** + * The cached value of the '{@link #getMiscClasses() <em>Misc Classes</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getMiscClasses() + * @generated + * @ordered + */ + protected EList<MiscClass> miscClasses; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected EnvironmentImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EnvironmentPackage.Literals.ENVIRONMENT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<ModelElementFactoryDescriptor> getModelElementFactories() { + if (modelElementFactories == null) { + modelElementFactories = new EObjectContainmentEList<ModelElementFactoryDescriptor>(ModelElementFactoryDescriptor.class, this, EnvironmentPackage.ENVIRONMENT__MODEL_ELEMENT_FACTORIES); + } + return modelElementFactories; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<StandardWidgetType> getWidgetTypes() { + if (widgetTypes == null) { + widgetTypes = new EObjectContainmentEList<StandardWidgetType>(StandardWidgetType.class, this, EnvironmentPackage.ENVIRONMENT__WIDGET_TYPES); + } + return widgetTypes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<PropertyEditorType> getPropertyEditorTypes() { + if (propertyEditorTypes == null) { + propertyEditorTypes = new EObjectContainmentEList<PropertyEditorType>(PropertyEditorType.class, this, EnvironmentPackage.ENVIRONMENT__PROPERTY_EDITOR_TYPES); + } + return propertyEditorTypes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<CompositeWidgetType> getCompositeWidgetTypes() { + if (compositeWidgetTypes == null) { + compositeWidgetTypes = new EObjectContainmentEList<CompositeWidgetType>(CompositeWidgetType.class, this, EnvironmentPackage.ENVIRONMENT__COMPOSITE_WIDGET_TYPES); + } + return compositeWidgetTypes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<LayoutType> getLayoutTypes() { + if (layoutTypes == null) { + layoutTypes = new EObjectContainmentEList<LayoutType>(LayoutType.class, this, EnvironmentPackage.ENVIRONMENT__LAYOUT_TYPES); + } + return layoutTypes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<Namespace> getNamespaces() { + if (namespaces == null) { + namespaces = new EObjectContainmentEList<Namespace>(Namespace.class, this, EnvironmentPackage.ENVIRONMENT__NAMESPACES); + } + return namespaces; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<MiscClass> getMiscClasses() { + if (miscClasses == null) { + miscClasses = new EObjectContainmentEList<MiscClass>(MiscClass.class, this, EnvironmentPackage.ENVIRONMENT__MISC_CLASSES); + } + return miscClasses; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case EnvironmentPackage.ENVIRONMENT__MODEL_ELEMENT_FACTORIES: + return ((InternalEList<?>) getModelElementFactories()).basicRemove(otherEnd, msgs); + case EnvironmentPackage.ENVIRONMENT__WIDGET_TYPES: + return ((InternalEList<?>) getWidgetTypes()).basicRemove(otherEnd, msgs); + case EnvironmentPackage.ENVIRONMENT__PROPERTY_EDITOR_TYPES: + return ((InternalEList<?>) getPropertyEditorTypes()).basicRemove(otherEnd, msgs); + case EnvironmentPackage.ENVIRONMENT__COMPOSITE_WIDGET_TYPES: + return ((InternalEList<?>) getCompositeWidgetTypes()).basicRemove(otherEnd, msgs); + case EnvironmentPackage.ENVIRONMENT__LAYOUT_TYPES: + return ((InternalEList<?>) getLayoutTypes()).basicRemove(otherEnd, msgs); + case EnvironmentPackage.ENVIRONMENT__NAMESPACES: + return ((InternalEList<?>) getNamespaces()).basicRemove(otherEnd, msgs); + case EnvironmentPackage.ENVIRONMENT__MISC_CLASSES: + return ((InternalEList<?>) getMiscClasses()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EnvironmentPackage.ENVIRONMENT__MODEL_ELEMENT_FACTORIES: + return getModelElementFactories(); + case EnvironmentPackage.ENVIRONMENT__WIDGET_TYPES: + return getWidgetTypes(); + case EnvironmentPackage.ENVIRONMENT__PROPERTY_EDITOR_TYPES: + return getPropertyEditorTypes(); + case EnvironmentPackage.ENVIRONMENT__COMPOSITE_WIDGET_TYPES: + return getCompositeWidgetTypes(); + case EnvironmentPackage.ENVIRONMENT__LAYOUT_TYPES: + return getLayoutTypes(); + case EnvironmentPackage.ENVIRONMENT__NAMESPACES: + return getNamespaces(); + case EnvironmentPackage.ENVIRONMENT__MISC_CLASSES: + return getMiscClasses(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EnvironmentPackage.ENVIRONMENT__MODEL_ELEMENT_FACTORIES: + getModelElementFactories().clear(); + getModelElementFactories().addAll((Collection<? extends ModelElementFactoryDescriptor>) newValue); + return; + case EnvironmentPackage.ENVIRONMENT__WIDGET_TYPES: + getWidgetTypes().clear(); + getWidgetTypes().addAll((Collection<? extends StandardWidgetType>) newValue); + return; + case EnvironmentPackage.ENVIRONMENT__PROPERTY_EDITOR_TYPES: + getPropertyEditorTypes().clear(); + getPropertyEditorTypes().addAll((Collection<? extends PropertyEditorType>) newValue); + return; + case EnvironmentPackage.ENVIRONMENT__COMPOSITE_WIDGET_TYPES: + getCompositeWidgetTypes().clear(); + getCompositeWidgetTypes().addAll((Collection<? extends CompositeWidgetType>) newValue); + return; + case EnvironmentPackage.ENVIRONMENT__LAYOUT_TYPES: + getLayoutTypes().clear(); + getLayoutTypes().addAll((Collection<? extends LayoutType>) newValue); + return; + case EnvironmentPackage.ENVIRONMENT__NAMESPACES: + getNamespaces().clear(); + getNamespaces().addAll((Collection<? extends Namespace>) newValue); + return; + case EnvironmentPackage.ENVIRONMENT__MISC_CLASSES: + getMiscClasses().clear(); + getMiscClasses().addAll((Collection<? extends MiscClass>) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EnvironmentPackage.ENVIRONMENT__MODEL_ELEMENT_FACTORIES: + getModelElementFactories().clear(); + return; + case EnvironmentPackage.ENVIRONMENT__WIDGET_TYPES: + getWidgetTypes().clear(); + return; + case EnvironmentPackage.ENVIRONMENT__PROPERTY_EDITOR_TYPES: + getPropertyEditorTypes().clear(); + return; + case EnvironmentPackage.ENVIRONMENT__COMPOSITE_WIDGET_TYPES: + getCompositeWidgetTypes().clear(); + return; + case EnvironmentPackage.ENVIRONMENT__LAYOUT_TYPES: + getLayoutTypes().clear(); + return; + case EnvironmentPackage.ENVIRONMENT__NAMESPACES: + getNamespaces().clear(); + return; + case EnvironmentPackage.ENVIRONMENT__MISC_CLASSES: + getMiscClasses().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EnvironmentPackage.ENVIRONMENT__MODEL_ELEMENT_FACTORIES: + return modelElementFactories != null && !modelElementFactories.isEmpty(); + case EnvironmentPackage.ENVIRONMENT__WIDGET_TYPES: + return widgetTypes != null && !widgetTypes.isEmpty(); + case EnvironmentPackage.ENVIRONMENT__PROPERTY_EDITOR_TYPES: + return propertyEditorTypes != null && !propertyEditorTypes.isEmpty(); + case EnvironmentPackage.ENVIRONMENT__COMPOSITE_WIDGET_TYPES: + return compositeWidgetTypes != null && !compositeWidgetTypes.isEmpty(); + case EnvironmentPackage.ENVIRONMENT__LAYOUT_TYPES: + return layoutTypes != null && !layoutTypes.isEmpty(); + case EnvironmentPackage.ENVIRONMENT__NAMESPACES: + return namespaces != null && !namespaces.isEmpty(); + case EnvironmentPackage.ENVIRONMENT__MISC_CLASSES: + return miscClasses != null && !miscClasses.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // EnvironmentImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/EnvironmentPackageImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/EnvironmentPackageImpl.java new file mode 100644 index 00000000000..f1b1c54ea68 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/EnvironmentPackageImpl.java @@ -0,0 +1,699 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.papyrus.infra.constraints.ConstraintsPackage; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl; +import org.eclipse.papyrus.infra.properties.environment.CompositeWidgetType; +import org.eclipse.papyrus.infra.properties.environment.Environment; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentFactory; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.LayoutType; +import org.eclipse.papyrus.infra.properties.environment.MiscClass; +import org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor; +import org.eclipse.papyrus.infra.properties.environment.Namespace; +import org.eclipse.papyrus.infra.properties.environment.PropertyEditorType; +import org.eclipse.papyrus.infra.properties.environment.StandardWidgetType; +import org.eclipse.papyrus.infra.properties.environment.Type; +import org.eclipse.papyrus.infra.properties.environment.WidgetType; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; +import org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * + * @generated + */ +public class EnvironmentPackageImpl extends EPackageImpl implements EnvironmentPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass environmentEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass propertyEditorTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass widgetTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass compositeWidgetTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass layoutTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass modelElementFactoryDescriptorEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass standardWidgetTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass namespaceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass miscClassEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EEnum typeEEnum = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p> + * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage#eNS_URI + * @see #init() + * @generated + */ + private EnvironmentPackageImpl() { + super(eNS_URI, EnvironmentFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p> + * This method is used to initialize {@link EnvironmentPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static EnvironmentPackage init() { + if (isInited) { + return (EnvironmentPackage) EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI); + } + + // Obtain or create and register package + EnvironmentPackageImpl theEnvironmentPackage = (EnvironmentPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof EnvironmentPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new EnvironmentPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + ConstraintsPackage.eINSTANCE.eClass(); + EcorePackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + ContextsPackageImpl theContextsPackage = (ContextsPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(ContextsPackage.eNS_URI) instanceof ContextsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ContextsPackage.eNS_URI) + : ContextsPackage.eINSTANCE); + UiPackageImpl theUiPackage = (UiPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(UiPackage.eNS_URI) instanceof UiPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UiPackage.eNS_URI) : UiPackage.eINSTANCE); + + // Create package meta-data objects + theEnvironmentPackage.createPackageContents(); + theContextsPackage.createPackageContents(); + theUiPackage.createPackageContents(); + + // Initialize created meta-data + theEnvironmentPackage.initializePackageContents(); + theContextsPackage.initializePackageContents(); + theUiPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theEnvironmentPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(EnvironmentPackage.eNS_URI, theEnvironmentPackage); + return theEnvironmentPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getEnvironment() { + return environmentEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getEnvironment_ModelElementFactories() { + return (EReference) environmentEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getEnvironment_WidgetTypes() { + return (EReference) environmentEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getEnvironment_PropertyEditorTypes() { + return (EReference) environmentEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getEnvironment_CompositeWidgetTypes() { + return (EReference) environmentEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getEnvironment_LayoutTypes() { + return (EReference) environmentEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getEnvironment_Namespaces() { + return (EReference) environmentEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getEnvironment_MiscClasses() { + return (EReference) environmentEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getPropertyEditorType() { + return propertyEditorTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getPropertyEditorType_Type() { + return (EAttribute) propertyEditorTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getPropertyEditorType_Multiplicity() { + return (EAttribute) propertyEditorTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getWidgetType() { + return widgetTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getWidgetType_Label() { + return (EAttribute) widgetTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getWidgetType_WidgetClass() { + return (EAttribute) widgetTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getWidgetType_Namespace() { + return (EReference) widgetTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getCompositeWidgetType() { + return compositeWidgetTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getLayoutType() { + return layoutTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getModelElementFactoryDescriptor() { + return modelElementFactoryDescriptorEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getModelElementFactoryDescriptor_Name() { + return (EAttribute) modelElementFactoryDescriptorEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getModelElementFactoryDescriptor_FactoryClass() { + return (EAttribute) modelElementFactoryDescriptorEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getStandardWidgetType() { + return standardWidgetTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getNamespace() { + return namespaceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getNamespace_Prefix() { + return (EAttribute) namespaceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getNamespace_Name() { + return (EAttribute) namespaceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getNamespace_Value() { + return (EAttribute) namespaceEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getMiscClass() { + return miscClassEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getMiscClass_Label() { + return (EAttribute) miscClassEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getMiscClass_Class() { + return (EAttribute) miscClassEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getMiscClass_Namespace() { + return (EReference) miscClassEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EEnum getType() { + return typeEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EnvironmentFactory getEnvironmentFactory() { + return (EnvironmentFactory) getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void createPackageContents() { + if (isCreated) { + return; + } + isCreated = true; + + // Create classes and their features + environmentEClass = createEClass(ENVIRONMENT); + createEReference(environmentEClass, ENVIRONMENT__MODEL_ELEMENT_FACTORIES); + createEReference(environmentEClass, ENVIRONMENT__WIDGET_TYPES); + createEReference(environmentEClass, ENVIRONMENT__PROPERTY_EDITOR_TYPES); + createEReference(environmentEClass, ENVIRONMENT__COMPOSITE_WIDGET_TYPES); + createEReference(environmentEClass, ENVIRONMENT__LAYOUT_TYPES); + createEReference(environmentEClass, ENVIRONMENT__NAMESPACES); + createEReference(environmentEClass, ENVIRONMENT__MISC_CLASSES); + + propertyEditorTypeEClass = createEClass(PROPERTY_EDITOR_TYPE); + createEAttribute(propertyEditorTypeEClass, PROPERTY_EDITOR_TYPE__TYPE); + createEAttribute(propertyEditorTypeEClass, PROPERTY_EDITOR_TYPE__MULTIPLICITY); + + widgetTypeEClass = createEClass(WIDGET_TYPE); + createEAttribute(widgetTypeEClass, WIDGET_TYPE__LABEL); + createEAttribute(widgetTypeEClass, WIDGET_TYPE__WIDGET_CLASS); + createEReference(widgetTypeEClass, WIDGET_TYPE__NAMESPACE); + + compositeWidgetTypeEClass = createEClass(COMPOSITE_WIDGET_TYPE); + + layoutTypeEClass = createEClass(LAYOUT_TYPE); + + modelElementFactoryDescriptorEClass = createEClass(MODEL_ELEMENT_FACTORY_DESCRIPTOR); + createEAttribute(modelElementFactoryDescriptorEClass, MODEL_ELEMENT_FACTORY_DESCRIPTOR__NAME); + createEAttribute(modelElementFactoryDescriptorEClass, MODEL_ELEMENT_FACTORY_DESCRIPTOR__FACTORY_CLASS); + + standardWidgetTypeEClass = createEClass(STANDARD_WIDGET_TYPE); + + namespaceEClass = createEClass(NAMESPACE); + createEAttribute(namespaceEClass, NAMESPACE__PREFIX); + createEAttribute(namespaceEClass, NAMESPACE__NAME); + createEAttribute(namespaceEClass, NAMESPACE__VALUE); + + miscClassEClass = createEClass(MISC_CLASS); + createEAttribute(miscClassEClass, MISC_CLASS__LABEL); + createEAttribute(miscClassEClass, MISC_CLASS__CLASS); + createEReference(miscClassEClass, MISC_CLASS__NAMESPACE); + + // Create enums + typeEEnum = createEEnum(TYPE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) { + return; + } + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage theEnvironmentPackage_1 = (org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage) EPackage.Registry.INSTANCE + .getEPackage(org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + environmentEClass.getESuperTypes().add(theEnvironmentPackage_1.getConstraintEnvironment()); + propertyEditorTypeEClass.getESuperTypes().add(this.getWidgetType()); + compositeWidgetTypeEClass.getESuperTypes().add(this.getWidgetType()); + layoutTypeEClass.getESuperTypes().add(this.getWidgetType()); + standardWidgetTypeEClass.getESuperTypes().add(this.getWidgetType()); + + // Initialize classes and features; add operations and parameters + initEClass(environmentEClass, Environment.class, "Environment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEnvironment_ModelElementFactories(), this.getModelElementFactoryDescriptor(), null, "modelElementFactories", null, 0, -1, Environment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEnvironment_WidgetTypes(), this.getStandardWidgetType(), null, "widgetTypes", null, 0, -1, Environment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getEnvironment_PropertyEditorTypes(), this.getPropertyEditorType(), null, "propertyEditorTypes", null, 0, -1, Environment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getEnvironment_CompositeWidgetTypes(), this.getCompositeWidgetType(), null, "compositeWidgetTypes", null, 0, -1, Environment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEnvironment_LayoutTypes(), this.getLayoutType(), null, "layoutTypes", null, 0, -1, Environment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEnvironment_Namespaces(), this.getNamespace(), null, "namespaces", null, 0, -1, Environment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEnvironment_MiscClasses(), this.getMiscClass(), null, "miscClasses", null, 0, -1, Environment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(propertyEditorTypeEClass, PropertyEditorType.class, "PropertyEditorType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertyEditorType_Type(), this.getType(), "type", null, 1, 1, PropertyEditorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPropertyEditorType_Multiplicity(), ecorePackage.getEInt(), "multiplicity", "1", 1, 1, PropertyEditorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(widgetTypeEClass, WidgetType.class, "WidgetType", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getWidgetType_Label(), ecorePackage.getEString(), "label", null, 1, 1, WidgetType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWidgetType_WidgetClass(), ecorePackage.getEString(), "widgetClass", null, 1, 1, WidgetType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getWidgetType_Namespace(), this.getNamespace(), null, "namespace", null, 0, 1, WidgetType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(compositeWidgetTypeEClass, CompositeWidgetType.class, "CompositeWidgetType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(layoutTypeEClass, LayoutType.class, "LayoutType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(modelElementFactoryDescriptorEClass, ModelElementFactoryDescriptor.class, "ModelElementFactoryDescriptor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getModelElementFactoryDescriptor_Name(), ecorePackage.getEString(), "name", null, 1, 1, ModelElementFactoryDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getModelElementFactoryDescriptor_FactoryClass(), ecorePackage.getEString(), "factoryClass", null, 1, 1, ModelElementFactoryDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(standardWidgetTypeEClass, StandardWidgetType.class, "StandardWidgetType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(namespaceEClass, Namespace.class, "Namespace", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNamespace_Prefix(), ecorePackage.getEString(), "prefix", "clr-namespace", 0, 1, Namespace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNamespace_Name(), ecorePackage.getEString(), "name", null, 0, 1, Namespace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNamespace_Value(), ecorePackage.getEString(), "value", null, 1, 1, Namespace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(miscClassEClass, MiscClass.class, "MiscClass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMiscClass_Label(), ecorePackage.getEString(), "label", null, 0, 1, MiscClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMiscClass_Class(), ecorePackage.getEString(), "class", null, 1, 1, MiscClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMiscClass_Namespace(), this.getNamespace(), null, "namespace", null, 0, 1, MiscClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(typeEEnum, Type.class, "Type"); + addEEnumLiteral(typeEEnum, Type.STRING); + addEEnumLiteral(typeEEnum, Type.BOOLEAN); + addEEnumLiteral(typeEEnum, Type.INTEGER); + addEEnumLiteral(typeEEnum, Type.REFERENCE); + addEEnumLiteral(typeEEnum, Type.ENUMERATION); + addEEnumLiteral(typeEEnum, Type.DOUBLE); + + // Create resource + createResource(eNS_URI); + } + +} // EnvironmentPackageImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/LayoutTypeImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/LayoutTypeImpl.java new file mode 100644 index 00000000000..da470960934 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/LayoutTypeImpl.java @@ -0,0 +1,44 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.LayoutType; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Layout Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class LayoutTypeImpl extends WidgetTypeImpl implements LayoutType { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected LayoutTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EnvironmentPackage.Literals.LAYOUT_TYPE; + } + +} // LayoutTypeImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/MiscClassImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/MiscClassImpl.java new file mode 100644 index 00000000000..05badd2baa7 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/MiscClassImpl.java @@ -0,0 +1,313 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.MiscClass; +import org.eclipse.papyrus.infra.properties.environment.Namespace; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Misc Class</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.MiscClassImpl#getLabel <em>Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.MiscClassImpl#getClass_ <em>Class</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.MiscClassImpl#getNamespace <em>Namespace</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class MiscClassImpl extends EObjectImpl implements MiscClass { + /** + * The default value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLabel() + * @generated + * @ordered + */ + protected static final String LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLabel() + * @generated + * @ordered + */ + protected String label = LABEL_EDEFAULT; + + /** + * The default value of the '{@link #getClass_() <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getClass_() + * @generated + * @ordered + */ + protected static final String CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getClass_() <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getClass_() + * @generated + * @ordered + */ + protected String class_ = CLASS_EDEFAULT; + + /** + * The cached value of the '{@link #getNamespace() <em>Namespace</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected Namespace namespace; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected MiscClassImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EnvironmentPackage.Literals.MISC_CLASS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getLabel() { + return label; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setLabel(String newLabel) { + String oldLabel = label; + label = newLabel; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.MISC_CLASS__LABEL, oldLabel, label)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getClass_() { + return class_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setClass(String newClass) { + String oldClass = class_; + class_ = newClass; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.MISC_CLASS__CLASS, oldClass, class_)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Namespace getNamespace() { + if (namespace != null && namespace.eIsProxy()) { + InternalEObject oldNamespace = (InternalEObject) namespace; + namespace = (Namespace) eResolveProxy(oldNamespace); + if (namespace != oldNamespace) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EnvironmentPackage.MISC_CLASS__NAMESPACE, oldNamespace, namespace)); + } + } + } + return namespace; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Namespace basicGetNamespace() { + return namespace; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setNamespace(Namespace newNamespace) { + Namespace oldNamespace = namespace; + namespace = newNamespace; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.MISC_CLASS__NAMESPACE, oldNamespace, namespace)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EnvironmentPackage.MISC_CLASS__LABEL: + return getLabel(); + case EnvironmentPackage.MISC_CLASS__CLASS: + return getClass_(); + case EnvironmentPackage.MISC_CLASS__NAMESPACE: + if (resolve) { + return getNamespace(); + } + return basicGetNamespace(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EnvironmentPackage.MISC_CLASS__LABEL: + setLabel((String) newValue); + return; + case EnvironmentPackage.MISC_CLASS__CLASS: + setClass((String) newValue); + return; + case EnvironmentPackage.MISC_CLASS__NAMESPACE: + setNamespace((Namespace) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EnvironmentPackage.MISC_CLASS__LABEL: + setLabel(LABEL_EDEFAULT); + return; + case EnvironmentPackage.MISC_CLASS__CLASS: + setClass(CLASS_EDEFAULT); + return; + case EnvironmentPackage.MISC_CLASS__NAMESPACE: + setNamespace((Namespace) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EnvironmentPackage.MISC_CLASS__LABEL: + return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); + case EnvironmentPackage.MISC_CLASS__CLASS: + return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_); + case EnvironmentPackage.MISC_CLASS__NAMESPACE: + return namespace != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (label: "); + result.append(label); + result.append(", class: "); + result.append(class_); + result.append(')'); + return result.toString(); + } + +} // MiscClassImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/ModelElementFactoryDescriptorImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/ModelElementFactoryDescriptorImpl.java new file mode 100644 index 00000000000..9534a44c82c --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/ModelElementFactoryDescriptorImpl.java @@ -0,0 +1,241 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Model Element Factory Descriptor</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.ModelElementFactoryDescriptorImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.ModelElementFactoryDescriptorImpl#getFactoryClass <em>Factory Class</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ModelElementFactoryDescriptorImpl extends EObjectImpl implements ModelElementFactoryDescriptor { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getFactoryClass() <em>Factory Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getFactoryClass() + * @generated + * @ordered + */ + protected static final String FACTORY_CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFactoryClass() <em>Factory Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getFactoryClass() + * @generated + * @ordered + */ + protected String factoryClass = FACTORY_CLASS_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected ModelElementFactoryDescriptorImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EnvironmentPackage.Literals.MODEL_ELEMENT_FACTORY_DESCRIPTOR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.MODEL_ELEMENT_FACTORY_DESCRIPTOR__NAME, oldName, name)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getFactoryClass() { + return factoryClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setFactoryClass(String newFactoryClass) { + String oldFactoryClass = factoryClass; + factoryClass = newFactoryClass; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.MODEL_ELEMENT_FACTORY_DESCRIPTOR__FACTORY_CLASS, oldFactoryClass, factoryClass)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EnvironmentPackage.MODEL_ELEMENT_FACTORY_DESCRIPTOR__NAME: + return getName(); + case EnvironmentPackage.MODEL_ELEMENT_FACTORY_DESCRIPTOR__FACTORY_CLASS: + return getFactoryClass(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EnvironmentPackage.MODEL_ELEMENT_FACTORY_DESCRIPTOR__NAME: + setName((String) newValue); + return; + case EnvironmentPackage.MODEL_ELEMENT_FACTORY_DESCRIPTOR__FACTORY_CLASS: + setFactoryClass((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EnvironmentPackage.MODEL_ELEMENT_FACTORY_DESCRIPTOR__NAME: + setName(NAME_EDEFAULT); + return; + case EnvironmentPackage.MODEL_ELEMENT_FACTORY_DESCRIPTOR__FACTORY_CLASS: + setFactoryClass(FACTORY_CLASS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EnvironmentPackage.MODEL_ELEMENT_FACTORY_DESCRIPTOR__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case EnvironmentPackage.MODEL_ELEMENT_FACTORY_DESCRIPTOR__FACTORY_CLASS: + return FACTORY_CLASS_EDEFAULT == null ? factoryClass != null : !FACTORY_CLASS_EDEFAULT.equals(factoryClass); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", factoryClass: "); + result.append(factoryClass); + result.append(')'); + return result.toString(); + } + +} // ModelElementFactoryDescriptorImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/NamespaceImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/NamespaceImpl.java new file mode 100644 index 00000000000..487d22e64d1 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/NamespaceImpl.java @@ -0,0 +1,302 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.Namespace; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Namespace</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.NamespaceImpl#getPrefix <em>Prefix</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.NamespaceImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.NamespaceImpl#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class NamespaceImpl extends EObjectImpl implements Namespace { + /** + * The default value of the '{@link #getPrefix() <em>Prefix</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getPrefix() + * @generated + * @ordered + */ + protected static final String PREFIX_EDEFAULT = "clr-namespace"; + + /** + * The cached value of the '{@link #getPrefix() <em>Prefix</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getPrefix() + * @generated + * @ordered + */ + protected String prefix = PREFIX_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected NamespaceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EnvironmentPackage.Literals.NAMESPACE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getPrefix() { + return prefix; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setPrefix(String newPrefix) { + String oldPrefix = prefix; + prefix = newPrefix; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.NAMESPACE__PREFIX, oldPrefix, prefix)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.NAMESPACE__NAME, oldName, name)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.NAMESPACE__VALUE, oldValue, value)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EnvironmentPackage.NAMESPACE__PREFIX: + return getPrefix(); + case EnvironmentPackage.NAMESPACE__NAME: + return getName(); + case EnvironmentPackage.NAMESPACE__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EnvironmentPackage.NAMESPACE__PREFIX: + setPrefix((String) newValue); + return; + case EnvironmentPackage.NAMESPACE__NAME: + setName((String) newValue); + return; + case EnvironmentPackage.NAMESPACE__VALUE: + setValue((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EnvironmentPackage.NAMESPACE__PREFIX: + setPrefix(PREFIX_EDEFAULT); + return; + case EnvironmentPackage.NAMESPACE__NAME: + setName(NAME_EDEFAULT); + return; + case EnvironmentPackage.NAMESPACE__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EnvironmentPackage.NAMESPACE__PREFIX: + return PREFIX_EDEFAULT == null ? prefix != null : !PREFIX_EDEFAULT.equals(prefix); + case EnvironmentPackage.NAMESPACE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case EnvironmentPackage.NAMESPACE__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (prefix: "); + result.append(prefix); + result.append(", name: "); + result.append(name); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} // NamespaceImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/PropertyEditorTypeImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/PropertyEditorTypeImpl.java new file mode 100644 index 00000000000..f54992bcf83 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/PropertyEditorTypeImpl.java @@ -0,0 +1,241 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.PropertyEditorType; +import org.eclipse.papyrus.infra.properties.environment.Type; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Property Editor Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.PropertyEditorTypeImpl#getType <em>Type</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.PropertyEditorTypeImpl#getMultiplicity <em>Multiplicity</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PropertyEditorTypeImpl extends WidgetTypeImpl implements PropertyEditorType { + /** + * The default value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getType() + * @generated + * @ordered + */ + protected static final Type TYPE_EDEFAULT = Type.STRING; + + /** + * The cached value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getType() + * @generated + * @ordered + */ + protected Type type = TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getMultiplicity() + * @generated + * @ordered + */ + protected static final int MULTIPLICITY_EDEFAULT = 1; + + /** + * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getMultiplicity() + * @generated + * @ordered + */ + protected int multiplicity = MULTIPLICITY_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected PropertyEditorTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EnvironmentPackage.Literals.PROPERTY_EDITOR_TYPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Type getType() { + return type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setType(Type newType) { + Type oldType = type; + type = newType == null ? TYPE_EDEFAULT : newType; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.PROPERTY_EDITOR_TYPE__TYPE, oldType, type)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public int getMultiplicity() { + return multiplicity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setMultiplicity(int newMultiplicity) { + int oldMultiplicity = multiplicity; + multiplicity = newMultiplicity; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.PROPERTY_EDITOR_TYPE__MULTIPLICITY, oldMultiplicity, multiplicity)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EnvironmentPackage.PROPERTY_EDITOR_TYPE__TYPE: + return getType(); + case EnvironmentPackage.PROPERTY_EDITOR_TYPE__MULTIPLICITY: + return getMultiplicity(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EnvironmentPackage.PROPERTY_EDITOR_TYPE__TYPE: + setType((Type) newValue); + return; + case EnvironmentPackage.PROPERTY_EDITOR_TYPE__MULTIPLICITY: + setMultiplicity((Integer) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EnvironmentPackage.PROPERTY_EDITOR_TYPE__TYPE: + setType(TYPE_EDEFAULT); + return; + case EnvironmentPackage.PROPERTY_EDITOR_TYPE__MULTIPLICITY: + setMultiplicity(MULTIPLICITY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EnvironmentPackage.PROPERTY_EDITOR_TYPE__TYPE: + return type != TYPE_EDEFAULT; + case EnvironmentPackage.PROPERTY_EDITOR_TYPE__MULTIPLICITY: + return multiplicity != MULTIPLICITY_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (type: "); + result.append(type); + result.append(", multiplicity: "); + result.append(multiplicity); + result.append(')'); + return result.toString(); + } + +} // PropertyEditorTypeImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/StandardWidgetTypeImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/StandardWidgetTypeImpl.java new file mode 100644 index 00000000000..ee25728839d --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/StandardWidgetTypeImpl.java @@ -0,0 +1,44 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.StandardWidgetType; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Standard Widget Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class StandardWidgetTypeImpl extends WidgetTypeImpl implements StandardWidgetType { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected StandardWidgetTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EnvironmentPackage.Literals.STANDARD_WIDGET_TYPE; + } + +} // StandardWidgetTypeImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/WidgetTypeImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/WidgetTypeImpl.java new file mode 100644 index 00000000000..8186f2cc85e --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/impl/WidgetTypeImpl.java @@ -0,0 +1,313 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.Namespace; +import org.eclipse.papyrus.infra.properties.environment.WidgetType; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Widget Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.WidgetTypeImpl#getLabel <em>Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.WidgetTypeImpl#getWidgetClass <em>Widget Class</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.environment.impl.WidgetTypeImpl#getNamespace <em>Namespace</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class WidgetTypeImpl extends EObjectImpl implements WidgetType { + /** + * The default value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLabel() + * @generated + * @ordered + */ + protected static final String LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLabel() + * @generated + * @ordered + */ + protected String label = LABEL_EDEFAULT; + + /** + * The default value of the '{@link #getWidgetClass() <em>Widget Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getWidgetClass() + * @generated + * @ordered + */ + protected static final String WIDGET_CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getWidgetClass() <em>Widget Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getWidgetClass() + * @generated + * @ordered + */ + protected String widgetClass = WIDGET_CLASS_EDEFAULT; + + /** + * The cached value of the '{@link #getNamespace() <em>Namespace</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected Namespace namespace; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected WidgetTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return EnvironmentPackage.Literals.WIDGET_TYPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getLabel() { + return label; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setLabel(String newLabel) { + String oldLabel = label; + label = newLabel; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.WIDGET_TYPE__LABEL, oldLabel, label)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getWidgetClass() { + return widgetClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setWidgetClass(String newWidgetClass) { + String oldWidgetClass = widgetClass; + widgetClass = newWidgetClass; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.WIDGET_TYPE__WIDGET_CLASS, oldWidgetClass, widgetClass)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Namespace getNamespace() { + if (namespace != null && namespace.eIsProxy()) { + InternalEObject oldNamespace = (InternalEObject) namespace; + namespace = (Namespace) eResolveProxy(oldNamespace); + if (namespace != oldNamespace) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EnvironmentPackage.WIDGET_TYPE__NAMESPACE, oldNamespace, namespace)); + } + } + } + return namespace; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Namespace basicGetNamespace() { + return namespace; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setNamespace(Namespace newNamespace) { + Namespace oldNamespace = namespace; + namespace = newNamespace; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EnvironmentPackage.WIDGET_TYPE__NAMESPACE, oldNamespace, namespace)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case EnvironmentPackage.WIDGET_TYPE__LABEL: + return getLabel(); + case EnvironmentPackage.WIDGET_TYPE__WIDGET_CLASS: + return getWidgetClass(); + case EnvironmentPackage.WIDGET_TYPE__NAMESPACE: + if (resolve) { + return getNamespace(); + } + return basicGetNamespace(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case EnvironmentPackage.WIDGET_TYPE__LABEL: + setLabel((String) newValue); + return; + case EnvironmentPackage.WIDGET_TYPE__WIDGET_CLASS: + setWidgetClass((String) newValue); + return; + case EnvironmentPackage.WIDGET_TYPE__NAMESPACE: + setNamespace((Namespace) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case EnvironmentPackage.WIDGET_TYPE__LABEL: + setLabel(LABEL_EDEFAULT); + return; + case EnvironmentPackage.WIDGET_TYPE__WIDGET_CLASS: + setWidgetClass(WIDGET_CLASS_EDEFAULT); + return; + case EnvironmentPackage.WIDGET_TYPE__NAMESPACE: + setNamespace((Namespace) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case EnvironmentPackage.WIDGET_TYPE__LABEL: + return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); + case EnvironmentPackage.WIDGET_TYPE__WIDGET_CLASS: + return WIDGET_CLASS_EDEFAULT == null ? widgetClass != null : !WIDGET_CLASS_EDEFAULT.equals(widgetClass); + case EnvironmentPackage.WIDGET_TYPE__NAMESPACE: + return namespace != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (label: "); + result.append(label); + result.append(", widgetClass: "); + result.append(widgetClass); + result.append(')'); + return result.toString(); + } + +} // WidgetTypeImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/util/EnvironmentAdapterFactory.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/util/EnvironmentAdapterFactory.java new file mode 100644 index 00000000000..ed30267ee57 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/util/EnvironmentAdapterFactory.java @@ -0,0 +1,321 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.infra.constraints.environment.ConstraintEnvironment; +import org.eclipse.papyrus.infra.properties.environment.CompositeWidgetType; +import org.eclipse.papyrus.infra.properties.environment.Environment; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.LayoutType; +import org.eclipse.papyrus.infra.properties.environment.MiscClass; +import org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor; +import org.eclipse.papyrus.infra.properties.environment.Namespace; +import org.eclipse.papyrus.infra.properties.environment.PropertyEditorType; +import org.eclipse.papyrus.infra.properties.environment.StandardWidgetType; +import org.eclipse.papyrus.infra.properties.environment.WidgetType; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage + * @generated + */ +public class EnvironmentAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected static EnvironmentPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EnvironmentAdapterFactory() { + if (modelPackage == null) { + modelPackage = EnvironmentPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject) object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected EnvironmentSwitch<Adapter> modelSwitch = + new EnvironmentSwitch<Adapter>() { + @Override + public Adapter caseEnvironment(Environment object) { + return createEnvironmentAdapter(); + } + + @Override + public Adapter casePropertyEditorType(PropertyEditorType object) { + return createPropertyEditorTypeAdapter(); + } + + @Override + public Adapter caseWidgetType(WidgetType object) { + return createWidgetTypeAdapter(); + } + + @Override + public Adapter caseCompositeWidgetType(CompositeWidgetType object) { + return createCompositeWidgetTypeAdapter(); + } + + @Override + public Adapter caseLayoutType(LayoutType object) { + return createLayoutTypeAdapter(); + } + + @Override + public Adapter caseModelElementFactoryDescriptor(ModelElementFactoryDescriptor object) { + return createModelElementFactoryDescriptorAdapter(); + } + + @Override + public Adapter caseStandardWidgetType(StandardWidgetType object) { + return createStandardWidgetTypeAdapter(); + } + + @Override + public Adapter caseNamespace(Namespace object) { + return createNamespaceAdapter(); + } + + @Override + public Adapter caseMiscClass(MiscClass object) { + return createMiscClassAdapter(); + } + + @Override + public Adapter caseConstraintEnvironment(ConstraintEnvironment object) { + return createConstraintEnvironmentAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param target + * the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.environment.Environment <em>Environment</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.environment.Environment + * @generated + */ + public Adapter createEnvironmentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.environment.PropertyEditorType <em>Property Editor Type</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.environment.PropertyEditorType + * @generated + */ + public Adapter createPropertyEditorTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.environment.WidgetType <em>Widget Type</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.environment.WidgetType + * @generated + */ + public Adapter createWidgetTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.environment.CompositeWidgetType <em>Composite Widget Type</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.environment.CompositeWidgetType + * @generated + */ + public Adapter createCompositeWidgetTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.environment.LayoutType <em>Layout Type</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.environment.LayoutType + * @generated + */ + public Adapter createLayoutTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor <em>Model Element Factory Descriptor</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor + * @generated + */ + public Adapter createModelElementFactoryDescriptorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.environment.StandardWidgetType <em>Standard Widget Type</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.environment.StandardWidgetType + * @generated + */ + public Adapter createStandardWidgetTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.environment.Namespace <em>Namespace</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.environment.Namespace + * @generated + */ + public Adapter createNamespaceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.environment.MiscClass <em>Misc Class</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.environment.MiscClass + * @generated + */ + public Adapter createMiscClassAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.constraints.environment.ConstraintEnvironment <em>Constraint Environment</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.constraints.environment.ConstraintEnvironment + * @generated + */ + public Adapter createConstraintEnvironmentAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} // EnvironmentAdapterFactory diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/util/EnvironmentResourceFactoryImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/util/EnvironmentResourceFactoryImpl.java new file mode 100644 index 00000000000..0d2ec167ba5 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/util/EnvironmentResourceFactoryImpl.java @@ -0,0 +1,44 @@ +/** + */ +package org.eclipse.papyrus.infra.properties.environment.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +/** + * <!-- begin-user-doc --> + * The <b>Resource Factory</b> associated with the package. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.util.EnvironmentResourceImpl + * @generated + */ +public class EnvironmentResourceFactoryImpl extends ResourceFactoryImpl { + /** + * Creates an instance of the resource factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EnvironmentResourceFactoryImpl() { + super(); + } + + /** + * Creates an instance of the resource. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Resource createResource(URI uri) { + Resource result = new EnvironmentResourceImpl(uri); + return result; + } + +} // EnvironmentResourceFactoryImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/util/EnvironmentResourceImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/util/EnvironmentResourceImpl.java new file mode 100644 index 00000000000..7fb8cf4f6be --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/util/EnvironmentResourceImpl.java @@ -0,0 +1,41 @@ +/** + */ +package org.eclipse.papyrus.infra.properties.environment.util; + +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; + +/** + * <!-- begin-user-doc --> + * The <b>Resource </b> associated with the package. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.util.EnvironmentResourceFactoryImpl + * @generated + */ +public class EnvironmentResourceImpl extends XMIResourceImpl { + /** + * Creates an instance of the resource. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param uri + * the URI of the new resource. + * @generated + */ + public EnvironmentResourceImpl(URI uri) { + super(uri); + } + + /** + * @see org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl#useUUIDs() + * + * @return + * + * @generated NOT + */ + @Override + protected boolean useUUIDs() { + return true; + } +} // EnvironmentResourceImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/util/EnvironmentSwitch.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/util/EnvironmentSwitch.java new file mode 100644 index 00000000000..79056f4e21a --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/environment/util/EnvironmentSwitch.java @@ -0,0 +1,365 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.environment.util; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.util.Switch; +import org.eclipse.papyrus.infra.constraints.environment.ConstraintEnvironment; +import org.eclipse.papyrus.infra.properties.environment.CompositeWidgetType; +import org.eclipse.papyrus.infra.properties.environment.Environment; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.LayoutType; +import org.eclipse.papyrus.infra.properties.environment.MiscClass; +import org.eclipse.papyrus.infra.properties.environment.ModelElementFactoryDescriptor; +import org.eclipse.papyrus.infra.properties.environment.Namespace; +import org.eclipse.papyrus.infra.properties.environment.PropertyEditorType; +import org.eclipse.papyrus.infra.properties.environment.StandardWidgetType; +import org.eclipse.papyrus.infra.properties.environment.WidgetType; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage + * @generated + */ +public class EnvironmentSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected static EnvironmentPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EnvironmentSwitch() { + if (modelPackage == null) { + modelPackage = EnvironmentPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case EnvironmentPackage.ENVIRONMENT: { + Environment environment = (Environment) theEObject; + T result = caseEnvironment(environment); + if (result == null) { + result = caseConstraintEnvironment(environment); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EnvironmentPackage.PROPERTY_EDITOR_TYPE: { + PropertyEditorType propertyEditorType = (PropertyEditorType) theEObject; + T result = casePropertyEditorType(propertyEditorType); + if (result == null) { + result = caseWidgetType(propertyEditorType); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EnvironmentPackage.WIDGET_TYPE: { + WidgetType widgetType = (WidgetType) theEObject; + T result = caseWidgetType(widgetType); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EnvironmentPackage.COMPOSITE_WIDGET_TYPE: { + CompositeWidgetType compositeWidgetType = (CompositeWidgetType) theEObject; + T result = caseCompositeWidgetType(compositeWidgetType); + if (result == null) { + result = caseWidgetType(compositeWidgetType); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EnvironmentPackage.LAYOUT_TYPE: { + LayoutType layoutType = (LayoutType) theEObject; + T result = caseLayoutType(layoutType); + if (result == null) { + result = caseWidgetType(layoutType); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EnvironmentPackage.MODEL_ELEMENT_FACTORY_DESCRIPTOR: { + ModelElementFactoryDescriptor modelElementFactoryDescriptor = (ModelElementFactoryDescriptor) theEObject; + T result = caseModelElementFactoryDescriptor(modelElementFactoryDescriptor); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EnvironmentPackage.STANDARD_WIDGET_TYPE: { + StandardWidgetType standardWidgetType = (StandardWidgetType) theEObject; + T result = caseStandardWidgetType(standardWidgetType); + if (result == null) { + result = caseWidgetType(standardWidgetType); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EnvironmentPackage.NAMESPACE: { + Namespace namespace = (Namespace) theEObject; + T result = caseNamespace(namespace); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case EnvironmentPackage.MISC_CLASS: { + MiscClass miscClass = (MiscClass) theEObject; + T result = caseMiscClass(miscClass); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Environment</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Environment</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEnvironment(Environment object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Property Editor Type</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Property Editor Type</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePropertyEditorType(PropertyEditorType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Widget Type</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Widget Type</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseWidgetType(WidgetType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Composite Widget Type</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Composite Widget Type</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCompositeWidgetType(CompositeWidgetType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Layout Type</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Layout Type</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseLayoutType(LayoutType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Model Element Factory Descriptor</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Model Element Factory Descriptor</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseModelElementFactoryDescriptor(ModelElementFactoryDescriptor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Standard Widget Type</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Standard Widget Type</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStandardWidgetType(StandardWidgetType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Namespace</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Namespace</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamespace(Namespace object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Misc Class</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Misc Class</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMiscClass(MiscClass object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Constraint Environment</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Constraint Environment</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConstraintEnvironment(ConstraintEnvironment object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} // EnvironmentSwitch diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/CompositeWidget.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/CompositeWidget.java new file mode 100644 index 00000000000..9ccfcb13964 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/CompositeWidget.java @@ -0,0 +1,103 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.papyrus.infra.properties.environment.CompositeWidgetType; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Composite Widget</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.CompositeWidget#getLayout <em>Layout</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.CompositeWidget#getWidgets <em>Widgets</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.CompositeWidget#getWidgetType <em>Widget Type</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getCompositeWidget() + * @model + * @generated + */ +public interface CompositeWidget extends Widget { + /** + * Returns the value of the '<em><b>Layout</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Layout</em>' containment reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Layout</em>' containment reference. + * @see #setLayout(Layout) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getCompositeWidget_Layout() + * @model containment="true" required="true" + * @generated + */ + Layout getLayout(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.CompositeWidget#getLayout <em>Layout</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Layout</em>' containment reference. + * @see #getLayout() + * @generated + */ + void setLayout(Layout value); + + /** + * Returns the value of the '<em><b>Widgets</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.ui.Widget}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Widgets</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Widgets</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getCompositeWidget_Widgets() + * @model containment="true" + * @generated + */ + EList<Widget> getWidgets(); + + /** + * Returns the value of the '<em><b>Widget Type</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Widget Type</em>' reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Widget Type</em>' reference. + * @see #setWidgetType(CompositeWidgetType) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getCompositeWidget_WidgetType() + * @model required="true" + * @generated + */ + CompositeWidgetType getWidgetType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.CompositeWidget#getWidgetType <em>Widget Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Widget Type</em>' reference. + * @see #getWidgetType() + * @generated + */ + void setWidgetType(CompositeWidgetType value); + +} // CompositeWidget diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/Element.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/Element.java new file mode 100644 index 00000000000..7a02d82a87d --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/Element.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Element</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getElement() + * @model + * @generated + */ +public interface Element extends EObject { +} // Element diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/Layout.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/Layout.java new file mode 100644 index 00000000000..169c31c3456 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/Layout.java @@ -0,0 +1,56 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + +import org.eclipse.papyrus.infra.properties.environment.LayoutType; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Layout</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.Layout#getLayoutType <em>Layout Type</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getLayout() + * @model + * @generated + */ +public interface Layout extends UIComponent { + /** + * Returns the value of the '<em><b>Layout Type</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Layout Type</em>' reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Layout Type</em>' reference. + * @see #setLayoutType(LayoutType) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getLayout_LayoutType() + * @model required="true" + * @generated + */ + LayoutType getLayoutType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.Layout#getLayoutType <em>Layout Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Layout Type</em>' reference. + * @see #getLayoutType() + * @generated + */ + void setLayoutType(LayoutType value); + +} // Layout diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/PropertyEditor.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/PropertyEditor.java new file mode 100644 index 00000000000..279e8669ae7 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/PropertyEditor.java @@ -0,0 +1,234 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + +import org.eclipse.papyrus.infra.properties.contexts.Property; +import org.eclipse.papyrus.infra.properties.contexts.UnknownProperty; +import org.eclipse.papyrus.infra.properties.environment.PropertyEditorType; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Property Editor</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getProperty <em>Property</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#isReadOnly <em>Read Only</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getWidgetType <em>Widget Type</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getUnresolvedProperty <em>Unresolved Property</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getContentProviderClass <em>Content Provider Class</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#isShowLabel <em>Show Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getCustomLabel <em>Custom Label</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getPropertyEditor() + * @model + * @generated + */ +public interface PropertyEditor extends Widget { + /** + * Returns the value of the '<em><b>Property</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Property</em>' reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Property</em>' reference. + * @see #setProperty(Property) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getPropertyEditor_Property() + * @model required="true" + * @generated + */ + Property getProperty(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getProperty <em>Property</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Property</em>' reference. + * @see #getProperty() + * @generated + */ + void setProperty(Property value); + + /** + * Returns the value of the '<em><b>Read Only</b></em>' attribute. + * The default value is <code>"false"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Read Only</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Read Only</em>' attribute. + * @see #setReadOnly(boolean) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getPropertyEditor_ReadOnly() + * @model default="false" required="true" + * @generated + */ + boolean isReadOnly(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#isReadOnly <em>Read Only</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Read Only</em>' attribute. + * @see #isReadOnly() + * @generated + */ + void setReadOnly(boolean value); + + /** + * Returns the value of the '<em><b>Widget Type</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Widget Type</em>' reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Widget Type</em>' reference. + * @see #setWidgetType(PropertyEditorType) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getPropertyEditor_WidgetType() + * @model required="true" + * @generated + */ + PropertyEditorType getWidgetType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getWidgetType <em>Widget Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Widget Type</em>' reference. + * @see #getWidgetType() + * @generated + */ + void setWidgetType(PropertyEditorType value); + + /** + * Returns the value of the '<em><b>Unresolved Property</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Unresolved Property</em>' containment reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Unresolved Property</em>' containment reference. + * @see #setUnresolvedProperty(UnknownProperty) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getPropertyEditor_UnresolvedProperty() + * @model containment="true" + * @generated + */ + UnknownProperty getUnresolvedProperty(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getUnresolvedProperty <em>Unresolved Property</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Unresolved Property</em>' containment reference. + * @see #getUnresolvedProperty() + * @generated + */ + void setUnresolvedProperty(UnknownProperty value); + + /** + * Returns the value of the '<em><b>Content Provider Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Content Provider Class</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Content Provider Class</em>' attribute. + * @see #setContentProviderClass(String) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getPropertyEditor_ContentProviderClass() + * @model + * @generated + */ + String getContentProviderClass(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getContentProviderClass <em>Content Provider Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Content Provider Class</em>' attribute. + * @see #getContentProviderClass() + * @generated + */ + void setContentProviderClass(String value); + + /** + * Returns the value of the '<em><b>Show Label</b></em>' attribute. + * The default value is <code>"true"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Show Label</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Show Label</em>' attribute. + * @see #setShowLabel(boolean) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getPropertyEditor_ShowLabel() + * @model default="true" required="true" + * @generated + */ + boolean isShowLabel(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#isShowLabel <em>Show Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Show Label</em>' attribute. + * @see #isShowLabel() + * @generated + */ + void setShowLabel(boolean value); + + /** + * Returns the value of the '<em><b>Custom Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Custom Label</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Custom Label</em>' attribute. + * @see #setCustomLabel(String) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getPropertyEditor_CustomLabel() + * @model + * @generated + */ + String getCustomLabel(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getCustomLabel <em>Custom Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Custom Label</em>' attribute. + * @see #getCustomLabel() + * @generated + */ + void setCustomLabel(String value); + +} // PropertyEditor diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/ReferenceAttribute.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/ReferenceAttribute.java new file mode 100644 index 00000000000..b728488db08 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/ReferenceAttribute.java @@ -0,0 +1,55 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Reference Attribute</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getReferenceAttribute() + * @model + * @generated + */ +public interface ReferenceAttribute extends WidgetAttribute { + /** + * Returns the value of the '<em><b>Value</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' containment reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Value</em>' containment reference. + * @see #setValue(UIComponent) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getReferenceAttribute_Value() + * @model containment="true" required="true" + * @generated + */ + UIComponent getValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute#getValue <em>Value</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Value</em>' containment reference. + * @see #getValue() + * @generated + */ + void setValue(UIComponent value); + +} // ReferenceAttribute diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/StandardWidget.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/StandardWidget.java new file mode 100644 index 00000000000..65e4648903c --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/StandardWidget.java @@ -0,0 +1,56 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + +import org.eclipse.papyrus.infra.properties.environment.StandardWidgetType; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Standard Widget</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.StandardWidget#getWidgetType <em>Widget Type</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getStandardWidget() + * @model + * @generated + */ +public interface StandardWidget extends Widget { + /** + * Returns the value of the '<em><b>Widget Type</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Widget Type</em>' reference isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Widget Type</em>' reference. + * @see #setWidgetType(StandardWidgetType) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getStandardWidget_WidgetType() + * @model required="true" + * @generated + */ + StandardWidgetType getWidgetType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.StandardWidget#getWidgetType <em>Widget Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Widget Type</em>' reference. + * @see #getWidgetType() + * @generated + */ + void setWidgetType(StandardWidgetType value); + +} // StandardWidget diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/UIComponent.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/UIComponent.java new file mode 100644 index 00000000000..532711338cd --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/UIComponent.java @@ -0,0 +1,44 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>UI Component</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.UIComponent#getAttributes <em>Attributes</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getUIComponent() + * @model abstract="true" + * @generated + */ +public interface UIComponent extends Element { + /** + * Returns the value of the '<em><b>Attributes</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.infra.properties.ui.WidgetAttribute}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Attributes</em>' containment reference list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Attributes</em>' containment reference list. + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getUIComponent_Attributes() + * @model containment="true" + * @generated + */ + EList<WidgetAttribute> getAttributes(); + +} // UIComponent diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/UiFactory.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/UiFactory.java new file mode 100644 index 00000000000..558680c1dc6 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/UiFactory.java @@ -0,0 +1,120 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage + * @generated + */ +public interface UiFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + UiFactory eINSTANCE = org.eclipse.papyrus.infra.properties.ui.impl.UiFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Element</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Element</em>'. + * @generated + */ + Element createElement(); + + /** + * Returns a new object of class '<em>Standard Widget</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Standard Widget</em>'. + * @generated + */ + StandardWidget createStandardWidget(); + + /** + * Returns a new object of class '<em>Property Editor</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Property Editor</em>'. + * @generated + */ + PropertyEditor createPropertyEditor(); + + /** + * Returns a new object of class '<em>Composite Widget</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Composite Widget</em>'. + * @generated + */ + CompositeWidget createCompositeWidget(); + + /** + * Returns a new object of class '<em>Unknown Component</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Unknown Component</em>'. + * @generated + */ + UnknownComponent createUnknownComponent(); + + /** + * Returns a new object of class '<em>Layout</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Layout</em>'. + * @generated + */ + Layout createLayout(); + + /** + * Returns a new object of class '<em>Value Attribute</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Value Attribute</em>'. + * @generated + */ + ValueAttribute createValueAttribute(); + + /** + * Returns a new object of class '<em>Reference Attribute</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Reference Attribute</em>'. + * @generated + */ + ReferenceAttribute createReferenceAttribute(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the package supported by this factory. + * @generated + */ + UiPackage getUiPackage(); + +} // UiFactory diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/UiPackage.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/UiPackage.java new file mode 100644 index 00000000000..2dca54975b8 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/UiPackage.java @@ -0,0 +1,1174 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiFactory + * @model kind="package" + * @generated + */ +public interface UiPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + String eNAME = "ui"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/properties/ui/0.9"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + String eNS_PREFIX = "ui"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + UiPackage eINSTANCE = org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.ElementImpl <em>Element</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.ElementImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getElement() + * @generated + */ + int ELEMENT = 0; + + /** + * The number of structural features of the '<em>Element</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ELEMENT_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.UIComponentImpl <em>UI Component</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.UIComponentImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getUIComponent() + * @generated + */ + int UI_COMPONENT = 1; + + /** + * The feature id for the '<em><b>Attributes</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int UI_COMPONENT__ATTRIBUTES = ELEMENT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>UI Component</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int UI_COMPONENT_FEATURE_COUNT = ELEMENT_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.WidgetImpl <em>Widget</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.WidgetImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getWidget() + * @generated + */ + int WIDGET = 2; + + /** + * The feature id for the '<em><b>Attributes</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int WIDGET__ATTRIBUTES = UI_COMPONENT__ATTRIBUTES; + + /** + * The number of structural features of the '<em>Widget</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int WIDGET_FEATURE_COUNT = UI_COMPONENT_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.StandardWidgetImpl <em>Standard Widget</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.StandardWidgetImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getStandardWidget() + * @generated + */ + int STANDARD_WIDGET = 3; + + /** + * The feature id for the '<em><b>Attributes</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int STANDARD_WIDGET__ATTRIBUTES = WIDGET__ATTRIBUTES; + + /** + * The feature id for the '<em><b>Widget Type</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int STANDARD_WIDGET__WIDGET_TYPE = WIDGET_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Standard Widget</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int STANDARD_WIDGET_FEATURE_COUNT = WIDGET_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.PropertyEditorImpl <em>Property Editor</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.PropertyEditorImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getPropertyEditor() + * @generated + */ + int PROPERTY_EDITOR = 4; + + /** + * The feature id for the '<em><b>Attributes</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR__ATTRIBUTES = WIDGET__ATTRIBUTES; + + /** + * The feature id for the '<em><b>Property</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR__PROPERTY = WIDGET_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Read Only</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR__READ_ONLY = WIDGET_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Widget Type</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR__WIDGET_TYPE = WIDGET_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Unresolved Property</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR__UNRESOLVED_PROPERTY = WIDGET_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Content Provider Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR__CONTENT_PROVIDER_CLASS = WIDGET_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Show Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR__SHOW_LABEL = WIDGET_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Custom Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR__CUSTOM_LABEL = WIDGET_FEATURE_COUNT + 6; + + /** + * The number of structural features of the '<em>Property Editor</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_EDITOR_FEATURE_COUNT = WIDGET_FEATURE_COUNT + 7; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl <em>Composite Widget</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getCompositeWidget() + * @generated + */ + int COMPOSITE_WIDGET = 5; + + /** + * The feature id for the '<em><b>Attributes</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPOSITE_WIDGET__ATTRIBUTES = WIDGET__ATTRIBUTES; + + /** + * The feature id for the '<em><b>Layout</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPOSITE_WIDGET__LAYOUT = WIDGET_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Widgets</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPOSITE_WIDGET__WIDGETS = WIDGET_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Widget Type</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPOSITE_WIDGET__WIDGET_TYPE = WIDGET_FEATURE_COUNT + 2; + + /** + * The number of structural features of the '<em>Composite Widget</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPOSITE_WIDGET_FEATURE_COUNT = WIDGET_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.UnknownComponentImpl <em>Unknown Component</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.UnknownComponentImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getUnknownComponent() + * @generated + */ + int UNKNOWN_COMPONENT = 6; + + /** + * The feature id for the '<em><b>Attributes</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int UNKNOWN_COMPONENT__ATTRIBUTES = WIDGET__ATTRIBUTES; + + /** + * The feature id for the '<em><b>Type Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int UNKNOWN_COMPONENT__TYPE_NAME = WIDGET_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Unknown Component</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int UNKNOWN_COMPONENT_FEATURE_COUNT = WIDGET_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.LayoutImpl <em>Layout</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.LayoutImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getLayout() + * @generated + */ + int LAYOUT = 7; + + /** + * The feature id for the '<em><b>Attributes</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LAYOUT__ATTRIBUTES = UI_COMPONENT__ATTRIBUTES; + + /** + * The feature id for the '<em><b>Layout Type</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LAYOUT__LAYOUT_TYPE = UI_COMPONENT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Layout</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LAYOUT_FEATURE_COUNT = UI_COMPONENT_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.WidgetAttributeImpl <em>Widget Attribute</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.WidgetAttributeImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getWidgetAttribute() + * @generated + */ + int WIDGET_ATTRIBUTE = 8; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int WIDGET_ATTRIBUTE__NAME = ELEMENT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Widget Attribute</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int WIDGET_ATTRIBUTE_FEATURE_COUNT = ELEMENT_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.ValueAttributeImpl <em>Value Attribute</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.ValueAttributeImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getValueAttribute() + * @generated + */ + int VALUE_ATTRIBUTE = 9; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VALUE_ATTRIBUTE__NAME = WIDGET_ATTRIBUTE__NAME; + + /** + * The feature id for the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VALUE_ATTRIBUTE__VALUE = WIDGET_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Value Attribute</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VALUE_ATTRIBUTE_FEATURE_COUNT = WIDGET_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.ReferenceAttributeImpl <em>Reference Attribute</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.ReferenceAttributeImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getReferenceAttribute() + * @generated + */ + int REFERENCE_ATTRIBUTE = 10; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int REFERENCE_ATTRIBUTE__NAME = WIDGET_ATTRIBUTE__NAME; + + /** + * The feature id for the '<em><b>Value</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int REFERENCE_ATTRIBUTE__VALUE = WIDGET_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Reference Attribute</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int REFERENCE_ATTRIBUTE_FEATURE_COUNT = WIDGET_ATTRIBUTE_FEATURE_COUNT + 1; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.ui.Element <em>Element</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Element</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.Element + * @generated + */ + EClass getElement(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.ui.UIComponent <em>UI Component</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>UI Component</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.UIComponent + * @generated + */ + EClass getUIComponent(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.ui.UIComponent#getAttributes <em>Attributes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Attributes</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.UIComponent#getAttributes() + * @see #getUIComponent() + * @generated + */ + EReference getUIComponent_Attributes(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.ui.Widget <em>Widget</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Widget</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.Widget + * @generated + */ + EClass getWidget(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.ui.StandardWidget <em>Standard Widget</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Standard Widget</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.StandardWidget + * @generated + */ + EClass getStandardWidget(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.properties.ui.StandardWidget#getWidgetType <em>Widget Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Widget Type</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.StandardWidget#getWidgetType() + * @see #getStandardWidget() + * @generated + */ + EReference getStandardWidget_WidgetType(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor <em>Property Editor</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Property Editor</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.PropertyEditor + * @generated + */ + EClass getPropertyEditor(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getProperty <em>Property</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Property</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getProperty() + * @see #getPropertyEditor() + * @generated + */ + EReference getPropertyEditor_Property(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#isReadOnly <em>Read Only</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Read Only</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.PropertyEditor#isReadOnly() + * @see #getPropertyEditor() + * @generated + */ + EAttribute getPropertyEditor_ReadOnly(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getWidgetType <em>Widget Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Widget Type</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getWidgetType() + * @see #getPropertyEditor() + * @generated + */ + EReference getPropertyEditor_WidgetType(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getUnresolvedProperty <em>Unresolved Property</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Unresolved Property</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getUnresolvedProperty() + * @see #getPropertyEditor() + * @generated + */ + EReference getPropertyEditor_UnresolvedProperty(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getContentProviderClass <em>Content Provider Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Content Provider Class</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getContentProviderClass() + * @see #getPropertyEditor() + * @generated + */ + EAttribute getPropertyEditor_ContentProviderClass(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#isShowLabel <em>Show Label</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Show Label</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.PropertyEditor#isShowLabel() + * @see #getPropertyEditor() + * @generated + */ + EAttribute getPropertyEditor_ShowLabel(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getCustomLabel <em>Custom Label</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Custom Label</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.PropertyEditor#getCustomLabel() + * @see #getPropertyEditor() + * @generated + */ + EAttribute getPropertyEditor_CustomLabel(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.ui.CompositeWidget <em>Composite Widget</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Composite Widget</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.CompositeWidget + * @generated + */ + EClass getCompositeWidget(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.properties.ui.CompositeWidget#getLayout <em>Layout</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Layout</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.CompositeWidget#getLayout() + * @see #getCompositeWidget() + * @generated + */ + EReference getCompositeWidget_Layout(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.properties.ui.CompositeWidget#getWidgets <em>Widgets</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Widgets</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.CompositeWidget#getWidgets() + * @see #getCompositeWidget() + * @generated + */ + EReference getCompositeWidget_Widgets(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.properties.ui.CompositeWidget#getWidgetType <em>Widget Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Widget Type</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.CompositeWidget#getWidgetType() + * @see #getCompositeWidget() + * @generated + */ + EReference getCompositeWidget_WidgetType(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.ui.UnknownComponent <em>Unknown Component</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Unknown Component</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.UnknownComponent + * @generated + */ + EClass getUnknownComponent(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.ui.UnknownComponent#getTypeName <em>Type Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Type Name</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.UnknownComponent#getTypeName() + * @see #getUnknownComponent() + * @generated + */ + EAttribute getUnknownComponent_TypeName(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.ui.Layout <em>Layout</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Layout</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.Layout + * @generated + */ + EClass getLayout(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.properties.ui.Layout#getLayoutType <em>Layout Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Layout Type</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.Layout#getLayoutType() + * @see #getLayout() + * @generated + */ + EReference getLayout_LayoutType(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.ui.WidgetAttribute <em>Widget Attribute</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Widget Attribute</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.WidgetAttribute + * @generated + */ + EClass getWidgetAttribute(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.ui.WidgetAttribute#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.WidgetAttribute#getName() + * @see #getWidgetAttribute() + * @generated + */ + EAttribute getWidgetAttribute_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.ui.ValueAttribute <em>Value Attribute</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Value Attribute</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.ValueAttribute + * @generated + */ + EClass getValueAttribute(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.properties.ui.ValueAttribute#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Value</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.ValueAttribute#getValue() + * @see #getValueAttribute() + * @generated + */ + EAttribute getValueAttribute_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute <em>Reference Attribute</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Reference Attribute</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute + * @generated + */ + EClass getReferenceAttribute(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Value</em>'. + * @see org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute#getValue() + * @see #getReferenceAttribute() + * @generated + */ + EReference getReferenceAttribute_Value(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the factory that creates the instances of the model. + * @generated + */ + UiFactory getUiFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.ElementImpl <em>Element</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.ElementImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getElement() + * @generated + */ + EClass ELEMENT = eINSTANCE.getElement(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.UIComponentImpl <em>UI Component</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.UIComponentImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getUIComponent() + * @generated + */ + EClass UI_COMPONENT = eINSTANCE.getUIComponent(); + + /** + * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference UI_COMPONENT__ATTRIBUTES = eINSTANCE.getUIComponent_Attributes(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.WidgetImpl <em>Widget</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.WidgetImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getWidget() + * @generated + */ + EClass WIDGET = eINSTANCE.getWidget(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.StandardWidgetImpl <em>Standard Widget</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.StandardWidgetImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getStandardWidget() + * @generated + */ + EClass STANDARD_WIDGET = eINSTANCE.getStandardWidget(); + + /** + * The meta object literal for the '<em><b>Widget Type</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference STANDARD_WIDGET__WIDGET_TYPE = eINSTANCE.getStandardWidget_WidgetType(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.PropertyEditorImpl <em>Property Editor</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.PropertyEditorImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getPropertyEditor() + * @generated + */ + EClass PROPERTY_EDITOR = eINSTANCE.getPropertyEditor(); + + /** + * The meta object literal for the '<em><b>Property</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference PROPERTY_EDITOR__PROPERTY = eINSTANCE.getPropertyEditor_Property(); + + /** + * The meta object literal for the '<em><b>Read Only</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY_EDITOR__READ_ONLY = eINSTANCE.getPropertyEditor_ReadOnly(); + + /** + * The meta object literal for the '<em><b>Widget Type</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference PROPERTY_EDITOR__WIDGET_TYPE = eINSTANCE.getPropertyEditor_WidgetType(); + + /** + * The meta object literal for the '<em><b>Unresolved Property</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference PROPERTY_EDITOR__UNRESOLVED_PROPERTY = eINSTANCE.getPropertyEditor_UnresolvedProperty(); + + /** + * The meta object literal for the '<em><b>Content Provider Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY_EDITOR__CONTENT_PROVIDER_CLASS = eINSTANCE.getPropertyEditor_ContentProviderClass(); + + /** + * The meta object literal for the '<em><b>Show Label</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY_EDITOR__SHOW_LABEL = eINSTANCE.getPropertyEditor_ShowLabel(); + + /** + * The meta object literal for the '<em><b>Custom Label</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY_EDITOR__CUSTOM_LABEL = eINSTANCE.getPropertyEditor_CustomLabel(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl <em>Composite Widget</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getCompositeWidget() + * @generated + */ + EClass COMPOSITE_WIDGET = eINSTANCE.getCompositeWidget(); + + /** + * The meta object literal for the '<em><b>Layout</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference COMPOSITE_WIDGET__LAYOUT = eINSTANCE.getCompositeWidget_Layout(); + + /** + * The meta object literal for the '<em><b>Widgets</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference COMPOSITE_WIDGET__WIDGETS = eINSTANCE.getCompositeWidget_Widgets(); + + /** + * The meta object literal for the '<em><b>Widget Type</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference COMPOSITE_WIDGET__WIDGET_TYPE = eINSTANCE.getCompositeWidget_WidgetType(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.UnknownComponentImpl <em>Unknown Component</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.UnknownComponentImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getUnknownComponent() + * @generated + */ + EClass UNKNOWN_COMPONENT = eINSTANCE.getUnknownComponent(); + + /** + * The meta object literal for the '<em><b>Type Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute UNKNOWN_COMPONENT__TYPE_NAME = eINSTANCE.getUnknownComponent_TypeName(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.LayoutImpl <em>Layout</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.LayoutImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getLayout() + * @generated + */ + EClass LAYOUT = eINSTANCE.getLayout(); + + /** + * The meta object literal for the '<em><b>Layout Type</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference LAYOUT__LAYOUT_TYPE = eINSTANCE.getLayout_LayoutType(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.WidgetAttributeImpl <em>Widget Attribute</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.WidgetAttributeImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getWidgetAttribute() + * @generated + */ + EClass WIDGET_ATTRIBUTE = eINSTANCE.getWidgetAttribute(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute WIDGET_ATTRIBUTE__NAME = eINSTANCE.getWidgetAttribute_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.ValueAttributeImpl <em>Value Attribute</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.ValueAttributeImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getValueAttribute() + * @generated + */ + EClass VALUE_ATTRIBUTE = eINSTANCE.getValueAttribute(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute VALUE_ATTRIBUTE__VALUE = eINSTANCE.getValueAttribute_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.infra.properties.ui.impl.ReferenceAttributeImpl <em>Reference Attribute</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.impl.ReferenceAttributeImpl + * @see org.eclipse.papyrus.infra.properties.ui.impl.UiPackageImpl#getReferenceAttribute() + * @generated + */ + EClass REFERENCE_ATTRIBUTE = eINSTANCE.getReferenceAttribute(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference REFERENCE_ATTRIBUTE__VALUE = eINSTANCE.getReferenceAttribute_Value(); + + } + +} // UiPackage diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/UnknownComponent.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/UnknownComponent.java new file mode 100644 index 00000000000..fbb03248bf7 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/UnknownComponent.java @@ -0,0 +1,55 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Unknown Component</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.UnknownComponent#getTypeName <em>Type Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getUnknownComponent() + * @model + * @generated + */ +public interface UnknownComponent extends Widget { + /** + * Returns the value of the '<em><b>Type Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type Name</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Type Name</em>' attribute. + * @see #setTypeName(String) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getUnknownComponent_TypeName() + * @model required="true" + * @generated + */ + String getTypeName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.UnknownComponent#getTypeName <em>Type Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Type Name</em>' attribute. + * @see #getTypeName() + * @generated + */ + void setTypeName(String value); + +} // UnknownComponent diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/ValueAttribute.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/ValueAttribute.java new file mode 100644 index 00000000000..e916298bf78 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/ValueAttribute.java @@ -0,0 +1,55 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Value Attribute</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.ValueAttribute#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getValueAttribute() + * @model + * @generated + */ +public interface ValueAttribute extends WidgetAttribute { + /** + * Returns the value of the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Value</em>' attribute. + * @see #setValue(String) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getValueAttribute_Value() + * @model required="true" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.ValueAttribute#getValue <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Value</em>' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // ValueAttribute diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/Widget.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/Widget.java new file mode 100644 index 00000000000..a63beae1e63 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/Widget.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Widget</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getWidget() + * @model abstract="true" + * @generated + */ +public interface Widget extends UIComponent { +} // Widget diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/WidgetAttribute.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/WidgetAttribute.java new file mode 100644 index 00000000000..88342924c13 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/WidgetAttribute.java @@ -0,0 +1,55 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Widget Attribute</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.WidgetAttribute#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getWidgetAttribute() + * @model abstract="true" + * @generated + */ +public interface WidgetAttribute extends Element { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#getWidgetAttribute_Name() + * @model required="true" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.infra.properties.ui.WidgetAttribute#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // WidgetAttribute diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/CompositeWidgetImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/CompositeWidgetImpl.java new file mode 100644 index 00000000000..5731be202f2 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/CompositeWidgetImpl.java @@ -0,0 +1,315 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +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.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.infra.properties.environment.CompositeWidgetType; +import org.eclipse.papyrus.infra.properties.ui.CompositeWidget; +import org.eclipse.papyrus.infra.properties.ui.Layout; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; +import org.eclipse.papyrus.infra.properties.ui.Widget; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Composite Widget</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl#getLayout <em>Layout</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl#getWidgets <em>Widgets</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.CompositeWidgetImpl#getWidgetType <em>Widget Type</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CompositeWidgetImpl extends WidgetImpl implements CompositeWidget { + /** + * The cached value of the '{@link #getLayout() <em>Layout</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLayout() + * @generated + * @ordered + */ + protected Layout layout; + + /** + * The cached value of the '{@link #getWidgets() <em>Widgets</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getWidgets() + * @generated + * @ordered + */ + protected EList<Widget> widgets; + + /** + * The cached value of the '{@link #getWidgetType() <em>Widget Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getWidgetType() + * @generated + * @ordered + */ + protected CompositeWidgetType widgetType; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected CompositeWidgetImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UiPackage.Literals.COMPOSITE_WIDGET; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Layout getLayout() { + return layout; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetLayout(Layout newLayout, NotificationChain msgs) { + Layout oldLayout = layout; + layout = newLayout; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UiPackage.COMPOSITE_WIDGET__LAYOUT, oldLayout, newLayout); + if (msgs == null) { + msgs = notification; + } else { + msgs.add(notification); + } + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setLayout(Layout newLayout) { + if (newLayout != layout) { + NotificationChain msgs = null; + if (layout != null) { + msgs = ((InternalEObject) layout).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UiPackage.COMPOSITE_WIDGET__LAYOUT, null, msgs); + } + if (newLayout != null) { + msgs = ((InternalEObject) newLayout).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UiPackage.COMPOSITE_WIDGET__LAYOUT, null, msgs); + } + msgs = basicSetLayout(newLayout, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } + else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.COMPOSITE_WIDGET__LAYOUT, newLayout, newLayout)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<Widget> getWidgets() { + if (widgets == null) { + widgets = new EObjectContainmentEList<Widget>(Widget.class, this, UiPackage.COMPOSITE_WIDGET__WIDGETS); + } + return widgets; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public CompositeWidgetType getWidgetType() { + if (widgetType != null && widgetType.eIsProxy()) { + InternalEObject oldWidgetType = (InternalEObject) widgetType; + widgetType = (CompositeWidgetType) eResolveProxy(oldWidgetType); + if (widgetType != oldWidgetType) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE, oldWidgetType, widgetType)); + } + } + } + return widgetType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public CompositeWidgetType basicGetWidgetType() { + return widgetType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setWidgetType(CompositeWidgetType newWidgetType) { + CompositeWidgetType oldWidgetType = widgetType; + widgetType = newWidgetType; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE, oldWidgetType, widgetType)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UiPackage.COMPOSITE_WIDGET__LAYOUT: + return basicSetLayout(null, msgs); + case UiPackage.COMPOSITE_WIDGET__WIDGETS: + return ((InternalEList<?>) getWidgets()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UiPackage.COMPOSITE_WIDGET__LAYOUT: + return getLayout(); + case UiPackage.COMPOSITE_WIDGET__WIDGETS: + return getWidgets(); + case UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE: + if (resolve) { + return getWidgetType(); + } + return basicGetWidgetType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UiPackage.COMPOSITE_WIDGET__LAYOUT: + setLayout((Layout) newValue); + return; + case UiPackage.COMPOSITE_WIDGET__WIDGETS: + getWidgets().clear(); + getWidgets().addAll((Collection<? extends Widget>) newValue); + return; + case UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE: + setWidgetType((CompositeWidgetType) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UiPackage.COMPOSITE_WIDGET__LAYOUT: + setLayout((Layout) null); + return; + case UiPackage.COMPOSITE_WIDGET__WIDGETS: + getWidgets().clear(); + return; + case UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE: + setWidgetType((CompositeWidgetType) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UiPackage.COMPOSITE_WIDGET__LAYOUT: + return layout != null; + case UiPackage.COMPOSITE_WIDGET__WIDGETS: + return widgets != null && !widgets.isEmpty(); + case UiPackage.COMPOSITE_WIDGET__WIDGET_TYPE: + return widgetType != null; + } + return super.eIsSet(featureID); + } + +} // CompositeWidgetImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/ElementImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/ElementImpl.java new file mode 100644 index 00000000000..9f920a78cb9 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/ElementImpl.java @@ -0,0 +1,45 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.papyrus.infra.properties.ui.Element; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Element</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class ElementImpl extends EObjectImpl implements Element { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected ElementImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UiPackage.Literals.ELEMENT; + } + +} // ElementImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/LayoutImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/LayoutImpl.java new file mode 100644 index 00000000000..7f220c43599 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/LayoutImpl.java @@ -0,0 +1,173 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.infra.properties.environment.LayoutType; +import org.eclipse.papyrus.infra.properties.ui.Layout; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Layout</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.LayoutImpl#getLayoutType <em>Layout Type</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class LayoutImpl extends UIComponentImpl implements Layout { + /** + * The cached value of the '{@link #getLayoutType() <em>Layout Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLayoutType() + * @generated + * @ordered + */ + protected LayoutType layoutType; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected LayoutImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UiPackage.Literals.LAYOUT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public LayoutType getLayoutType() { + if (layoutType != null && layoutType.eIsProxy()) { + InternalEObject oldLayoutType = (InternalEObject) layoutType; + layoutType = (LayoutType) eResolveProxy(oldLayoutType); + if (layoutType != oldLayoutType) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UiPackage.LAYOUT__LAYOUT_TYPE, oldLayoutType, layoutType)); + } + } + } + return layoutType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public LayoutType basicGetLayoutType() { + return layoutType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setLayoutType(LayoutType newLayoutType) { + LayoutType oldLayoutType = layoutType; + layoutType = newLayoutType; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.LAYOUT__LAYOUT_TYPE, oldLayoutType, layoutType)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UiPackage.LAYOUT__LAYOUT_TYPE: + if (resolve) { + return getLayoutType(); + } + return basicGetLayoutType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UiPackage.LAYOUT__LAYOUT_TYPE: + setLayoutType((LayoutType) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UiPackage.LAYOUT__LAYOUT_TYPE: + setLayoutType((LayoutType) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UiPackage.LAYOUT__LAYOUT_TYPE: + return layoutType != null; + } + return super.eIsSet(featureID); + } + +} // LayoutImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/PropertyEditorImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/PropertyEditorImpl.java new file mode 100644 index 00000000000..32a312089f3 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/PropertyEditorImpl.java @@ -0,0 +1,601 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.infra.properties.contexts.Property; +import org.eclipse.papyrus.infra.properties.contexts.UnknownProperty; +import org.eclipse.papyrus.infra.properties.environment.PropertyEditorType; +import org.eclipse.papyrus.infra.properties.ui.PropertyEditor; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Property Editor</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.PropertyEditorImpl#getProperty <em>Property</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.PropertyEditorImpl#isReadOnly <em>Read Only</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.PropertyEditorImpl#getWidgetType <em>Widget Type</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.PropertyEditorImpl#getUnresolvedProperty <em>Unresolved Property</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.PropertyEditorImpl#getContentProviderClass <em>Content Provider Class</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.PropertyEditorImpl#isShowLabel <em>Show Label</em>}</li> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.PropertyEditorImpl#getCustomLabel <em>Custom Label</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PropertyEditorImpl extends WidgetImpl implements PropertyEditor { + /** + * The cached value of the '{@link #getProperty() <em>Property</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getProperty() + * @generated + * @ordered + */ + protected Property property; + + /** + * The default value of the '{@link #isReadOnly() <em>Read Only</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected static final boolean READ_ONLY_EDEFAULT = false; + + /** + * The cached value of the '{@link #isReadOnly() <em>Read Only</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected boolean readOnly = READ_ONLY_EDEFAULT; + + /** + * The cached value of the '{@link #getWidgetType() <em>Widget Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getWidgetType() + * @generated + * @ordered + */ + protected PropertyEditorType widgetType; + + /** + * The cached value of the '{@link #getUnresolvedProperty() <em>Unresolved Property</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getUnresolvedProperty() + * @generated + * @ordered + */ + protected UnknownProperty unresolvedProperty; + + /** + * The default value of the '{@link #getContentProviderClass() <em>Content Provider Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getContentProviderClass() + * @generated + * @ordered + */ + protected static final String CONTENT_PROVIDER_CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getContentProviderClass() <em>Content Provider Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getContentProviderClass() + * @generated + * @ordered + */ + protected String contentProviderClass = CONTENT_PROVIDER_CLASS_EDEFAULT; + + /** + * The default value of the '{@link #isShowLabel() <em>Show Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #isShowLabel() + * @generated + * @ordered + */ + protected static final boolean SHOW_LABEL_EDEFAULT = true; + + /** + * The cached value of the '{@link #isShowLabel() <em>Show Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #isShowLabel() + * @generated + * @ordered + */ + protected boolean showLabel = SHOW_LABEL_EDEFAULT; + + /** + * The default value of the '{@link #getCustomLabel() <em>Custom Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getCustomLabel() + * @generated + * @ordered + */ + protected static final String CUSTOM_LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCustomLabel() <em>Custom Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getCustomLabel() + * @generated + * @ordered + */ + protected String customLabel = CUSTOM_LABEL_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected PropertyEditorImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UiPackage.Literals.PROPERTY_EDITOR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Property getProperty() { + if (property != null && property.eIsProxy()) { + InternalEObject oldProperty = (InternalEObject) property; + property = (Property) eResolveProxy(oldProperty); + if (property != oldProperty) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UiPackage.PROPERTY_EDITOR__PROPERTY, oldProperty, property)); + } + } + } + return property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Property basicGetProperty() { + return property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setProperty(Property newProperty) { + Property oldProperty = property; + property = newProperty; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.PROPERTY_EDITOR__PROPERTY, oldProperty, property)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean isReadOnly() { + return readOnly; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setReadOnly(boolean newReadOnly) { + boolean oldReadOnly = readOnly; + readOnly = newReadOnly; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.PROPERTY_EDITOR__READ_ONLY, oldReadOnly, readOnly)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public PropertyEditorType getWidgetType() { + if (widgetType != null && widgetType.eIsProxy()) { + InternalEObject oldWidgetType = (InternalEObject) widgetType; + widgetType = (PropertyEditorType) eResolveProxy(oldWidgetType); + if (widgetType != oldWidgetType) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UiPackage.PROPERTY_EDITOR__WIDGET_TYPE, oldWidgetType, widgetType)); + } + } + } + return widgetType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public PropertyEditorType basicGetWidgetType() { + return widgetType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setWidgetType(PropertyEditorType newWidgetType) { + PropertyEditorType oldWidgetType = widgetType; + widgetType = newWidgetType; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.PROPERTY_EDITOR__WIDGET_TYPE, oldWidgetType, widgetType)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public UnknownProperty getUnresolvedProperty() { + return unresolvedProperty; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetUnresolvedProperty(UnknownProperty newUnresolvedProperty, NotificationChain msgs) { + UnknownProperty oldUnresolvedProperty = unresolvedProperty; + unresolvedProperty = newUnresolvedProperty; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UiPackage.PROPERTY_EDITOR__UNRESOLVED_PROPERTY, oldUnresolvedProperty, newUnresolvedProperty); + if (msgs == null) { + msgs = notification; + } else { + msgs.add(notification); + } + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setUnresolvedProperty(UnknownProperty newUnresolvedProperty) { + if (newUnresolvedProperty != unresolvedProperty) { + NotificationChain msgs = null; + if (unresolvedProperty != null) { + msgs = ((InternalEObject) unresolvedProperty).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UiPackage.PROPERTY_EDITOR__UNRESOLVED_PROPERTY, null, msgs); + } + if (newUnresolvedProperty != null) { + msgs = ((InternalEObject) newUnresolvedProperty).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UiPackage.PROPERTY_EDITOR__UNRESOLVED_PROPERTY, null, msgs); + } + msgs = basicSetUnresolvedProperty(newUnresolvedProperty, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } + else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.PROPERTY_EDITOR__UNRESOLVED_PROPERTY, newUnresolvedProperty, newUnresolvedProperty)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getContentProviderClass() { + return contentProviderClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setContentProviderClass(String newContentProviderClass) { + String oldContentProviderClass = contentProviderClass; + contentProviderClass = newContentProviderClass; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.PROPERTY_EDITOR__CONTENT_PROVIDER_CLASS, oldContentProviderClass, contentProviderClass)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean isShowLabel() { + return showLabel; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setShowLabel(boolean newShowLabel) { + boolean oldShowLabel = showLabel; + showLabel = newShowLabel; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.PROPERTY_EDITOR__SHOW_LABEL, oldShowLabel, showLabel)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getCustomLabel() { + return customLabel; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setCustomLabel(String newCustomLabel) { + String oldCustomLabel = customLabel; + customLabel = newCustomLabel; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.PROPERTY_EDITOR__CUSTOM_LABEL, oldCustomLabel, customLabel)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UiPackage.PROPERTY_EDITOR__UNRESOLVED_PROPERTY: + return basicSetUnresolvedProperty(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UiPackage.PROPERTY_EDITOR__PROPERTY: + if (resolve) { + return getProperty(); + } + return basicGetProperty(); + case UiPackage.PROPERTY_EDITOR__READ_ONLY: + return isReadOnly(); + case UiPackage.PROPERTY_EDITOR__WIDGET_TYPE: + if (resolve) { + return getWidgetType(); + } + return basicGetWidgetType(); + case UiPackage.PROPERTY_EDITOR__UNRESOLVED_PROPERTY: + return getUnresolvedProperty(); + case UiPackage.PROPERTY_EDITOR__CONTENT_PROVIDER_CLASS: + return getContentProviderClass(); + case UiPackage.PROPERTY_EDITOR__SHOW_LABEL: + return isShowLabel(); + case UiPackage.PROPERTY_EDITOR__CUSTOM_LABEL: + return getCustomLabel(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UiPackage.PROPERTY_EDITOR__PROPERTY: + setProperty((Property) newValue); + return; + case UiPackage.PROPERTY_EDITOR__READ_ONLY: + setReadOnly((Boolean) newValue); + return; + case UiPackage.PROPERTY_EDITOR__WIDGET_TYPE: + setWidgetType((PropertyEditorType) newValue); + return; + case UiPackage.PROPERTY_EDITOR__UNRESOLVED_PROPERTY: + setUnresolvedProperty((UnknownProperty) newValue); + return; + case UiPackage.PROPERTY_EDITOR__CONTENT_PROVIDER_CLASS: + setContentProviderClass((String) newValue); + return; + case UiPackage.PROPERTY_EDITOR__SHOW_LABEL: + setShowLabel((Boolean) newValue); + return; + case UiPackage.PROPERTY_EDITOR__CUSTOM_LABEL: + setCustomLabel((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UiPackage.PROPERTY_EDITOR__PROPERTY: + setProperty((Property) null); + return; + case UiPackage.PROPERTY_EDITOR__READ_ONLY: + setReadOnly(READ_ONLY_EDEFAULT); + return; + case UiPackage.PROPERTY_EDITOR__WIDGET_TYPE: + setWidgetType((PropertyEditorType) null); + return; + case UiPackage.PROPERTY_EDITOR__UNRESOLVED_PROPERTY: + setUnresolvedProperty((UnknownProperty) null); + return; + case UiPackage.PROPERTY_EDITOR__CONTENT_PROVIDER_CLASS: + setContentProviderClass(CONTENT_PROVIDER_CLASS_EDEFAULT); + return; + case UiPackage.PROPERTY_EDITOR__SHOW_LABEL: + setShowLabel(SHOW_LABEL_EDEFAULT); + return; + case UiPackage.PROPERTY_EDITOR__CUSTOM_LABEL: + setCustomLabel(CUSTOM_LABEL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UiPackage.PROPERTY_EDITOR__PROPERTY: + return property != null; + case UiPackage.PROPERTY_EDITOR__READ_ONLY: + return readOnly != READ_ONLY_EDEFAULT; + case UiPackage.PROPERTY_EDITOR__WIDGET_TYPE: + return widgetType != null; + case UiPackage.PROPERTY_EDITOR__UNRESOLVED_PROPERTY: + return unresolvedProperty != null; + case UiPackage.PROPERTY_EDITOR__CONTENT_PROVIDER_CLASS: + return CONTENT_PROVIDER_CLASS_EDEFAULT == null ? contentProviderClass != null : !CONTENT_PROVIDER_CLASS_EDEFAULT.equals(contentProviderClass); + case UiPackage.PROPERTY_EDITOR__SHOW_LABEL: + return showLabel != SHOW_LABEL_EDEFAULT; + case UiPackage.PROPERTY_EDITOR__CUSTOM_LABEL: + return CUSTOM_LABEL_EDEFAULT == null ? customLabel != null : !CUSTOM_LABEL_EDEFAULT.equals(customLabel); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (readOnly: "); + result.append(readOnly); + result.append(", contentProviderClass: "); + result.append(contentProviderClass); + result.append(", showLabel: "); + result.append(showLabel); + result.append(", customLabel: "); + result.append(customLabel); + result.append(')'); + return result.toString(); + } + +} // PropertyEditorImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/ReferenceAttributeImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/ReferenceAttributeImpl.java new file mode 100644 index 00000000000..f6cf13788ed --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/ReferenceAttributeImpl.java @@ -0,0 +1,198 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute; +import org.eclipse.papyrus.infra.properties.ui.UIComponent; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Reference Attribute</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.ReferenceAttributeImpl#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ReferenceAttributeImpl extends WidgetAttributeImpl implements ReferenceAttribute { + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getValue() + * @generated + * @ordered + */ + protected UIComponent value; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected ReferenceAttributeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UiPackage.Literals.REFERENCE_ATTRIBUTE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public UIComponent getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetValue(UIComponent newValue, NotificationChain msgs) { + UIComponent oldValue = value; + value = newValue; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UiPackage.REFERENCE_ATTRIBUTE__VALUE, oldValue, newValue); + if (msgs == null) { + msgs = notification; + } else { + msgs.add(notification); + } + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setValue(UIComponent newValue) { + if (newValue != value) { + NotificationChain msgs = null; + if (value != null) { + msgs = ((InternalEObject) value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UiPackage.REFERENCE_ATTRIBUTE__VALUE, null, msgs); + } + if (newValue != null) { + msgs = ((InternalEObject) newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UiPackage.REFERENCE_ATTRIBUTE__VALUE, null, msgs); + } + msgs = basicSetValue(newValue, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } + else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.REFERENCE_ATTRIBUTE__VALUE, newValue, newValue)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UiPackage.REFERENCE_ATTRIBUTE__VALUE: + return basicSetValue(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UiPackage.REFERENCE_ATTRIBUTE__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UiPackage.REFERENCE_ATTRIBUTE__VALUE: + setValue((UIComponent) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UiPackage.REFERENCE_ATTRIBUTE__VALUE: + setValue((UIComponent) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UiPackage.REFERENCE_ATTRIBUTE__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + +} // ReferenceAttributeImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/StandardWidgetImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/StandardWidgetImpl.java new file mode 100644 index 00000000000..aaf8b55b061 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/StandardWidgetImpl.java @@ -0,0 +1,173 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.infra.properties.environment.StandardWidgetType; +import org.eclipse.papyrus.infra.properties.ui.StandardWidget; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Standard Widget</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.StandardWidgetImpl#getWidgetType <em>Widget Type</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class StandardWidgetImpl extends WidgetImpl implements StandardWidget { + /** + * The cached value of the '{@link #getWidgetType() <em>Widget Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getWidgetType() + * @generated + * @ordered + */ + protected StandardWidgetType widgetType; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected StandardWidgetImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UiPackage.Literals.STANDARD_WIDGET; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public StandardWidgetType getWidgetType() { + if (widgetType != null && widgetType.eIsProxy()) { + InternalEObject oldWidgetType = (InternalEObject) widgetType; + widgetType = (StandardWidgetType) eResolveProxy(oldWidgetType); + if (widgetType != oldWidgetType) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UiPackage.STANDARD_WIDGET__WIDGET_TYPE, oldWidgetType, widgetType)); + } + } + } + return widgetType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public StandardWidgetType basicGetWidgetType() { + return widgetType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setWidgetType(StandardWidgetType newWidgetType) { + StandardWidgetType oldWidgetType = widgetType; + widgetType = newWidgetType; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.STANDARD_WIDGET__WIDGET_TYPE, oldWidgetType, widgetType)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UiPackage.STANDARD_WIDGET__WIDGET_TYPE: + if (resolve) { + return getWidgetType(); + } + return basicGetWidgetType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UiPackage.STANDARD_WIDGET__WIDGET_TYPE: + setWidgetType((StandardWidgetType) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UiPackage.STANDARD_WIDGET__WIDGET_TYPE: + setWidgetType((StandardWidgetType) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UiPackage.STANDARD_WIDGET__WIDGET_TYPE: + return widgetType != null; + } + return super.eIsSet(featureID); + } + +} // StandardWidgetImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/UIComponentImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/UIComponentImpl.java new file mode 100644 index 00000000000..0fdd805de96 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/UIComponentImpl.java @@ -0,0 +1,160 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.papyrus.infra.properties.ui.UIComponent; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; +import org.eclipse.papyrus.infra.properties.ui.WidgetAttribute; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>UI Component</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.UIComponentImpl#getAttributes <em>Attributes</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class UIComponentImpl extends ElementImpl implements UIComponent { + /** + * The cached value of the '{@link #getAttributes() <em>Attributes</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getAttributes() + * @generated + * @ordered + */ + protected EList<WidgetAttribute> attributes; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected UIComponentImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UiPackage.Literals.UI_COMPONENT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<WidgetAttribute> getAttributes() { + if (attributes == null) { + attributes = new EObjectContainmentEList<WidgetAttribute>(WidgetAttribute.class, this, UiPackage.UI_COMPONENT__ATTRIBUTES); + } + return attributes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UiPackage.UI_COMPONENT__ATTRIBUTES: + return ((InternalEList<?>) getAttributes()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UiPackage.UI_COMPONENT__ATTRIBUTES: + return getAttributes(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UiPackage.UI_COMPONENT__ATTRIBUTES: + getAttributes().clear(); + getAttributes().addAll((Collection<? extends WidgetAttribute>) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UiPackage.UI_COMPONENT__ATTRIBUTES: + getAttributes().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UiPackage.UI_COMPONENT__ATTRIBUTES: + return attributes != null && !attributes.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // UIComponentImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/UiFactoryImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/UiFactoryImpl.java new file mode 100644 index 00000000000..ae02140217d --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/UiFactoryImpl.java @@ -0,0 +1,212 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.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.papyrus.infra.properties.ui.CompositeWidget; +import org.eclipse.papyrus.infra.properties.ui.Element; +import org.eclipse.papyrus.infra.properties.ui.Layout; +import org.eclipse.papyrus.infra.properties.ui.PropertyEditor; +import org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute; +import org.eclipse.papyrus.infra.properties.ui.StandardWidget; +import org.eclipse.papyrus.infra.properties.ui.UiFactory; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; +import org.eclipse.papyrus.infra.properties.ui.UnknownComponent; +import org.eclipse.papyrus.infra.properties.ui.ValueAttribute; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * + * @generated + */ +public class UiFactoryImpl extends EFactoryImpl implements UiFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static UiFactory init() { + try { + UiFactory theUiFactory = (UiFactory) EPackage.Registry.INSTANCE.getEFactory(UiPackage.eNS_URI); + if (theUiFactory != null) { + return theUiFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new UiFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public UiFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case UiPackage.ELEMENT: + return createElement(); + case UiPackage.STANDARD_WIDGET: + return createStandardWidget(); + case UiPackage.PROPERTY_EDITOR: + return createPropertyEditor(); + case UiPackage.COMPOSITE_WIDGET: + return createCompositeWidget(); + case UiPackage.UNKNOWN_COMPONENT: + return createUnknownComponent(); + case UiPackage.LAYOUT: + return createLayout(); + case UiPackage.VALUE_ATTRIBUTE: + return createValueAttribute(); + case UiPackage.REFERENCE_ATTRIBUTE: + return createReferenceAttribute(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Element createElement() { + ElementImpl element = new ElementImpl(); + return element; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public StandardWidget createStandardWidget() { + StandardWidgetImpl standardWidget = new StandardWidgetImpl(); + return standardWidget; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public PropertyEditor createPropertyEditor() { + PropertyEditorImpl propertyEditor = new PropertyEditorImpl(); + return propertyEditor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public CompositeWidget createCompositeWidget() { + CompositeWidgetImpl compositeWidget = new CompositeWidgetImpl(); + return compositeWidget; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public UnknownComponent createUnknownComponent() { + UnknownComponentImpl unknownComponent = new UnknownComponentImpl(); + return unknownComponent; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Layout createLayout() { + LayoutImpl layout = new LayoutImpl(); + return layout; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public ValueAttribute createValueAttribute() { + ValueAttributeImpl valueAttribute = new ValueAttributeImpl(); + return valueAttribute; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public ReferenceAttribute createReferenceAttribute() { + ReferenceAttributeImpl referenceAttribute = new ReferenceAttributeImpl(); + return referenceAttribute; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public UiPackage getUiPackage() { + return (UiPackage) getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @deprecated + * @generated + */ + @Deprecated + public static UiPackage getPackage() { + return UiPackage.eINSTANCE; + } + +} // UiFactoryImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/UiPackageImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/UiPackageImpl.java new file mode 100644 index 00000000000..c14143f94ac --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/UiPackageImpl.java @@ -0,0 +1,683 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.papyrus.infra.constraints.ConstraintsPackage; +import org.eclipse.papyrus.infra.properties.contexts.ContextsPackage; +import org.eclipse.papyrus.infra.properties.contexts.impl.ContextsPackageImpl; +import org.eclipse.papyrus.infra.properties.environment.EnvironmentPackage; +import org.eclipse.papyrus.infra.properties.environment.impl.EnvironmentPackageImpl; +import org.eclipse.papyrus.infra.properties.ui.CompositeWidget; +import org.eclipse.papyrus.infra.properties.ui.Element; +import org.eclipse.papyrus.infra.properties.ui.Layout; +import org.eclipse.papyrus.infra.properties.ui.PropertyEditor; +import org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute; +import org.eclipse.papyrus.infra.properties.ui.StandardWidget; +import org.eclipse.papyrus.infra.properties.ui.UIComponent; +import org.eclipse.papyrus.infra.properties.ui.UiFactory; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; +import org.eclipse.papyrus.infra.properties.ui.UnknownComponent; +import org.eclipse.papyrus.infra.properties.ui.ValueAttribute; +import org.eclipse.papyrus.infra.properties.ui.Widget; +import org.eclipse.papyrus.infra.properties.ui.WidgetAttribute; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * + * @generated + */ +public class UiPackageImpl extends EPackageImpl implements UiPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass elementEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass uiComponentEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass widgetEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass standardWidgetEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass propertyEditorEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass compositeWidgetEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass unknownComponentEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass layoutEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass widgetAttributeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass valueAttributeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass referenceAttributeEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p> + * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage#eNS_URI + * @see #init() + * @generated + */ + private UiPackageImpl() { + super(eNS_URI, UiFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p> + * This method is used to initialize {@link UiPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static UiPackage init() { + if (isInited) { + return (UiPackage) EPackage.Registry.INSTANCE.getEPackage(UiPackage.eNS_URI); + } + + // Obtain or create and register package + UiPackageImpl theUiPackage = (UiPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof UiPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new UiPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + ConstraintsPackage.eINSTANCE.eClass(); + EcorePackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + EnvironmentPackageImpl theEnvironmentPackage = (EnvironmentPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI) instanceof EnvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI) + : EnvironmentPackage.eINSTANCE); + ContextsPackageImpl theContextsPackage = (ContextsPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(ContextsPackage.eNS_URI) instanceof ContextsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ContextsPackage.eNS_URI) + : ContextsPackage.eINSTANCE); + + // Create package meta-data objects + theUiPackage.createPackageContents(); + theEnvironmentPackage.createPackageContents(); + theContextsPackage.createPackageContents(); + + // Initialize created meta-data + theUiPackage.initializePackageContents(); + theEnvironmentPackage.initializePackageContents(); + theContextsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theUiPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(UiPackage.eNS_URI, theUiPackage); + return theUiPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getElement() { + return elementEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getUIComponent() { + return uiComponentEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getUIComponent_Attributes() { + return (EReference) uiComponentEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getWidget() { + return widgetEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getStandardWidget() { + return standardWidgetEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getStandardWidget_WidgetType() { + return (EReference) standardWidgetEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getPropertyEditor() { + return propertyEditorEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getPropertyEditor_Property() { + return (EReference) propertyEditorEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getPropertyEditor_ReadOnly() { + return (EAttribute) propertyEditorEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getPropertyEditor_WidgetType() { + return (EReference) propertyEditorEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getPropertyEditor_UnresolvedProperty() { + return (EReference) propertyEditorEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getPropertyEditor_ContentProviderClass() { + return (EAttribute) propertyEditorEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getPropertyEditor_ShowLabel() { + return (EAttribute) propertyEditorEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getPropertyEditor_CustomLabel() { + return (EAttribute) propertyEditorEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getCompositeWidget() { + return compositeWidgetEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getCompositeWidget_Layout() { + return (EReference) compositeWidgetEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getCompositeWidget_Widgets() { + return (EReference) compositeWidgetEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getCompositeWidget_WidgetType() { + return (EReference) compositeWidgetEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getUnknownComponent() { + return unknownComponentEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getUnknownComponent_TypeName() { + return (EAttribute) unknownComponentEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getLayout() { + return layoutEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getLayout_LayoutType() { + return (EReference) layoutEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getWidgetAttribute() { + return widgetAttributeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getWidgetAttribute_Name() { + return (EAttribute) widgetAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getValueAttribute() { + return valueAttributeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getValueAttribute_Value() { + return (EAttribute) valueAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EClass getReferenceAttribute() { + return referenceAttributeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getReferenceAttribute_Value() { + return (EReference) referenceAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public UiFactory getUiFactory() { + return (UiFactory) getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void createPackageContents() { + if (isCreated) { + return; + } + isCreated = true; + + // Create classes and their features + elementEClass = createEClass(ELEMENT); + + uiComponentEClass = createEClass(UI_COMPONENT); + createEReference(uiComponentEClass, UI_COMPONENT__ATTRIBUTES); + + widgetEClass = createEClass(WIDGET); + + standardWidgetEClass = createEClass(STANDARD_WIDGET); + createEReference(standardWidgetEClass, STANDARD_WIDGET__WIDGET_TYPE); + + propertyEditorEClass = createEClass(PROPERTY_EDITOR); + createEReference(propertyEditorEClass, PROPERTY_EDITOR__PROPERTY); + createEAttribute(propertyEditorEClass, PROPERTY_EDITOR__READ_ONLY); + createEReference(propertyEditorEClass, PROPERTY_EDITOR__WIDGET_TYPE); + createEReference(propertyEditorEClass, PROPERTY_EDITOR__UNRESOLVED_PROPERTY); + createEAttribute(propertyEditorEClass, PROPERTY_EDITOR__CONTENT_PROVIDER_CLASS); + createEAttribute(propertyEditorEClass, PROPERTY_EDITOR__SHOW_LABEL); + createEAttribute(propertyEditorEClass, PROPERTY_EDITOR__CUSTOM_LABEL); + + compositeWidgetEClass = createEClass(COMPOSITE_WIDGET); + createEReference(compositeWidgetEClass, COMPOSITE_WIDGET__LAYOUT); + createEReference(compositeWidgetEClass, COMPOSITE_WIDGET__WIDGETS); + createEReference(compositeWidgetEClass, COMPOSITE_WIDGET__WIDGET_TYPE); + + unknownComponentEClass = createEClass(UNKNOWN_COMPONENT); + createEAttribute(unknownComponentEClass, UNKNOWN_COMPONENT__TYPE_NAME); + + layoutEClass = createEClass(LAYOUT); + createEReference(layoutEClass, LAYOUT__LAYOUT_TYPE); + + widgetAttributeEClass = createEClass(WIDGET_ATTRIBUTE); + createEAttribute(widgetAttributeEClass, WIDGET_ATTRIBUTE__NAME); + + valueAttributeEClass = createEClass(VALUE_ATTRIBUTE); + createEAttribute(valueAttributeEClass, VALUE_ATTRIBUTE__VALUE); + + referenceAttributeEClass = createEClass(REFERENCE_ATTRIBUTE); + createEReference(referenceAttributeEClass, REFERENCE_ATTRIBUTE__VALUE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) { + return; + } + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EnvironmentPackage theEnvironmentPackage = (EnvironmentPackage) EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI); + ContextsPackage theContextsPackage = (ContextsPackage) EPackage.Registry.INSTANCE.getEPackage(ContextsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + uiComponentEClass.getESuperTypes().add(this.getElement()); + widgetEClass.getESuperTypes().add(this.getUIComponent()); + standardWidgetEClass.getESuperTypes().add(this.getWidget()); + propertyEditorEClass.getESuperTypes().add(this.getWidget()); + compositeWidgetEClass.getESuperTypes().add(this.getWidget()); + unknownComponentEClass.getESuperTypes().add(this.getWidget()); + layoutEClass.getESuperTypes().add(this.getUIComponent()); + widgetAttributeEClass.getESuperTypes().add(this.getElement()); + valueAttributeEClass.getESuperTypes().add(this.getWidgetAttribute()); + referenceAttributeEClass.getESuperTypes().add(this.getWidgetAttribute()); + + // Initialize classes and features; add operations and parameters + initEClass(elementEClass, Element.class, "Element", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(uiComponentEClass, UIComponent.class, "UIComponent", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getUIComponent_Attributes(), this.getWidgetAttribute(), null, "attributes", null, 0, -1, UIComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(widgetEClass, Widget.class, "Widget", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(standardWidgetEClass, StandardWidget.class, "StandardWidget", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getStandardWidget_WidgetType(), theEnvironmentPackage.getStandardWidgetType(), null, "widgetType", null, 1, 1, StandardWidget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(propertyEditorEClass, PropertyEditor.class, "PropertyEditor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPropertyEditor_Property(), theContextsPackage.getProperty(), null, "property", null, 1, 1, PropertyEditor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getPropertyEditor_ReadOnly(), ecorePackage.getEBoolean(), "readOnly", "false", 1, 1, PropertyEditor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertyEditor_WidgetType(), theEnvironmentPackage.getPropertyEditorType(), null, "widgetType", null, 1, 1, PropertyEditor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertyEditor_UnresolvedProperty(), theContextsPackage.getUnknownProperty(), null, "unresolvedProperty", null, 0, 1, PropertyEditor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPropertyEditor_ContentProviderClass(), ecorePackage.getEString(), "contentProviderClass", null, 0, 1, PropertyEditor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPropertyEditor_ShowLabel(), ecorePackage.getEBoolean(), "showLabel", "true", 1, 1, PropertyEditor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPropertyEditor_CustomLabel(), ecorePackage.getEString(), "customLabel", null, 0, 1, PropertyEditor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(compositeWidgetEClass, CompositeWidget.class, "CompositeWidget", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCompositeWidget_Layout(), this.getLayout(), null, "layout", null, 1, 1, CompositeWidget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCompositeWidget_Widgets(), this.getWidget(), null, "widgets", null, 0, -1, CompositeWidget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCompositeWidget_WidgetType(), theEnvironmentPackage.getCompositeWidgetType(), null, "widgetType", null, 1, 1, CompositeWidget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(unknownComponentEClass, UnknownComponent.class, "UnknownComponent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getUnknownComponent_TypeName(), ecorePackage.getEString(), "typeName", null, 1, 1, UnknownComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(layoutEClass, Layout.class, "Layout", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getLayout_LayoutType(), theEnvironmentPackage.getLayoutType(), null, "layoutType", null, 1, 1, Layout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(widgetAttributeEClass, WidgetAttribute.class, "WidgetAttribute", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getWidgetAttribute_Name(), ecorePackage.getEString(), "name", null, 1, 1, WidgetAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(valueAttributeEClass, ValueAttribute.class, "ValueAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getValueAttribute_Value(), ecorePackage.getEString(), "value", null, 1, 1, ValueAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(referenceAttributeEClass, ReferenceAttribute.class, "ReferenceAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getReferenceAttribute_Value(), this.getUIComponent(), null, "value", null, 1, 1, ReferenceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} // UiPackageImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/UnknownComponentImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/UnknownComponentImpl.java new file mode 100644 index 00000000000..5e8bc78a5e4 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/UnknownComponentImpl.java @@ -0,0 +1,179 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; +import org.eclipse.papyrus.infra.properties.ui.UnknownComponent; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Unknown Component</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.UnknownComponentImpl#getTypeName <em>Type Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class UnknownComponentImpl extends WidgetImpl implements UnknownComponent { + /** + * The default value of the '{@link #getTypeName() <em>Type Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getTypeName() + * @generated + * @ordered + */ + protected static final String TYPE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeName() <em>Type Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getTypeName() + * @generated + * @ordered + */ + protected String typeName = TYPE_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected UnknownComponentImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UiPackage.Literals.UNKNOWN_COMPONENT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getTypeName() { + return typeName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setTypeName(String newTypeName) { + String oldTypeName = typeName; + typeName = newTypeName; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.UNKNOWN_COMPONENT__TYPE_NAME, oldTypeName, typeName)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UiPackage.UNKNOWN_COMPONENT__TYPE_NAME: + return getTypeName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UiPackage.UNKNOWN_COMPONENT__TYPE_NAME: + setTypeName((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UiPackage.UNKNOWN_COMPONENT__TYPE_NAME: + setTypeName(TYPE_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UiPackage.UNKNOWN_COMPONENT__TYPE_NAME: + return TYPE_NAME_EDEFAULT == null ? typeName != null : !TYPE_NAME_EDEFAULT.equals(typeName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (typeName: "); + result.append(typeName); + result.append(')'); + return result.toString(); + } + +} // UnknownComponentImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/ValueAttributeImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/ValueAttributeImpl.java new file mode 100644 index 00000000000..0bc9c9b0be2 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/ValueAttributeImpl.java @@ -0,0 +1,179 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; +import org.eclipse.papyrus.infra.properties.ui.ValueAttribute; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Value Attribute</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.ValueAttributeImpl#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ValueAttributeImpl extends WidgetAttributeImpl implements ValueAttribute { + /** + * The default value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected ValueAttributeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UiPackage.Literals.VALUE_ATTRIBUTE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.VALUE_ATTRIBUTE__VALUE, oldValue, value)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UiPackage.VALUE_ATTRIBUTE__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UiPackage.VALUE_ATTRIBUTE__VALUE: + setValue((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UiPackage.VALUE_ATTRIBUTE__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UiPackage.VALUE_ATTRIBUTE__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} // ValueAttributeImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/WidgetAttributeImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/WidgetAttributeImpl.java new file mode 100644 index 00000000000..a31c4962447 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/WidgetAttributeImpl.java @@ -0,0 +1,179 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; +import org.eclipse.papyrus.infra.properties.ui.WidgetAttribute; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Widget Attribute</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.infra.properties.ui.impl.WidgetAttributeImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class WidgetAttributeImpl extends ElementImpl implements WidgetAttribute { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected WidgetAttributeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UiPackage.Literals.WIDGET_ATTRIBUTE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, UiPackage.WIDGET_ATTRIBUTE__NAME, oldName, name)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UiPackage.WIDGET_ATTRIBUTE__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UiPackage.WIDGET_ATTRIBUTE__NAME: + setName((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UiPackage.WIDGET_ATTRIBUTE__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UiPackage.WIDGET_ATTRIBUTE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} // WidgetAttributeImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/WidgetImpl.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/WidgetImpl.java new file mode 100644 index 00000000000..631155e83b4 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/impl/WidgetImpl.java @@ -0,0 +1,44 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; +import org.eclipse.papyrus.infra.properties.ui.Widget; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Widget</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class WidgetImpl extends UIComponentImpl implements Widget { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected WidgetImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UiPackage.Literals.WIDGET; + } + +} // WidgetImpl diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/util/UiAdapterFactory.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/util/UiAdapterFactory.java new file mode 100644 index 00000000000..d41c1296b58 --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/util/UiAdapterFactory.java @@ -0,0 +1,342 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.infra.properties.ui.CompositeWidget; +import org.eclipse.papyrus.infra.properties.ui.Element; +import org.eclipse.papyrus.infra.properties.ui.Layout; +import org.eclipse.papyrus.infra.properties.ui.PropertyEditor; +import org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute; +import org.eclipse.papyrus.infra.properties.ui.StandardWidget; +import org.eclipse.papyrus.infra.properties.ui.UIComponent; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; +import org.eclipse.papyrus.infra.properties.ui.UnknownComponent; +import org.eclipse.papyrus.infra.properties.ui.ValueAttribute; +import org.eclipse.papyrus.infra.properties.ui.Widget; +import org.eclipse.papyrus.infra.properties.ui.WidgetAttribute; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage + * @generated + */ +public class UiAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected static UiPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public UiAdapterFactory() { + if (modelPackage == null) { + modelPackage = UiPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject) object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected UiSwitch<Adapter> modelSwitch = + new UiSwitch<Adapter>() { + @Override + public Adapter caseElement(Element object) { + return createElementAdapter(); + } + + @Override + public Adapter caseUIComponent(UIComponent object) { + return createUIComponentAdapter(); + } + + @Override + public Adapter caseWidget(Widget object) { + return createWidgetAdapter(); + } + + @Override + public Adapter caseStandardWidget(StandardWidget object) { + return createStandardWidgetAdapter(); + } + + @Override + public Adapter casePropertyEditor(PropertyEditor object) { + return createPropertyEditorAdapter(); + } + + @Override + public Adapter caseCompositeWidget(CompositeWidget object) { + return createCompositeWidgetAdapter(); + } + + @Override + public Adapter caseUnknownComponent(UnknownComponent object) { + return createUnknownComponentAdapter(); + } + + @Override + public Adapter caseLayout(Layout object) { + return createLayoutAdapter(); + } + + @Override + public Adapter caseWidgetAttribute(WidgetAttribute object) { + return createWidgetAttributeAdapter(); + } + + @Override + public Adapter caseValueAttribute(ValueAttribute object) { + return createValueAttributeAdapter(); + } + + @Override + public Adapter caseReferenceAttribute(ReferenceAttribute object) { + return createReferenceAttributeAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param target + * the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.ui.Element <em>Element</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.ui.Element + * @generated + */ + public Adapter createElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.ui.UIComponent <em>UI Component</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.ui.UIComponent + * @generated + */ + public Adapter createUIComponentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.ui.Widget <em>Widget</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.ui.Widget + * @generated + */ + public Adapter createWidgetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.ui.StandardWidget <em>Standard Widget</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.ui.StandardWidget + * @generated + */ + public Adapter createStandardWidgetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.ui.PropertyEditor <em>Property Editor</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.ui.PropertyEditor + * @generated + */ + public Adapter createPropertyEditorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.ui.CompositeWidget <em>Composite Widget</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.ui.CompositeWidget + * @generated + */ + public Adapter createCompositeWidgetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.ui.UnknownComponent <em>Unknown Component</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.ui.UnknownComponent + * @generated + */ + public Adapter createUnknownComponentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.ui.Layout <em>Layout</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.ui.Layout + * @generated + */ + public Adapter createLayoutAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.ui.WidgetAttribute <em>Widget Attribute</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.ui.WidgetAttribute + * @generated + */ + public Adapter createWidgetAttributeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.ui.ValueAttribute <em>Value Attribute</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.ui.ValueAttribute + * @generated + */ + public Adapter createValueAttributeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute <em>Reference Attribute</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute + * @generated + */ + public Adapter createReferenceAttributeAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} // UiAdapterFactory diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/util/UiSwitch.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/util/UiSwitch.java new file mode 100644 index 00000000000..a120dd34a7b --- /dev/null +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties/src-gen/org/eclipse/papyrus/infra/properties/ui/util/UiSwitch.java @@ -0,0 +1,450 @@ +/** + * <copyright> + * </copyright> + * + * $Id$ + */ +package org.eclipse.papyrus.infra.properties.ui.util; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.util.Switch; +import org.eclipse.papyrus.infra.properties.ui.CompositeWidget; +import org.eclipse.papyrus.infra.properties.ui.Element; +import org.eclipse.papyrus.infra.properties.ui.Layout; +import org.eclipse.papyrus.infra.properties.ui.PropertyEditor; +import org.eclipse.papyrus.infra.properties.ui.ReferenceAttribute; +import org.eclipse.papyrus.infra.properties.ui.StandardWidget; +import org.eclipse.papyrus.infra.properties.ui.UIComponent; +import org.eclipse.papyrus.infra.properties.ui.UiPackage; +import org.eclipse.papyrus.infra.properties.ui.UnknownComponent; +import org.eclipse.papyrus.infra.properties.ui.ValueAttribute; +import org.eclipse.papyrus.infra.properties.ui.Widget; +import org.eclipse.papyrus.infra.properties.ui.WidgetAttribute; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.infra.properties.ui.UiPackage + * @generated + */ +public class UiSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected static UiPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public UiSwitch() { + if (modelPackage == null) { + modelPackage = UiPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case UiPackage.ELEMENT: { + Element element = (Element) theEObject; + T result = caseElement(element); + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case UiPackage.UI_COMPONENT: { + UIComponent uiComponent = (UIComponent) theEObject; + T result = caseUIComponent(uiComponent); + if (result == null) { + result = caseElement(uiComponent); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case UiPackage.WIDGET: { + Widget widget = (Widget) theEObject; + T result = caseWidget(widget); + if (result == null) { + result = caseUIComponent(widget); + } + if (result == null) { + result = caseElement(widget); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case UiPackage.STANDARD_WIDGET: { + StandardWidget standardWidget = (StandardWidget) theEObject; + T result = caseStandardWidget(standardWidget); + if (result == null) { + result = caseWidget(standardWidget); + } + if (result == null) { + result = caseUIComponent(standardWidget); + } + if (result == null) { + result = caseElement(standardWidget); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case UiPackage.PROPERTY_EDITOR: { + PropertyEditor propertyEditor = (PropertyEditor) theEObject; + T result = casePropertyEditor(propertyEditor); + if (result == null) { + result = caseWidget(propertyEditor); + } + if (result == null) { + result = caseUIComponent(propertyEditor); + } + if (result == null) { + result = caseElement(propertyEditor); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case UiPackage.COMPOSITE_WIDGET: { + CompositeWidget compositeWidget = (CompositeWidget) theEObject; + T result = caseCompositeWidget(compositeWidget); + if (result == null) { + result = caseWidget(compositeWidget); + } + if (result == null) { + result = caseUIComponent(compositeWidget); + } + if (result == null) { + result = caseElement(compositeWidget); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case UiPackage.UNKNOWN_COMPONENT: { + UnknownComponent unknownComponent = (UnknownComponent) theEObject; + T result = caseUnknownComponent(unknownComponent); + if (result == null) { + result = caseWidget(unknownComponent); + } + if (result == null) { + result = caseUIComponent(unknownComponent); + } + if (result == null) { + result = caseElement(unknownComponent); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case UiPackage.LAYOUT: { + Layout layout = (Layout) theEObject; + T result = caseLayout(layout); + if (result == null) { + result = caseUIComponent(layout); + } + if (result == null) { + result = caseElement(layout); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case UiPackage.WIDGET_ATTRIBUTE: { + WidgetAttribute widgetAttribute = (WidgetAttribute) theEObject; + T result = caseWidgetAttribute(widgetAttribute); + if (result == null) { + result = caseElement(widgetAttribute); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case UiPackage.VALUE_ATTRIBUTE: { + ValueAttribute valueAttribute = (ValueAttribute) theEObject; + T result = caseValueAttribute(valueAttribute); + if (result == null) { + result = caseWidgetAttribute(valueAttribute); + } + if (result == null) { + result = caseElement(valueAttribute); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + case UiPackage.REFERENCE_ATTRIBUTE: { + ReferenceAttribute referenceAttribute = (ReferenceAttribute) theEObject; + T result = caseReferenceAttribute(referenceAttribute); + if (result == null) { + result = caseWidgetAttribute(referenceAttribute); + } + if (result == null) { + result = caseElement(referenceAttribute); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Element</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Element</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseElement(Element object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>UI Component</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>UI Component</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUIComponent(UIComponent object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Widget</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Widget</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseWidget(Widget object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Standard Widget</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Standard Widget</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStandardWidget(StandardWidget object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Property Editor</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Property Editor</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePropertyEditor(PropertyEditor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Composite Widget</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Composite Widget</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCompositeWidget(CompositeWidget object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Unknown Component</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Unknown Component</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUnknownComponent(UnknownComponent object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Layout</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Layout</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseLayout(Layout object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Widget Attribute</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Widget Attribute</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseWidgetAttribute(WidgetAttribute object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Value Attribute</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Value Attribute</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseValueAttribute(ValueAttribute object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Reference Attribute</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Reference Attribute</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseReferenceAttribute(ReferenceAttribute object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} // UiSwitch |