Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Noyrit2016-04-29 16:20:30 +0000
committerGerrit Code Review @ Eclipse.org2016-04-29 16:38:06 +0000
commitebb18cdd8a293fee283b45620c02dd3a354660a6 (patch)
treee36036f0803081f18cae644a809b2caa7aef56a2 /plugins/infra/emf
parentb3e4a1c4a4824ef82cc04d3a48e1a5763af25736 (diff)
downloadorg.eclipse.papyrus-ebb18cdd8a293fee283b45620c02dd3a354660a6.tar.gz
org.eclipse.papyrus-ebb18cdd8a293fee283b45620c02dd3a354660a6.tar.xz
org.eclipse.papyrus-ebb18cdd8a293fee283b45620c02dd3a354660a6.zip
[infra]Remove unmaintained/outdated plugins that are not part of the
build from the repository. Contributing to Bug 485220. Change-Id: Icd4780961a2e084f28303b64fa43684906c0b8ee
Diffstat (limited to 'plugins/infra/emf')
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/.classpath7
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/.project28
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/META-INF/MANIFEST.MF28
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/about.html28
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/build.properties8
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/icons/papyrus_model.pngbin618 -> 0 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/plugin.xml27
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/Activator.java90
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/CompoundCommandActionDelegate.java60
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoCopyAction.java51
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoCutAction.java53
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoDeleteAction.java79
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoDropAdapter.java68
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoPasteAction.java52
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/ValidationAction.java43
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/part/ActionBarContributor.java116
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/part/PapyrusEditor.java331
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/util/ActionUtil.java93
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/.classpath7
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/.project28
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/META-INF/MANIFEST.MF32
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/about.html28
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/build.properties7
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/icons/papyrus.pngbin602 -> 0 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/Activator.java69
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/ActionBarContributor.java170
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/EmbeddedEditor.java303
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/MoDiscoDropAdapter.java68
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/CompoundCommandActionDelegate.java60
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoCopyAction.java51
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoCutAction.java53
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoDeleteAction.java79
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoPasteAction.java52
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/ValidationAction.java35
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/providers/EditingDomainProviderAdapter.java49
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/util/ActionUtil.java97
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/.classpath8
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/.project28
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/META-INF/MANIFEST.MF17
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/OSGI-INF/l10n/bundle.properties3
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/about.html28
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/build.properties11
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/model/ParametricQuery.ecore20
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/model/ParametricQuery.genmodel24
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/plugin.properties4
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/plugin.xml20
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/Argument.java64
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/EStructuralFeatureArgument.java65
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/ParametricQuery.java81
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/ParametricqueryFactory.java78
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/ParametricqueryPackage.java552
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/StringArgument.java63
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ArgumentImpl.java188
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/EStructuralFeatureArgumentImpl.java182
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ParametricQueryImpl.java242
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ParametricqueryFactoryImpl.java140
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ParametricqueryPackageImpl.java331
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/StringArgumentImpl.java188
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/util/ParametricqueryAdapterFactory.java225
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/util/ParametricquerySwitch.java234
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src/org/eclipse/papyrus/infra/emf/facet/queries/Activator.java45
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src/org/eclipse/papyrus/infra/emf/facet/queries/factory/ParametricQueryFactory.java42
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src/org/eclipse/papyrus/infra/emf/facet/queries/parametric/FacetParametricQuery.java115
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/.classpath8
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/.project28
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/META-INF/MANIFEST.MF33
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/Model/NewChild.ecore89
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/Model/NewChild.genmodel81
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/Model/NewchildConfiguration.xmi23
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/about.html28
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/build.properties17
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/plugin.properties8
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/plugin.xml19
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/CustomFiller.java55
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/Menu.java84
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuAction.java56
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuContainer.java45
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuGroup.java117
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuItem.java56
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuPosition.java230
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuRoot.java74
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/NewchildConfiguration.java92
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/NewchildFactory.java110
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/NewchildPackage.java1039
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/Separator.java21
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/CustomFillerImpl.java177
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuActionImpl.java172
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuContainerImpl.java160
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuGroupImpl.java296
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuImpl.java334
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuItemImpl.java178
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuRootImpl.java396
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/NewchildConfigurationImpl.java278
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/NewchildFactoryImpl.java247
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/NewchildPackageImpl.java599
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/SeparatorImpl.java44
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/CreateIn.java230
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/CustomPolicy.java55
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/FilterPolicy.java21
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/Layout.java259
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NcpolicyFactory.java90
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NcpolicyPackage.java881
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NewChildPolicy.java92
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NewChildPolicySet.java74
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NewEMFChildMenu.java112
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/ReplacePolicy.java45
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/CustomPolicyImpl.java177
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/FilterPolicyImpl.java44
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NcpolicyFactoryImpl.java248
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NcpolicyPackageImpl.java498
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NewChildPolicyImpl.java258
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NewChildPolicySetImpl.java238
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NewEMFChildMenuImpl.java301
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/ReplacePolicyImpl.java160
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyAdapterFactory.java322
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyResourceFactoryImpl.java56
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyResourceImpl.java34
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicySwitch.java348
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyXMLProcessor.java54
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/util/NewchildAdapterFactory.java321
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/util/NewchildResourceFactoryImpl.java56
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/util/NewchildResourceImpl.java34
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/util/NewchildSwitch.java374
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/util/NewchildXMLProcessor.java54
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/Activator.java69
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/action/CreateChildAction.java73
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/AbstractCustomFillElement.java44
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/CustomFillElement.java29
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillElement.java22
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillMenu.java54
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillMenuAction.java47
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillMenuContainer.java37
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillMenuGroup.java77
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillMenuRoot.java38
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillNewChild.java264
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillSeparator.java34
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillerFactory.java78
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/MyCustomFiller.java30
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/policies/AbstractFillPolicy.java48
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/policies/FilterFillPolicy.java26
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/policies/NewChildFillPolicy.java62
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/policies/PolicyManager.java35
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/policies/PolicyMatcher.java78
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/policies/ReplaceFillPolicy.java37
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/runtime/DisabledContributionItem.java58
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/runtime/MenuConstraintEngine.java35
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/runtime/NewchildManager.java102
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/util/MenuHelper.java35
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src/org/eclipse/papyrus/infra/emf/newchild/util/Util.java38
153 files changed, 0 insertions, 17458 deletions
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/.classpath b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/.classpath
deleted file mode 100644
index 8a8f1668cdc..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/.project b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/.project
deleted file mode 100644
index 04943f396f8..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.infra.emf.editor</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index f287d53cf45..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/META-INF/MANIFEST.MF b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/META-INF/MANIFEST.MF
deleted file mode 100644
index a55697d79ce..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,28 +0,0 @@
-Manifest-Version: 1.0
-Export-Package: org.eclipse.papyrus.infra.emf.editor.part
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.emf.ecore;bundle-version="2.7.0",
- org.eclipse.emf.ecore.editor;bundle-version="2.7.0",
- org.eclipse.core.resources;bundle-version="3.7.100",
- org.eclipse.ui.views.properties.tabbed;bundle-version="3.5.200",
- org.eclipse.papyrus.views.properties;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.widgets;bundle-version="1.2.0",
- org.eclipse.emf.transaction;bundle-version="1.4.0",
- org.eclipse.papyrus.emf.facet.efacet.core;bundle-version="1.2.0",
- org.eclipse.papyrus.emf.facet.custom.core;bundle-version="1.2.0",
- org.eclipse.papyrus.emf.facet.custom.ui;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.emf;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.core;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.services.labelprovider;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.newchild;bundle-version="1.2.0"
-Bundle-Vendor: Eclipse Modeling Project
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 1.2.0.qualifier
-Eclipse-BuddyPolicy: dependent
-Bundle-Name: Papyrus EMF Editor
-Bundle-Activator: org.eclipse.papyrus.infra.emf.editor.Activator
-Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.infra.emf.editor;singleton:=true
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/about.html b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/about.html
deleted file mode 100644
index 82d49bf5f81..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2007</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/build.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/build.properties
deleted file mode 100644
index 1231c5219cc..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- about.html,\
- plugin.xml,\
- icons/
-src.includes = about.html
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/icons/papyrus_model.png b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/icons/papyrus_model.png
deleted file mode 100644
index 3386d218553..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/icons/papyrus_model.png
+++ /dev/null
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/plugin.xml b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/plugin.xml
deleted file mode 100644
index c8170edb38b..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/plugin.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension
- point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
- <propertyContributor
- contributorId="CustomizablePropertyView"
- labelProvider="org.eclipse.papyrus.views.properties.providers.SelectionLabelProvider"
- tabDescriptorProvider="org.eclipse.papyrus.views.properties.xwt.XWTTabDescriptorProvider">
- <propertyCategory
- category="org.eclipse.papyrus">
- </propertyCategory>
- </propertyContributor>
- </extension>
- <extension
- point="org.eclipse.ui.editors">
- <editor
- class="org.eclipse.papyrus.infra.emf.editor.part.PapyrusEditor"
- contributorClass="org.eclipse.papyrus.infra.emf.editor.part.ActionBarContributor"
- default="false"
- icon="icons/papyrus_model.png"
- id="org.eclipse.papyrus.emf.editor"
- name="Papyrus EMF Editor">
- </editor>
- </extension>
-
-</plugin>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/Activator.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/Activator.java
deleted file mode 100644
index 84139714a5c..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/Activator.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.eclipse.papyrus.infra.emf.editor;
-
-import org.eclipse.papyrus.infra.core.log.LogHelper;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class Activator extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.papyrus.infra.emf.editor"; //$NON-NLS-1$
-
- // The shared instance
- private static Activator plugin;
-
- // private CustomizationManager fCustomizationManager;
-
- public static LogHelper log;
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- log = new LogHelper(this);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
- // /**
- // *
- // * @return the customization manager in charge to adapt element in modisco
- // */
- // public CustomizationManager getCustomizationManager() {
- // return org.eclipse.papyrus.infra.emf.Activator.getDefault().getCustomizationManager();
- // // if(this.fCustomizationManager == null) {
- // // this.fCustomizationManager = new CustomizationManager();
- // // init(this.fCustomizationManager);
- // // }
- // // return this.fCustomizationManager;
- // }
-
- // private void init(final CustomizationManager customizationManager) {
- // customizationManager.setShowContainer(false);
- // customizationManager.setShowDerivedLinks(false);
- // customizationManager.setShowEmptyLinks(false);
- //
- // try {
- // List<MetamodelView> registryDefaultCustomizations = CustomizationsCatalog.getInstance().getRegistryDefaultCustomizations();
- // for(MetamodelView metamodelView : registryDefaultCustomizations) {
- // customizationManager.registerCustomization(metamodelView);
- // }
- //
- // customizationManager.loadCustomizations();
- // } catch (Throwable e) {
- // Activator.getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Error initializing customizations", e)); //$NON-NLS-1$
- // }
- // }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/CompoundCommandActionDelegate.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/CompoundCommandActionDelegate.java
deleted file mode 100644
index 1476cb717cf..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/CompoundCommandActionDelegate.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.editor.actions;
-
-import org.eclipse.emf.common.command.CompoundCommand;
-import org.eclipse.emf.edit.command.CommandActionDelegate;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * An EMF Compound Command with support for Images, Tooltip text and description
- * (From CommandActionDelegate)
- * The first sub-command should be a CommandActionDelegate
- *
- * @author Camille Letavernier
- */
-public class CompoundCommandActionDelegate extends CompoundCommand implements CommandActionDelegate {
-
- private Image image;
-
- /**
- * Sets the Image for this command
- *
- * @param image
- * The image to display on the command
- */
- public void setImage(Image image) {
- this.image = image;
- }
-
- public Object getImage() {
- if (image == null) {
- return ((CommandActionDelegate) getCommandList().get(0)).getImage();
- } else {
- return image;
- }
- }
-
- public String getText() {
- return ((CommandActionDelegate) getCommandList().get(0)).getText();
- }
-
- public String getToolTipText() {
- return ((CommandActionDelegate) getCommandList().get(0)).getToolTipText();
- }
-
- @Override
- public String getDescription() {
- return ((CommandActionDelegate) getCommandList().get(0)).getDescription();
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoCopyAction.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoCopyAction.java
deleted file mode 100644
index 12a08157613..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoCopyAction.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.CopyAction;
-import org.eclipse.papyrus.infra.emf.editor.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Copy" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class MoDiscoCopyAction extends CopyAction {
-
- /**
- * Constructor.
- */
- public MoDiscoCopyAction() {
- }
-
- /**
- * Constructor.
- *
- * @param domain
- * The Editing domain on which the action will be executed
- */
- public MoDiscoCopyAction(EditingDomain domain) {
- super(domain);
- }
-
- @Override
- public Command createCommand(Collection<?> selection) {
- Collection<?> newSelection = ActionUtil.getAdaptedSelection(selection);
- return super.createCommand(newSelection);
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoCutAction.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoCutAction.java
deleted file mode 100644
index 188072639c8..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoCutAction.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.CutAction;
-import org.eclipse.papyrus.infra.emf.editor.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Cut" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class MoDiscoCutAction extends CutAction {
-
- /**
- * Constructor.
- */
- public MoDiscoCutAction() {
- }
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * The Editing domain on which the command will be executed
- */
- public MoDiscoCutAction(EditingDomain domain) {
- super(domain);
- }
-
- @Override
- public Command createCommand(Collection<?> selection) {
- Collection<?> newSelection = ActionUtil.getAdaptedSelection(selection);
- return super.createCommand(newSelection);
- }
-
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoDeleteAction.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoDeleteAction.java
deleted file mode 100644
index 06aa83514fc..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoDeleteAction.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.DeleteAction;
-import org.eclipse.papyrus.infra.emf.editor.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Delete" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class MoDiscoDeleteAction extends DeleteAction {
-
- /**
- * Constructor.
- *
- * @param domain
- * The editing domain on which the action will be called
- * @param removeAllReferences
- * If true, all references to the deleted object will be removed.
- * This causes the whole resourceSet to be loaded, which may
- * lead to performance issues.
- */
- public MoDiscoDeleteAction(EditingDomain domain, boolean removeAllReferences) {
- super(domain, removeAllReferences);
- }
-
- /**
- * Constructor. All references to the deleted object will be removed.
- *
- * @param domain
- * The editing domain on which the action will be called
- */
- public MoDiscoDeleteAction(EditingDomain domain) {
- super(domain);
- }
-
- /**
- *
- * Constructor.
- *
- * @param removeAllReferences
- * If true, all references to the deleted object will be removed.
- * This causes the whole resourceSet to be loaded, which may
- * lead to performance issues.
- */
- public MoDiscoDeleteAction(boolean removeAllReferences) {
- super(removeAllReferences);
- }
-
- /**
- * Constructor. All references to the deleted object will be removed.
- */
- public MoDiscoDeleteAction() {
- super();
- }
-
- @Override
- public Command createCommand(Collection<?> selection) {
- Collection<?> newSelection = ActionUtil.getAdaptedSelection(selection);
- return super.createCommand(newSelection);
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoDropAdapter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoDropAdapter.java
deleted file mode 100644
index 1905587ca43..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoDropAdapter.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.papyrus.infra.emf.editor.util.ActionUtil;
-import org.eclipse.swt.widgets.Widget;
-
-/**
- * An adapter for Drag & Drop in the Context editor. The default Ecore drag & drop
- * is not compatible with the EMF Facet Tree Elements
- *
- * @author Camille Letavernier
- */
-public class MoDiscoDropAdapter extends EditingDomainViewerDropAdapter {
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * The Editing domain for this Drop Adapter
- * @param viewer
- * The Viewer for this Drop Adapter
- */
- public MoDiscoDropAdapter(EditingDomain domain, Viewer viewer) {
- super(domain, viewer);
- }
-
- @Override
- protected Collection<?> extractDragSource(Object object) {
- if (object instanceof ISelection) {
- return super.extractDragSource(ActionUtil.getAdaptedSelection((ISelection) object));
- } else {
- return super.extractDragSource(object);
- }
- }
-
- @Override
- protected Object extractDropTarget(Widget item) {
- Object dropTarget = super.extractDropTarget(item);
- if (dropTarget instanceof IAdaptable) {
- Object adapter = ((IAdaptable) dropTarget).getAdapter(EObject.class);
- if (adapter != null) {
- return adapter;
- }
- }
-
- return dropTarget;
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoPasteAction.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoPasteAction.java
deleted file mode 100644
index 4abe4b255fe..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/MoDiscoPasteAction.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.PasteAction;
-import org.eclipse.papyrus.infra.emf.editor.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Paste" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class MoDiscoPasteAction extends PasteAction {
-
- /**
- * Constructor.
- */
- public MoDiscoPasteAction() {
- }
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * The editing domain on which the command will be called
- */
- public MoDiscoPasteAction(EditingDomain domain) {
- super(domain);
- }
-
- @Override
- public Command createCommand(Collection<?> selection) {
- Collection<?> newSelection = ActionUtil.getAdaptedSelection(selection);
- return super.createCommand(newSelection);
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/ValidationAction.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/ValidationAction.java
deleted file mode 100644
index 9a7aa0cbc46..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/actions/ValidationAction.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.editor.actions;
-
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.ValidateAction;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.infra.emf.editor.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Validate" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class ValidationAction extends ValidateAction {
-
- public ValidationAction() {
- // Nothing
- }
-
- public ValidationAction(EditingDomain domain) {
- this.domain = domain;
- }
-
- public void setEditingDomain(EditingDomain domain) {
- this.domain = domain;
- }
-
- @Override
- public boolean updateSelection(IStructuredSelection selection) {
- return super.updateSelection((IStructuredSelection) ActionUtil.getAdaptedSelection(selection));
- }
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/part/ActionBarContributor.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/part/ActionBarContributor.java
deleted file mode 100644
index 45df42eb359..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/part/ActionBarContributor.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.editor.part;
-
-import java.util.Collection;
-import java.util.LinkedList;
-
-import org.eclipse.emf.ecore.presentation.EcoreActionBarContributor;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.CopyAction;
-import org.eclipse.emf.edit.ui.action.CutAction;
-import org.eclipse.emf.edit.ui.action.DeleteAction;
-import org.eclipse.emf.edit.ui.action.PasteAction;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.papyrus.infra.emf.editor.actions.MoDiscoCopyAction;
-import org.eclipse.papyrus.infra.emf.editor.actions.MoDiscoCutAction;
-import org.eclipse.papyrus.infra.emf.editor.actions.MoDiscoDeleteAction;
-import org.eclipse.papyrus.infra.emf.editor.actions.MoDiscoPasteAction;
-import org.eclipse.papyrus.infra.emf.editor.actions.ValidationAction;
-import org.eclipse.papyrus.infra.emf.editor.util.ActionUtil;
-import org.eclipse.papyrus.infra.newchild.CreationMenuRegistry;
-import org.eclipse.papyrus.infra.newchild.ui.DynamicNewChild;
-
-/**
- * The Action bar contributor for the Context Editor
- * Mainly serves as an Adapter for the Ecore actions, as the Ecore actions are
- * not natively compatible with the EMF Facet tree objects
- *
- * @author Camille Letavernier
- */
-public class ActionBarContributor extends EcoreActionBarContributor {
-
- DynamicNewChild contribution = new DynamicNewChild();
-
- /**
- *
- * Constructor.
- *
- */
- public ActionBarContributor() {
- super();
- validateAction = new ValidationAction();
- }
-
- protected CreationMenuRegistry creationMenuRegistry = new CreationMenuRegistry();
-
- public void setEditingDomain(EditingDomain domain) {
- if (validateAction instanceof ValidationAction) {
- ((ValidationAction) validateAction).setEditingDomain(domain);
- }
- }
-
- @Override
- protected void addGlobalActions(IMenuManager menuManager) {
- super.addGlobalActions(menuManager);
- }
-
- @Override
- public void menuAboutToShow(IMenuManager menuManager) {
- super.menuAboutToShow(menuManager);
-
- menuManager.insertBefore("edit", contribution);
- }
-
- @Override
- protected Collection<IAction> generateCreateChildActions(Collection<?> descriptors, ISelection selection) {
- return new LinkedList<IAction>();
- }
-
- @Override
- protected Collection<IAction> generateCreateSiblingActions(Collection<?> descriptors, ISelection selection) {
- return new LinkedList<IAction>();
- }
-
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- ISelection newSelection = ActionUtil.getAdaptedSelection(event.getSelection());
-
- SelectionChangedEvent newEvent = new SelectionChangedEvent(event.getSelectionProvider(), newSelection);
-
- super.selectionChanged(newEvent);
- }
-
- @Override
- protected DeleteAction createDeleteAction() {
- return new MoDiscoDeleteAction(removeAllReferencesOnDelete());
- }
-
- @Override
- protected CutAction createCutAction() {
- return new MoDiscoCutAction();
- }
-
- @Override
- protected CopyAction createCopyAction() {
- return new MoDiscoCopyAction();
- }
-
- @Override
- protected PasteAction createPasteAction() {
- return new MoDiscoPasteAction();
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/part/PapyrusEditor.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/part/PapyrusEditor.java
deleted file mode 100644
index f5247a3c285..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/part/PapyrusEditor.java
+++ /dev/null
@@ -1,331 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.editor.part;
-
-import java.util.EventObject;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.command.CommandStack;
-import org.eclipse.emf.common.command.CommandStackListener;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.presentation.EcoreEditor;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
-import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor;
-import org.eclipse.emf.edit.ui.dnd.LocalTransfer;
-import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.StructuredViewer;
-import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.papyrus.emf.facet.custom.core.ICustomizationManager;
-import org.eclipse.papyrus.emf.facet.custom.ui.ICustomizedContentProviderFactory;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.emf.editor.Activator;
-import org.eclipse.papyrus.infra.emf.editor.actions.MoDiscoDropAdapter;
-import org.eclipse.papyrus.infra.services.labelprovider.service.LabelProviderService;
-import org.eclipse.papyrus.infra.services.labelprovider.service.impl.LabelProviderServiceImpl;
-import org.eclipse.papyrus.infra.widgets.editors.AbstractEditor;
-import org.eclipse.papyrus.infra.widgets.editors.ICommitListener;
-import org.eclipse.papyrus.infra.widgets.editors.StringEditor;
-import org.eclipse.papyrus.infra.widgets.providers.PatternViewerFilter;
-import org.eclipse.papyrus.views.properties.widgets.layout.GridData;
-import org.eclipse.papyrus.views.properties.widgets.layout.PropertiesLayout;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.dnd.DND;
-import org.eclipse.swt.dnd.Transfer;
-import org.eclipse.swt.events.ControlAdapter;
-import org.eclipse.swt.events.ControlEvent;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.swt.widgets.Tree;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.views.properties.IPropertySheetPage;
-import org.eclipse.ui.views.properties.PropertySheetPage;
-import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor;
-import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
-
-/**
- * An extended EMF editor
- *
- * This generic editor provides the following features :
- *
- * - EMF Facet browser customization
- * - Papyrus customizable property view
- * - Papyrus customizable new child
- *
- * @author Camille Letavernier
- *
- */
-public class PapyrusEditor extends EcoreEditor implements ITabbedPropertySheetPageContributor, CommandStackListener {
-
- public static final String PROPERTY_VIEW_ID = "CustomizablePropertyView"; //$NON-NLS-1$
-
- /**
- * The Property sheet page for this editor
- */
- protected IPropertySheetPage iPropertySheetPage;
-
- @Override
- public void createPages() {
- // Creates the model from the editor input
- //
- createModel();
-
- getContainer().setBackground(new Color(getContainer().getDisplay(), 255, 255, 255));
- getContainer().setBackgroundMode(SWT.INHERIT_DEFAULT);
-
- Composite gParent = new Composite(getContainer(), SWT.NONE);
- gParent.setLayout(new FillLayout());
-
- // SashForm parent = new SashForm(gParent, SWT.VERTICAL | SWT.V_SCROLL | SWT.H_SCROLL);
- // parent.setLayout(new FillLayout());
-
- Composite parent = new Composite(gParent, SWT.NONE);
- parent.setLayout(new PropertiesLayout());
-
- // Only creates the other pages if there is something that can be edited
- //
- if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {
- // Create a page for the selection tree view.
- //
-
- final PatternViewerFilter filter = new PatternViewerFilter();
- filter.setShowIfHasVisibleParent(true);
-
- final StringEditor filterPattern = new StringEditor(parent, SWT.NONE, "Filter");
- filterPattern.addCommitListener(new ICommitListener() {
-
- @Override
- public void commit(AbstractEditor editor) {
- filter.setPattern((String) filterPattern.getValue());
- selectionViewer.refresh();
- }
-
- });
-
- Tree tree = new Tree(parent, getTreeStyle() | SWT.MULTI);
- tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- selectionViewer = new TreeViewer(tree);
- selectionViewer.setFilters(new ViewerFilter[] { filter });
- setCurrentViewer(selectionViewer);
-
- initializeCustomizationCatalogManager();
-
- IStructuredContentProvider contentProvider = createContentProvider();
-
- ILabelProvider labelProvider = createLabelProvider();
-
- editingDomain.getCommandStack().addCommandStackListener(this);
-
- selectionViewer.setContentProvider(contentProvider);
- selectionViewer.setLabelProvider(labelProvider);
-
- selectionViewer.setInput(getTreeViewerInput());
- // selectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
-
- new AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory);
-
- createContextMenuFor(selectionViewer);
- int pageIndex = addPage(gParent);
- setPageText(pageIndex, "Model"); //$NON-NLS-1$
-
- setActivePage(0);
-
- parent.layout();
- }
-
- // Ensures that this editor will only display the page's tab
- // area if there are more than one page
- //
- getContainer().addControlListener(new ControlAdapter() {
-
- boolean guard = false;
-
- @Override
- public void controlResized(ControlEvent event) {
- if (!guard) {
- guard = true;
- hideTabs();
- guard = false;
- }
- }
- });
-
- if (getActionBarContributor() instanceof ActionBarContributor) {
- ((ActionBarContributor) getActionBarContributor()).setEditingDomain(getEditingDomain());
- }
-
- updateProblemIndication();
- }
-
- @Override
- protected void handleChangedResources() {
- super.handleChangedResources();
- getViewer().setInput(getTreeViewerInput());
- }
-
- protected Object getTreeViewerInput() {
- List<EObject> roots = new LinkedList<EObject>();
- for (Resource resource : getResourceSet().getResources()) {
- for (EObject rootEObject : resource.getContents()) {
- roots.add(rootEObject);
- }
- }
- return roots;
- }
-
- protected int getTreeStyle() {
- return SWT.BORDER;
- }
-
- @Override
- protected void initializeEditingDomain() {
- ResourceSet resourceSet = new ResourceSetImpl();
-
- editingDomain = (TransactionalEditingDomainImpl) TransactionalEditingDomain.Factory.INSTANCE.createEditingDomain(resourceSet);
- editingDomain.setResourceToReadOnlyMap(new HashMap<Resource, Boolean>());
-
- // Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus.
- editingDomain.getCommandStack().addCommandStackListener(new CommandStackListener() {
-
- @Override
- public void commandStackChanged(final EventObject event) {
- getContainer().getDisplay().asyncExec(new Runnable() {
-
- @Override
- public void run() {
- firePropertyChange(IEditorPart.PROP_DIRTY);
-
- // Try to select the affected objects.
- //
- Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand();
- if (mostRecentCommand != null) {
- setSelectionToViewer(mostRecentCommand.getAffectedObjects());
- }
-
- Iterator<PropertySheetPage> propertySheetPagesIterator = propertySheetPages.iterator();
- while (propertySheetPagesIterator.hasNext()) {
- PropertySheetPage propertySheetPage = propertySheetPagesIterator.next();
- if (propertySheetPage.getControl().isDisposed()) {
- propertySheetPagesIterator.remove();
- } else {
- propertySheetPage.refresh();
- }
- }
- }
- });
- }
- });
-
- adapterFactory = (ComposedAdapterFactory) editingDomain.getAdapterFactory();
- }
-
- @Override
- protected void createContextMenuFor(StructuredViewer viewer) {
- MenuManager contextMenu = new MenuManager("#PopUp"); //$NON-NLS-1$
- contextMenu.add(new Separator("newChild")); //$NON-NLS-1$
- contextMenu.add(new Separator("additions")); //$NON-NLS-1$
- contextMenu.setRemoveAllWhenShown(true);
- contextMenu.addMenuListener(this);
- Menu menu = contextMenu.createContextMenu(viewer.getControl());
- viewer.getControl().setMenu(menu);
- System.out.println(menu.hashCode());
- System.out.println(contextMenu.hashCode());
-
- int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;
- Transfer[] transfers = new Transfer[] { LocalTransfer.getInstance() };
- viewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer));
- viewer.addDropSupport(dndOperations, transfers, new MoDiscoDropAdapter(editingDomain, viewer));
- }
-
- @Override
- public IPropertySheetPage getPropertySheetPage() {
- if (iPropertySheetPage == null) {
- iPropertySheetPage = new TabbedPropertySheetPage(this);
- }
- return iPropertySheetPage;
- }
-
- protected final ICustomizationManager getCustomizationManager() {
- if (customizationManager == null) {
- customizationManager = createCustomizationManager();
- }
- return customizationManager;
- }
-
- protected ICustomizationManager createCustomizationManager() {
- return org.eclipse.papyrus.infra.emf.Activator.getDefault().getCustomizationManager();
- }
-
- protected void initializeCustomizationCatalogManager() {
- // ICustomizationCatalogManager customCatalog = ICustomizationCatalogManagerFactory.DEFAULT.getOrCreateCustomizationCatalogManager(getResourceSet());
- // ICustomizationCatalogManager customCatalog = Activator.getDefault().getCustomizationManager();
- // List<Customization> allCustomizations = customCatalog.getRegisteredCustomizations();
- // for (Customization customization : allCustomizations) {
- // if (customization.isMustBeLoadedByDefault()) {
- // System.out.println("Apply default customization: " + customization.getName());
- // getCustomizationManager().getManagedCustomizations().add(customization);
- // }
- // }
- }
-
- protected IStructuredContentProvider createContentProvider() {
- return ICustomizedContentProviderFactory.DEFAULT.createCustomizedTreeContentProvider(getCustomizationManager());
- }
-
- protected ResourceSet getResourceSet() {
- return getEditingDomain().getResourceSet();
- }
-
- protected ILabelProvider createLabelProvider() {
- LabelProviderService labelService = new LabelProviderServiceImpl();
- try {
- labelService.startService();
- } catch (ServiceException ex) {
- Activator.log.error(ex);
- }
- return labelService.getLabelProvider();
- }
-
- @Override
- public void commandStackChanged(EventObject event) {
- getViewer().refresh();
- }
-
- @Override
- public void doSave(IProgressMonitor monitor) {
- super.doSave(monitor);
- }
-
- @Override
- public String getContributorId() {
- return PROPERTY_VIEW_ID;
- }
-
- private ICustomizationManager customizationManager;
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/util/ActionUtil.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/util/ActionUtil.java
deleted file mode 100644
index b8662fc5e07..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.editor/src/org/eclipse/papyrus/infra/emf/editor/util/ActionUtil.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.editor.util;
-
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
-
-/**
- * Utility class for Actions
- *
- * @author Camille Letavernier
- *
- */
-public class ActionUtil {
-
- /**
- * EMF can only handle collections of EObjects. However, as the
- * customization plugin relies a lot on EMF Facet, we often have to handle
- * objects that can be adapted to EObjects, but are not EObjects
- * themselves. This method adapts a collections of such objects to their
- * underlying EObjects, so that EMF can handle them.
- * Objects that cannot be adapted remain as-is in the collection.
- *
- * @param selection
- * The collection to adapt
- * @return
- * The adapted selection
- */
- public static Collection<Object> getAdaptedSelection(Collection<? extends Object> selection) {
- Collection<Object> newSelection = new LinkedList<Object>();
- for (Object o : selection) {
- EObject adaptedEObject = EMFHelper.getEObject(o);
- if (adaptedEObject != null) {
- newSelection.add(adaptedEObject);
- } else {
- newSelection.add(o);
- }
- }
- return newSelection;
- }
-
- /**
- * EMF can only handle ISelection containing EObjects. However, as the
- * customization plugin relies a lot on EMF Facet, we often have to handle
- * objects that can be adapted to EObjects, but are not EObjects
- * themselves. This method adapts a ISelection of such objects to their
- * underlying EObjects, so that EMF can handle them.
- * Objects that cannot be adapted remain as-is in the selection.
- *
- * @param sourceSelection
- * The selection to adapt
- * @return
- * The adapted selection
- */
- public static ISelection getAdaptedSelection(ISelection sourceSelection) {
- if (sourceSelection instanceof StructuredSelection) {
- StructuredSelection currentSelection = (StructuredSelection) sourceSelection;
- List<Object> newSelection = new LinkedList<Object>();
-
- Iterator<?> it = currentSelection.iterator();
- while (it.hasNext()) {
- Object object = it.next();
- EObject adaptedEObject = EMFHelper.getEObject(object);
- if (adaptedEObject != null) {
- newSelection.add(adaptedEObject);
- } else {
- newSelection.add(object);
- }
- }
-
- StructuredSelection selection = new StructuredSelection(newSelection);
- return selection;
- } else {
- return sourceSelection;
- }
- }
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/.classpath b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/.classpath
deleted file mode 100644
index 2d1a4302f04..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/.project b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/.project
deleted file mode 100644
index 6ff1a50ecb5..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.infra.emf.embeddededitor</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 74b2a7d94ca..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Thu Jul 07 09:57:26 CEST 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/META-INF/MANIFEST.MF b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/META-INF/MANIFEST.MF
deleted file mode 100644
index 9b5a24fd42a..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,32 +0,0 @@
-Manifest-Version: 1.0
-Export-Package: org.eclipse.papyrus.infra.emf.embeddededitor,
- org.eclipse.papyrus.infra.emf.embeddededitor.editor,
- org.eclipse.papyrus.infra.emf.embeddededitor.providers
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.core.resources;bundle-version="3.7.100",
- org.eclipse.emf;bundle-version="2.6.0",
- org.eclipse.emf.common;bundle-version="2.7.0",
- org.eclipse.emf.edit;bundle-version="2.7.0",
- org.eclipse.emf.ecore.editor;bundle-version="2.7.0",
- org.eclipse.ui.views.properties.tabbed;bundle-version="3.5.200",
- org.eclipse.papyrus.views.properties;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.widgets;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.newchild;bundle-version="1.2.0",
- org.eclipse.papyrus.views.properties.model;bundle-version="1.2.0",
- org.eclipse.emf.transaction;bundle-version="1.4.0",
- org.eclipse.papyrus.infra.emf;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.constraints;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.core;bundle-version="1.2.0",
- org.eclipse.papyrus.emf.facet.custom.core;bundle-version="1.2.0",
- org.eclipse.papyrus.emf.facet.custom.ui;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.services.labelprovider;bundle-version="1.2.0"
-Bundle-Vendor: Eclipse Modeling Project
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 1.2.0.qualifier
-Bundle-Name: EML Editor
-Bundle-Activator: org.eclipse.papyrus.infra.emf.embeddededitor.Activator
-Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.infra.emf.embeddededitor;singleton:=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/about.html b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/about.html
deleted file mode 100644
index 82d49bf5f81..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2007</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/build.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/build.properties
deleted file mode 100644
index 3afac859164..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/build.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- about.html,\
- icons/
-src.includes = about.html
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/icons/papyrus.png b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/icons/papyrus.png
deleted file mode 100644
index 0f74e27b483..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/icons/papyrus.png
+++ /dev/null
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/Activator.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/Activator.java
deleted file mode 100644
index 5325e2936f3..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/Activator.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.embeddededitor;
-
-import org.eclipse.papyrus.infra.core.log.LogHelper;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class Activator extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.papyrus.infra.emf.embeddededitor"; //$NON-NLS-1$
-
- // The shared instance
- private static Activator plugin;
-
- public static LogHelper log;
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- log = new LogHelper(this);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/ActionBarContributor.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/ActionBarContributor.java
deleted file mode 100644
index 3007f3a8786..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/ActionBarContributor.java
+++ /dev/null
@@ -1,170 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.embeddededitor.editor;
-
-import org.eclipse.emf.ecore.presentation.EcoreActionBarContributor;
-import org.eclipse.emf.ecore.presentation.EcoreEditorPlugin;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.CopyAction;
-import org.eclipse.emf.edit.ui.action.CutAction;
-import org.eclipse.emf.edit.ui.action.DeleteAction;
-import org.eclipse.emf.edit.ui.action.PasteAction;
-import org.eclipse.emf.edit.ui.action.RedoAction;
-import org.eclipse.emf.edit.ui.action.UndoAction;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.ActionContributionItem;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.papyrus.infra.emf.embeddededitor.editor.actions.MoDiscoCopyAction;
-import org.eclipse.papyrus.infra.emf.embeddededitor.editor.actions.MoDiscoCutAction;
-import org.eclipse.papyrus.infra.emf.embeddededitor.editor.actions.MoDiscoDeleteAction;
-import org.eclipse.papyrus.infra.emf.embeddededitor.editor.actions.MoDiscoPasteAction;
-import org.eclipse.papyrus.infra.emf.embeddededitor.editor.actions.ValidationAction;
-import org.eclipse.papyrus.infra.newchild.ui.DynamicNewChild;
-import org.eclipse.ui.ISharedImages;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * The Action bar contributor for the Context Editor
- * Mainly serves as an Adapter for the Ecore actions, as the Ecore actions are
- * not natively compatible with the EMF Facet tree objects
- *
- * @author Camille Letavernier
- */
-
-// TODO : Remove the EcoreActionBarContributor extension
-public class ActionBarContributor extends EcoreActionBarContributor {
-
- protected IStructuredSelection lastSelection;
-
- protected EditingDomain domain;
-
- DynamicNewChild contribution = new DynamicNewChild();
-
- public void init(EditingDomain domain, final TreeViewer viewer) {
- ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
-
- deleteAction = createDeleteAction(domain);
- deleteAction.setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
-
- cutAction = createCutAction(domain);
- cutAction.setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_CUT));
-
- copyAction = createCopyAction(domain);
- copyAction.setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
-
- pasteAction = createPasteAction(domain);
- pasteAction.setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE));
-
- undoAction = createUndoAction(domain);
- undoAction.setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_UNDO));
-
- redoAction = createRedoAction(domain);
- redoAction.setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_REDO));
-
- validateAction = new ValidationAction(domain);
-
- refreshViewerAction = new Action(EcoreEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) {
-
- @Override
- public void run() {
- viewer.refresh();
- }
- };
-
- this.domain = domain;
-
- viewer.addSelectionChangedListener(this);
- }
-
- /**
- *
- * Constructor.
- *
- */
- public ActionBarContributor() {
- super();
- }
-
- @Override
- public void menuAboutToShow(IMenuManager menuManager) {
- update();
- super.menuAboutToShow(menuManager);
-
- //menuManager.insertBefore("edit", new Separator(NewchildManager.TOP)); //$NON-NLS-1$
- menuManager.insertBefore("edit", contribution);
- // NewchildManager.instance.fillMenu(menuManager, lastSelection);
- }
-
- @Override
- public void update() {
- undoAction.update();
- redoAction.update();
- deleteAction.setEnabled(deleteAction.updateSelection(lastSelection));
- cutAction.setEnabled(cutAction.updateSelection(lastSelection));
- copyAction.setEnabled(copyAction.updateSelection(lastSelection));
- pasteAction.setEnabled(pasteAction.updateSelection(lastSelection));
- validateAction.setEnabled(validateAction.updateSelection(lastSelection));
- }
-
- protected DeleteAction createDeleteAction(EditingDomain domain) {
- return new MoDiscoDeleteAction(domain, removeAllReferencesOnDelete());
- }
-
- @Override
- protected boolean removeAllReferencesOnDelete() {
- return true;
- }
-
- protected CutAction createCutAction(EditingDomain domain) {
- return new MoDiscoCutAction(domain);
- }
-
- protected CopyAction createCopyAction(EditingDomain domain) {
- return new MoDiscoCopyAction(domain);
- }
-
- protected PasteAction createPasteAction(EditingDomain domain) {
- return new MoDiscoPasteAction(domain);
- }
-
- protected UndoAction createUndoAction(EditingDomain domain) {
- return new UndoAction(domain);
- }
-
- protected RedoAction createRedoAction(EditingDomain domain) {
- return new RedoAction(domain);
- }
-
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- if (event.getSelection() instanceof IStructuredSelection) {
- lastSelection = (IStructuredSelection) event.getSelection();
- }
- }
-
- @Override
- protected void addGlobalActions(IMenuManager menuManager) {
- menuManager.insertAfter("additions-end", new Separator("ui-actions"));
- refreshViewerAction.setEnabled(refreshViewerAction.isEnabled());
- menuManager.insertAfter("ui-actions", refreshViewerAction);
-
- String key = (style & ADDITIONS_LAST_STYLE) == 0 ? "additions-end" : "additions";
- if (validateAction != null) {
- menuManager.insertBefore(key, new ActionContributionItem(validateAction));
- }
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/EmbeddedEditor.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/EmbeddedEditor.java
deleted file mode 100644
index ba1aaab3f44..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/EmbeddedEditor.java
+++ /dev/null
@@ -1,303 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.embeddededitor.editor;
-
-import java.io.IOException;
-import java.util.Collections;
-import java.util.EventObject;
-import java.util.HashMap;
-
-import org.eclipse.emf.common.command.BasicCommandStack;
-import org.eclipse.emf.common.command.CommandStack;
-import org.eclipse.emf.common.command.CommandStackListener;
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.provider.EcoreItemProviderAdapterFactory;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.domain.IEditingDomainProvider;
-import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
-import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory;
-import org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory;
-import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor;
-import org.eclipse.emf.edit.ui.dnd.LocalTransfer;
-import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter;
-import org.eclipse.jface.action.IMenuListener;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.StructuredViewer;
-import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.papyrus.emf.facet.custom.core.ICustomizationManager;
-import org.eclipse.papyrus.emf.facet.custom.ui.ICustomizedContentProviderFactory;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.emf.embeddededitor.Activator;
-import org.eclipse.papyrus.infra.emf.embeddededitor.providers.EditingDomainProviderAdapter;
-import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
-import org.eclipse.papyrus.infra.services.labelprovider.service.LabelProviderService;
-import org.eclipse.papyrus.infra.services.labelprovider.service.impl.LabelProviderServiceImpl;
-import org.eclipse.papyrus.infra.widgets.editors.AbstractEditor;
-import org.eclipse.papyrus.infra.widgets.editors.ICommitListener;
-import org.eclipse.papyrus.infra.widgets.editors.StringEditor;
-import org.eclipse.papyrus.infra.widgets.providers.PatternViewerFilter;
-import org.eclipse.papyrus.views.properties.widgets.layout.GridData;
-import org.eclipse.papyrus.views.properties.widgets.layout.PropertiesLayout;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.dnd.DND;
-import org.eclipse.swt.dnd.Transfer;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.swt.widgets.Tree;
-
-/**
- * @author Camille Letavernier
- */
-public class EmbeddedEditor implements CommandStackListener, IMenuListener {
-
- protected TreeViewer treeViewer;
-
- protected ILabelProvider labelProvider;
-
- protected IStructuredContentProvider contentProvider;
-
- protected ICustomizationManager customizationManager;
-
- protected Composite container;
-
- protected Composite parent;
-
- protected ResourceSet resourceSet;
-
- protected EditingDomain editingDomain;
-
- protected AdapterFactory adapterFactory;
-
- protected ActionBarContributor actionBarContributor;
-
- protected Adapter editingDomainAdapter;
-
- public EmbeddedEditor(ResourceSet resourceSet) {
- if (resourceSet == null) {
- throw new IllegalArgumentException("The resourceSet shall not be null"); //$NON-NLS-1$
- }
-
- CommandStack commandStack = new BasicCommandStack();
- AdapterFactory adapterFactory = createAdapterFactory();
- editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, resourceSet);
- AdapterFactoryEditingDomain editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, resourceSet);
- editingDomain.setResourceToReadOnlyMap(new HashMap<Resource, Boolean>());
-
- configure(resourceSet, adapterFactory, editingDomain);
- }
-
- public EmbeddedEditor(ResourceSet resourceSet, AdapterFactory adapterFactory, EditingDomain editingDomain) {
- configure(resourceSet, adapterFactory, editingDomain);
- }
-
- protected void configure(ResourceSet resourceSet, AdapterFactory adapterFactory, EditingDomain editingDomain) {
- this.resourceSet = resourceSet;
- this.adapterFactory = adapterFactory;
- this.editingDomain = editingDomain;
- editingDomainAdapter = new EditingDomainProviderAdapter(editingDomain);
- resourceSet.eAdapters().add(editingDomainAdapter);
- }
-
- protected AdapterFactory createAdapterFactory() {
- ComposedAdapterFactory adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE);
-
- adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory());
- adapterFactory.addAdapterFactory(new EcoreItemProviderAdapterFactory());
- adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());
-
- return adapterFactory;
- }
-
- public void createWidget(Composite parent) {
-
- this.parent = parent;
-
- container = new Composite(parent, SWT.NONE);
- container.setLayout(new PropertiesLayout());
-
- container.setBackground(new Color(parent.getDisplay(), 255, 255, 255));
- container.setBackgroundMode(SWT.INHERIT_DEFAULT);
-
- if (!resourceSet.getResources().isEmpty()) {
- final PatternViewerFilter filter = new PatternViewerFilter();
-
- final StringEditor filterPattern = new StringEditor(container, SWT.NONE, "Filter");
- filterPattern.addCommitListener(new ICommitListener() {
-
- public void commit(AbstractEditor editor) {
- filter.setPattern((String) filterPattern.getValue());
- treeViewer.refresh();
- }
-
- });
-
- Tree tree = new Tree(container, SWT.NONE | SWT.MULTI);
- tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- treeViewer = new TreeViewer(tree);
- treeViewer.setFilters(new ViewerFilter[] { filter });
- IStructuredContentProvider contentProvider = getContentProvider();
-
- ILabelProvider labelProvider = getLabelProvider();
-
- editingDomain.getCommandStack().addCommandStackListener(this);
-
- treeViewer.setContentProvider(contentProvider);
- treeViewer.setLabelProvider(labelProvider);
-
- treeViewer.setInput(resourceSet);
-
- actionBarContributor = new ActionBarContributor();
- actionBarContributor.init(editingDomain, treeViewer);
-
- treeViewer.setSelection(new StructuredSelection(resourceSet.getResources().get(0)), true);
-
- new AdapterFactoryTreeEditor(treeViewer.getTree(), adapterFactory);
-
- createContextMenuFor(treeViewer);
-
- parent.layout();
- }
-
- updateProblemIndication();
- }
-
- private void updateProblemIndication() {
- // TODO
- }
-
- public IStructuredContentProvider getContentProvider() {
- if (contentProvider == null) {
- contentProvider = createContentProvider();
- }
- return contentProvider;
- }
-
- protected IStructuredContentProvider createContentProvider() {
- return ICustomizedContentProviderFactory.DEFAULT.createCustomizedTreeContentProvider(getCustomizationManager());
- }
-
- public ICustomizationManager getCustomizationManager() {
- if (customizationManager == null) {
- customizationManager = createCustomizationManager();
- }
- return customizationManager;
- }
-
- protected ICustomizationManager createCustomizationManager() {
- return org.eclipse.papyrus.infra.emf.Activator.getDefault().getCustomizationManager();
- }
-
- public ILabelProvider getLabelProvider() {
- if (labelProvider == null) {
- labelProvider = createLabelProvider();
- }
- return labelProvider;
- }
-
- protected ILabelProvider createLabelProvider() {
- LabelProviderService labelService = new LabelProviderServiceImpl();
- try {
- labelService.startService();
- } catch (ServiceException ex) {
- Activator.log.error(ex);
- }
- return labelService.getLabelProvider();
- }
-
- protected void createContextMenuFor(StructuredViewer viewer) {
- MenuManager contextMenu = new MenuManager("#PopUp"); //$NON-NLS-1$
- contextMenu.add(new Separator("additions")); //$NON-NLS-1$
- contextMenu.setRemoveAllWhenShown(true);
- contextMenu.addMenuListener(this);
- Menu menu = contextMenu.createContextMenu(viewer.getControl());
- viewer.getControl().setMenu(menu);
-
- int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;
- Transfer[] transfers = new Transfer[] { LocalTransfer.getInstance() };
- viewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer));
- viewer.addDropSupport(dndOperations, transfers, new MoDiscoDropAdapter(editingDomain, viewer));
- }
-
- public void dispose() {
- resourceSet.eAdapters().remove(editingDomainAdapter);
- }
-
- public void save() {
- if (!((BasicCommandStack) editingDomain.getCommandStack()).isSaveNeeded()) {
- return;
- }
-
- IEditingDomainProvider domainProvider = (IEditingDomainProvider) EcoreUtil.getAdapter(resourceSet.eAdapters(), IEditingDomainProvider.class);
- if (domainProvider == null) {
- return;
- }
-
- EditingDomain domain = domainProvider.getEditingDomain();
- if (domain == null) {
- return;
- }
-
- for (Resource resource : resourceSet.getResources()) {
- try {
- if (!EMFHelper.isReadOnly(resource, domain)) {
- resource.save(Collections.EMPTY_MAP);
- }
- } catch (IOException ex) {
- Activator.log.error(ex);
- }
- }
-
- ((BasicCommandStack) editingDomain.getCommandStack()).saveIsDone();
- }
-
- public boolean isSaveNeeded() {
- return ((BasicCommandStack) editingDomain.getCommandStack()).isSaveNeeded();
- }
-
- public void saveAs(URI saveAsURI) {
- // TODO
- }
-
- public void commandStackChanged(EventObject event) {
- treeViewer.refresh();
- }
-
- public void menuAboutToShow(IMenuManager menuManager) {
- actionBarContributor.menuAboutToShow(menuManager);
- }
-
- public TreeViewer getViewer() {
- return treeViewer;
- }
-
- public void addCommandStackListener(CommandStackListener listener) {
- editingDomain.getCommandStack().addCommandStackListener(listener);
- }
-
- public EditingDomain getEditingDomain() {
- return editingDomain;
- }
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/MoDiscoDropAdapter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/MoDiscoDropAdapter.java
deleted file mode 100644
index 46533058a8b..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/MoDiscoDropAdapter.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.embeddededitor.editor;
-
-import java.util.Collection;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.papyrus.infra.emf.embeddededitor.util.ActionUtil;
-import org.eclipse.swt.widgets.Widget;
-
-/**
- * An adapter for Drag & Drop in the Context editor. The default Ecore drag & drop
- * is not compatible with the EMF Facet Tree Elements
- *
- * @author Camille Letavernier
- */
-public class MoDiscoDropAdapter extends EditingDomainViewerDropAdapter {
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * The Editing domain for this Drop Adapter
- * @param viewer
- * The Viewer for this Drop Adapter
- */
- public MoDiscoDropAdapter(EditingDomain domain, Viewer viewer) {
- super(domain, viewer);
- }
-
- @Override
- protected Collection<?> extractDragSource(Object object) {
- if (object instanceof ISelection) {
- return super.extractDragSource(ActionUtil.getAdaptedSelection((ISelection) object));
- } else {
- return super.extractDragSource(object);
- }
- }
-
- @Override
- protected Object extractDropTarget(Widget item) {
- Object dropTarget = super.extractDropTarget(item);
- if (dropTarget instanceof IAdaptable) {
- Object adapter = ((IAdaptable) dropTarget).getAdapter(EObject.class);
- if (adapter != null) {
- return adapter;
- }
- }
-
- return dropTarget;
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/CompoundCommandActionDelegate.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/CompoundCommandActionDelegate.java
deleted file mode 100644
index c7335459291..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/CompoundCommandActionDelegate.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.embeddededitor.editor.actions;
-
-import org.eclipse.emf.common.command.CompoundCommand;
-import org.eclipse.emf.edit.command.CommandActionDelegate;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * An EMF Compound Command with support for Images, Tooltip text and description
- * (From CommandActionDelegate)
- * The first sub-command should be a CommandActionDelegate
- *
- * @author Camille Letavernier
- */
-public class CompoundCommandActionDelegate extends CompoundCommand implements CommandActionDelegate {
-
- private Image image;
-
- /**
- * Sets the Image for this command
- *
- * @param image
- * The image to display on the command
- */
- public void setImage(Image image) {
- this.image = image;
- }
-
- public Object getImage() {
- if (image == null) {
- return ((CommandActionDelegate) getCommandList().get(0)).getImage();
- } else {
- return image;
- }
- }
-
- public String getText() {
- return ((CommandActionDelegate) getCommandList().get(0)).getText();
- }
-
- public String getToolTipText() {
- return ((CommandActionDelegate) getCommandList().get(0)).getToolTipText();
- }
-
- @Override
- public String getDescription() {
- return ((CommandActionDelegate) getCommandList().get(0)).getDescription();
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoCopyAction.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoCopyAction.java
deleted file mode 100644
index 4be38371947..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoCopyAction.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.embeddededitor.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.CopyAction;
-import org.eclipse.papyrus.infra.emf.embeddededitor.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Copy" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class MoDiscoCopyAction extends CopyAction {
-
- /**
- * Constructor.
- */
- public MoDiscoCopyAction() {
- }
-
- /**
- * Constructor.
- *
- * @param domain
- * The Editing domain on which the action will be executed
- */
- public MoDiscoCopyAction(EditingDomain domain) {
- super(domain);
- }
-
- @Override
- public Command createCommand(Collection<?> selection) {
- Collection<?> newSelection = ActionUtil.getAdaptedSelection(selection);
- return super.createCommand(newSelection);
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoCutAction.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoCutAction.java
deleted file mode 100644
index 705746cd2e3..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoCutAction.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.embeddededitor.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.CutAction;
-import org.eclipse.papyrus.infra.emf.embeddededitor.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Cut" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class MoDiscoCutAction extends CutAction {
-
- /**
- * Constructor.
- */
- public MoDiscoCutAction() {
- }
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * The Editing domain on which the command will be executed
- */
- public MoDiscoCutAction(EditingDomain domain) {
- super(domain);
- }
-
- @Override
- public Command createCommand(Collection<?> selection) {
- Collection<?> newSelection = ActionUtil.getAdaptedSelection(selection);
- return super.createCommand(newSelection);
- }
-
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoDeleteAction.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoDeleteAction.java
deleted file mode 100644
index 8af245d20cf..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoDeleteAction.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.embeddededitor.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.DeleteAction;
-import org.eclipse.papyrus.infra.emf.embeddededitor.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Delete" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class MoDiscoDeleteAction extends DeleteAction {
-
- /**
- * Constructor.
- *
- * @param domain
- * The editing domain on which the action will be called
- * @param removeAllReferences
- * If true, all references to the deleted object will be removed.
- * This causes the whole resourceSet to be loaded, which may
- * lead to performance issues.
- */
- public MoDiscoDeleteAction(EditingDomain domain, boolean removeAllReferences) {
- super(domain, removeAllReferences);
- }
-
- /**
- * Constructor. All references to the deleted object will be removed.
- *
- * @param domain
- * The editing domain on which the action will be called
- */
- public MoDiscoDeleteAction(EditingDomain domain) {
- super(domain);
- }
-
- /**
- *
- * Constructor.
- *
- * @param removeAllReferences
- * If true, all references to the deleted object will be removed.
- * This causes the whole resourceSet to be loaded, which may
- * lead to performance issues.
- */
- public MoDiscoDeleteAction(boolean removeAllReferences) {
- super(removeAllReferences);
- }
-
- /**
- * Constructor. All references to the deleted object will be removed.
- */
- public MoDiscoDeleteAction() {
- super();
- }
-
- @Override
- public Command createCommand(Collection<?> selection) {
- Collection<?> newSelection = ActionUtil.getAdaptedSelection(selection);
- return super.createCommand(newSelection);
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoPasteAction.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoPasteAction.java
deleted file mode 100644
index 69ab344b53d..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/MoDiscoPasteAction.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.embeddededitor.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.PasteAction;
-import org.eclipse.papyrus.infra.emf.embeddededitor.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Paste" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class MoDiscoPasteAction extends PasteAction {
-
- /**
- * Constructor.
- */
- public MoDiscoPasteAction() {
- }
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * The editing domain on which the command will be called
- */
- public MoDiscoPasteAction(EditingDomain domain) {
- super(domain);
- }
-
- @Override
- public Command createCommand(Collection<?> selection) {
- Collection<?> newSelection = ActionUtil.getAdaptedSelection(selection);
- return super.createCommand(newSelection);
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/ValidationAction.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/ValidationAction.java
deleted file mode 100644
index 396167e5848..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/editor/actions/ValidationAction.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.embeddededitor.editor.actions;
-
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.ValidateAction;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.infra.emf.embeddededitor.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Validate" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class ValidationAction extends ValidateAction {
-
- public ValidationAction(EditingDomain domain) {
- this.domain = domain;
- }
-
- @Override
- public boolean updateSelection(IStructuredSelection selection) {
- return super.updateSelection((IStructuredSelection) ActionUtil.getAdaptedSelection(selection));
- }
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/providers/EditingDomainProviderAdapter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/providers/EditingDomainProviderAdapter.java
deleted file mode 100644
index 298581d794a..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/providers/EditingDomainProviderAdapter.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.embeddededitor.providers;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.domain.IEditingDomainProvider;
-
-
-public class EditingDomainProviderAdapter implements IEditingDomainProvider, Adapter {
-
- private EditingDomain domain;
-
- public EditingDomainProviderAdapter(EditingDomain domain) {
- this.domain = domain;
- }
-
- public void notifyChanged(Notification notification) {
- // Nothing
- }
-
- public Notifier getTarget() {
- return null; // Nothing
- }
-
- public void setTarget(Notifier newTarget) {
- // Nothing
- }
-
- public boolean isAdapterForType(Object type) {
- return type == IEditingDomainProvider.class;
- }
-
- public EditingDomain getEditingDomain() {
- return domain;
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/util/ActionUtil.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/util/ActionUtil.java
deleted file mode 100644
index c0f1a3f5e4c..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.embeddededitor/src/org/eclipse/papyrus/infra/emf/embeddededitor/util/ActionUtil.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.embeddededitor.util;
-
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-
-/**
- * Utility class for Actions
- *
- * @author Camille Letavernier
- *
- */
-public class ActionUtil {
-
- /**
- * EMF can only handle collections of EObjects. However, as the
- * customization plugin relies a lot on EMF Facet, we often have to handle
- * objects that can be adapted to EObjects, but are not EObjects
- * themselves. This method adapts a collections of such objects to their
- * underlying EObjects, so that EMF can handle them.
- * Objects that cannot be adapted remain as-is in the collection.
- *
- * @param selection
- * The collection to adapt
- * @return
- * The adapted selection
- */
- public static Collection<Object> getAdaptedSelection(Collection<? extends Object> selection) {
- Collection<Object> newSelection = new LinkedList<Object>();
- for (Object o : selection) {
- if (o instanceof IAdaptable) {
- EObject eObject = (EObject) ((IAdaptable) o).getAdapter(EObject.class);
- newSelection.add(eObject);
- } else {
- newSelection.add(o);
- }
- }
- return newSelection;
- }
-
- /**
- * EMF can only handle ISelection containing EObjects. However, as the
- * customization plugin relies a lot on EMF Facet, we often have to handle
- * objects that can be adapted to EObjects, but are not EObjects
- * themselves. This method adapts a ISelection of such objects to their
- * underlying EObjects, so that EMF can handle them.
- * Objects that cannot be adapted remain as-is in the selection.
- *
- * @param sourceSelection
- * The selection to adapt
- * @return
- * The adapted selection
- */
- public static ISelection getAdaptedSelection(ISelection sourceSelection) {
- if (sourceSelection instanceof StructuredSelection) {
- StructuredSelection currentSelection = (StructuredSelection) sourceSelection;
- List<Object> newSelection = new LinkedList<Object>();
-
- Iterator<?> it = currentSelection.iterator();
- while (it.hasNext()) {
- Object object = it.next();
- if (object instanceof IAdaptable) {
- EObject eObject = (EObject) ((IAdaptable) object).getAdapter(EObject.class);
- if (eObject != null) {
- newSelection.add(eObject);
- } else {
- newSelection.add(object);
- }
- } else {
- newSelection.add(object);
- }
- }
-
- StructuredSelection selection = new StructuredSelection(newSelection);
- return selection;
- } else {
- return sourceSelection;
- }
- }
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/.classpath b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/.classpath
deleted file mode 100644
index 9c0318f0fd2..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/.classpath
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src-gen"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/.project b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/.project
deleted file mode 100644
index 4098dcfe36d..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.infra.emf.facet.queries</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 44217f8c068..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/META-INF/MANIFEST.MF b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/META-INF/MANIFEST.MF
deleted file mode 100644
index 545b9caee5e..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,17 +0,0 @@
-Manifest-Version: 1.0
-Export-Package: org.eclipse.papyrus.infra.emf.facet.queries,
- org.eclipse.papyrus.infra.emf.facet.queries.factory,
- org.eclipse.papyrus.infra.emf.facet.queries.parametric,
- org.eclipse.papyrus.infra.emf.facet.queries.parametricquery,
- org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl,
- org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.util
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.emf.edit
-Bundle-Vendor: %Bundle-Vendor
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 1.2.0.qualifier
-Bundle-Name: %Bundle-Name
-Bundle-Activator: org.eclipse.papyrus.infra.emf.facet.queries.Activator
-Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.infra.emf.facet.queries;singleton:=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/OSGI-INF/l10n/bundle.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/OSGI-INF/l10n/bundle.properties
deleted file mode 100644
index c822bd25d5b..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/OSGI-INF/l10n/bundle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#Properties file for org.eclipse.papyrus.infra.emf.facet.queries
-Bundle-Vendor = Eclipse Modeling Project
-Bundle-Name = EMF Facet Queries \ No newline at end of file
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/about.html b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/about.html
deleted file mode 100644
index 82d49bf5f81..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2007</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/build.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/build.properties
deleted file mode 100644
index 657873ddd34..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/build.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-source.. = src/,\
- src-gen/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- plugin.properties,\
- model/,\
- about.html,\
- OSGI-INF/
-src.includes = about.html
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/model/ParametricQuery.ecore b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/model/ParametricQuery.ecore
deleted file mode 100644
index e91ec31896d..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/model/ParametricQuery.ecore
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="parametricquery" nsURI="http://www.eclipse.org/papyrus/infra/emf/facet/parametric/query/0.9.1"
- nsPrefix="paramQuery">
- <eClassifiers xsi:type="ecore:EClass" name="ParametricQuery" eSuperTypes="platform:/plugin/org.eclipse.emf.facet.infra.query/model/query.ecore#//ModelQuery">
- <eStructuralFeatures xsi:type="ecore:EReference" name="calledQuery" lowerBound="1"
- eType="ecore:EClass platform:/plugin/org.eclipse.emf.facet.infra.query/model/query.ecore#//ModelQuery"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="arguments" upperBound="-1"
- eType="#//Argument" containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Argument" abstract="true">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="argumentName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="StringArgument" eSuperTypes="#//Argument">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="EStructuralFeatureArgument" eSuperTypes="#//Argument">
- <eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EStructuralFeature"/>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/model/ParametricQuery.genmodel b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/model/ParametricQuery.genmodel
deleted file mode 100644
index e21309a6d7e..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/model/ParametricQuery.genmodel
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="Copyright (c) 2012 CEA LIST.&#xD;&#xA;&#xD;&#xA; &#xD;&#xA;All rights reserved. This program and the accompanying materials&#xD;&#xA;are made available under the terms of the Eclipse Public License v1.0&#xD;&#xA;which accompanies this distribution, and is available at&#xD;&#xA;http://www.eclipse.org/legal/epl-v10.html&#xD;&#xA;&#xD;&#xA;Contributors:&#xD;&#xA; Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation&#xD;&#xA; Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation"
- modelDirectory="/org.eclipse.papyrus.infra.emf.facet.queries/src-gen" editDirectory="/org.eclipse.papyrus.infra.emf.facet.queries.edit/src-gen"
- editorDirectory="/org.eclipse.papyrus.emf.facet.queries.editor/src-gen" modelPluginID="org.eclipse.papyrus.infra.emf.facet.queries"
- modelName="ParametricQuery" nonNLSMarkers="true" testsDirectory="/org.eclipse.papyrus.emf.facet.queries.tests/src-gen"
- importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0" copyrightFields="false"
- editPluginID="org.eclipse.papyrus.infra.emf.facet.queries.edit" language="" usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/plugin/org.eclipse.emf.facet.infra.query/model/query.genmodel#//query">
- <foreignModel>ParametricQuery.ecore</foreignModel>
- <genPackages prefix="Parametricquery" basePackage="org.eclipse.papyrus.infra.emf.facet.queries"
- disposableProviderFactory="true" ecorePackage="ParametricQuery.ecore#/">
- <genClasses ecoreClass="ParametricQuery.ecore#//ParametricQuery">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference ParametricQuery.ecore#//ParametricQuery/calledQuery"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ParametricQuery.ecore#//ParametricQuery/arguments"/>
- </genClasses>
- <genClasses image="false" ecoreClass="ParametricQuery.ecore#//Argument"/>
- <genClasses ecoreClass="ParametricQuery.ecore#//StringArgument">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ParametricQuery.ecore#//StringArgument/value"/>
- </genClasses>
- <genClasses ecoreClass="ParametricQuery.ecore#//EStructuralFeatureArgument">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference ParametricQuery.ecore#//EStructuralFeatureArgument/value"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/plugin.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/plugin.properties
deleted file mode 100644
index e15c9fc5af2..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/plugin.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-#
-
-pluginName = ParametricQuery Model
-providerName = www.example.org
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/plugin.xml b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/plugin.xml
deleted file mode 100644
index d130206d366..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/plugin.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <!-- TODO: EMF-FACET update query
- <extension
- point="org.eclipse.emf.facet.infra.query.factory">
- <factory
- class="org.eclipse.papyrus.infra.emf.facet.queries.factory.ParametricQueryFactory">
- </factory>
- </extension>
- -->
- <extension
- point="org.eclipse.emf.ecore.generated_package">
- <package
- class="org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage"
- genModel="model/ParametricQuery.genmodel"
- uri="http://www.eclipse.org/papyrus/infra/emf/facet/parametric/query/0.9.1">
- </package>
- </extension>
-</plugin>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/Argument.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/Argument.java
deleted file mode 100644
index afccc346257..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/Argument.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Argument</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.Argument#getArgumentName <em>Argument Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage#getArgument()
- * @model abstract="true"
- * @generated
- */
-public interface Argument extends EObject {
-
- /**
- * Returns the value of the '<em><b>Argument Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Argument 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>Argument Name</em>' attribute.
- * @see #setArgumentName(String)
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage#getArgument_ArgumentName()
- * @model
- * @generated
- */
- String getArgumentName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.Argument#getArgumentName <em>Argument Name</em>}'
- * attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Argument Name</em>' attribute.
- * @see #getArgumentName()
- * @generated
- */
- void setArgumentName(String value);
-} // Argument
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/EStructuralFeatureArgument.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/EStructuralFeatureArgument.java
deleted file mode 100644
index 14b21fcce0a..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/EStructuralFeatureArgument.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery;
-
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>EStructural Feature Argument</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.EStructuralFeatureArgument#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage#getEStructuralFeatureArgument()
- * @model
- * @generated
- */
-public interface EStructuralFeatureArgument extends Argument {
-
- /**
- * Returns the value of the '<em><b>Value</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Value</em>' 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>' reference.
- * @see #setValue(EStructuralFeature)
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage#getEStructuralFeatureArgument_Value()
- * @model
- * @generated
- */
- EStructuralFeature getValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.EStructuralFeatureArgument#getValue <em>Value</em>}'
- * reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Value</em>' reference.
- * @see #getValue()
- * @generated
- */
- void setValue(EStructuralFeature value);
-
-} // EStructuralFeatureArgument
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/ParametricQuery.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/ParametricQuery.java
deleted file mode 100644
index 52ba0b339b0..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/ParametricQuery.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Parametric Query</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery#getCalledQuery <em>Called Query</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery#getArguments <em>Arguments</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage#getParametricQuery()
- * @model
- * @generated
- */
-public interface ParametricQuery extends ModelQuery {
-
- /**
- * Returns the value of the '<em><b>Called Query</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Called Query</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Called Query</em>' reference.
- * @see #setCalledQuery(ModelQuery)
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage#getParametricQuery_CalledQuery()
- * @model required="true"
- * @generated
- */
- ModelQuery getCalledQuery();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery#getCalledQuery <em>Called Query</em>} ' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Called Query</em>' reference.
- * @see #getCalledQuery()
- * @generated
- */
- void setCalledQuery(ModelQuery value);
-
- /**
- * Returns the value of the '<em><b>Arguments</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.Argument}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Arguments</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>Arguments</em>' containment reference list.
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage#getParametricQuery_Arguments()
- * @model containment="true"
- * @generated
- */
- EList<Argument> getArguments();
-
-} // ParametricQuery
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/ParametricqueryFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/ParametricqueryFactory.java
deleted file mode 100644
index ffceb9c0a8f..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/ParametricqueryFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery;
-
-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.emf.facet.queries.parametricquery.ParametricqueryPackage
- * @generated
- */
-public interface ParametricqueryFactory extends EFactory {
-
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- ParametricqueryFactory eINSTANCE = org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricqueryFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Parametric Query</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Parametric Query</em>'.
- * @generated
- */
- ParametricQuery createParametricQuery();
-
- /**
- * Returns a new object of class '<em>String Argument</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>String Argument</em>'.
- * @generated
- */
- StringArgument createStringArgument();
-
- /**
- * Returns a new object of class '<em>EStructural Feature Argument</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>EStructural Feature Argument</em>'.
- * @generated
- */
- EStructuralFeatureArgument createEStructuralFeatureArgument();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- ParametricqueryPackage getParametricqueryPackage();
-
-} // ParametricqueryFactory
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/ParametricqueryPackage.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/ParametricqueryPackage.java
deleted file mode 100644
index c4856c8c12e..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/ParametricqueryPackage.java
+++ /dev/null
@@ -1,552 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery;
-
-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.emf.facet.queries.parametricquery.ParametricqueryFactory
- * @model kind="package"
- * @generated
- */
-public interface ParametricqueryPackage extends EPackage {
-
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNAME = "parametricquery"; //$NON-NLS-1$
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyrus/infra/emf/facet/parametric/query/0.9.1"; //$NON-NLS-1$
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_PREFIX = "paramQuery"; //$NON-NLS-1$
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- ParametricqueryPackage eINSTANCE = org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricqueryPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricQueryImpl
- * <em>Parametric Query</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricQueryImpl
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricqueryPackageImpl#getParametricQuery()
- * @generated
- */
- int PARAMETRIC_QUERY = 0;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARAMETRIC_QUERY__NAME = QueryPackage.MODEL_QUERY__NAME;
-
- /**
- * The feature id for the '<em><b>Description</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARAMETRIC_QUERY__DESCRIPTION = QueryPackage.MODEL_QUERY__DESCRIPTION;
-
- /**
- * The feature id for the '<em><b>Return Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARAMETRIC_QUERY__RETURN_TYPE = QueryPackage.MODEL_QUERY__RETURN_TYPE;
-
- /**
- * The feature id for the '<em><b>Scope</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARAMETRIC_QUERY__SCOPE = QueryPackage.MODEL_QUERY__SCOPE;
-
- /**
- * The feature id for the '<em><b>Model Query Set</b></em>' container reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARAMETRIC_QUERY__MODEL_QUERY_SET = QueryPackage.MODEL_QUERY__MODEL_QUERY_SET;
-
- /**
- * The feature id for the '<em><b>Parameters</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARAMETRIC_QUERY__PARAMETERS = QueryPackage.MODEL_QUERY__PARAMETERS;
-
- /**
- * The feature id for the '<em><b>Is External Context Dependent</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARAMETRIC_QUERY__IS_EXTERNAL_CONTEXT_DEPENDENT = QueryPackage.MODEL_QUERY__IS_EXTERNAL_CONTEXT_DEPENDENT;
-
- /**
- * The feature id for the '<em><b>Upper Bound</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARAMETRIC_QUERY__UPPER_BOUND = QueryPackage.MODEL_QUERY__UPPER_BOUND;
-
- /**
- * The feature id for the '<em><b>Lower Bound</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARAMETRIC_QUERY__LOWER_BOUND = QueryPackage.MODEL_QUERY__LOWER_BOUND;
-
- /**
- * The feature id for the '<em><b>Called Query</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARAMETRIC_QUERY__CALLED_QUERY = QueryPackage.MODEL_QUERY_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Arguments</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARAMETRIC_QUERY__ARGUMENTS = QueryPackage.MODEL_QUERY_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the '<em>Parametric Query</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARAMETRIC_QUERY_FEATURE_COUNT = QueryPackage.MODEL_QUERY_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ArgumentImpl <em>Argument</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ArgumentImpl
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricqueryPackageImpl#getArgument()
- * @generated
- */
- int ARGUMENT = 1;
-
- /**
- * The feature id for the '<em><b>Argument Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ARGUMENT__ARGUMENT_NAME = 0;
-
- /**
- * The number of structural features of the '<em>Argument</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ARGUMENT_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.StringArgumentImpl
- * <em>String Argument</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.StringArgumentImpl
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricqueryPackageImpl#getStringArgument()
- * @generated
- */
- int STRING_ARGUMENT = 2;
-
- /**
- * The feature id for the '<em><b>Argument Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int STRING_ARGUMENT__ARGUMENT_NAME = ARGUMENT__ARGUMENT_NAME;
-
- /**
- * The feature id for the '<em><b>Value</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int STRING_ARGUMENT__VALUE = ARGUMENT_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>String Argument</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int STRING_ARGUMENT_FEATURE_COUNT = ARGUMENT_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.EStructuralFeatureArgumentImpl
- * <em>EStructural Feature Argument</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.EStructuralFeatureArgumentImpl
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricqueryPackageImpl#getEStructuralFeatureArgument()
- * @generated
- */
- int ESTRUCTURAL_FEATURE_ARGUMENT = 3;
-
- /**
- * The feature id for the '<em><b>Argument Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ESTRUCTURAL_FEATURE_ARGUMENT__ARGUMENT_NAME = ARGUMENT__ARGUMENT_NAME;
-
- /**
- * The feature id for the '<em><b>Value</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ESTRUCTURAL_FEATURE_ARGUMENT__VALUE = ARGUMENT_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>EStructural Feature Argument</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ESTRUCTURAL_FEATURE_ARGUMENT_FEATURE_COUNT = ARGUMENT_FEATURE_COUNT + 1;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery
- * <em>Parametric Query</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Parametric Query</em>'.
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery
- * @generated
- */
- EClass getParametricQuery();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery#getCalledQuery
- * <em>Called Query</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Called Query</em>'.
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery#getCalledQuery()
- * @see #getParametricQuery()
- * @generated
- */
- EReference getParametricQuery_CalledQuery();
-
- /**
- * Returns the meta object for the containment reference list ' {@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery#getArguments <em>Arguments</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Arguments</em>'.
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery#getArguments()
- * @see #getParametricQuery()
- * @generated
- */
- EReference getParametricQuery_Arguments();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.Argument <em>Argument</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Argument</em>'.
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.Argument
- * @generated
- */
- EClass getArgument();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.Argument#getArgumentName
- * <em>Argument Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Argument Name</em>'.
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.Argument#getArgumentName()
- * @see #getArgument()
- * @generated
- */
- EAttribute getArgument_ArgumentName();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.StringArgument <em>String Argument</em>} '.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>String Argument</em>'.
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.StringArgument
- * @generated
- */
- EClass getStringArgument();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.StringArgument#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.emf.facet.queries.parametricquery.StringArgument#getValue()
- * @see #getStringArgument()
- * @generated
- */
- EAttribute getStringArgument_Value();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.EStructuralFeatureArgument
- * <em>EStructural Feature Argument</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>EStructural Feature Argument</em>'.
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.EStructuralFeatureArgument
- * @generated
- */
- EClass getEStructuralFeatureArgument();
-
- /**
- * Returns the meta object for the reference ' {@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.EStructuralFeatureArgument#getValue <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Value</em>'.
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.EStructuralFeatureArgument#getValue()
- * @see #getEStructuralFeatureArgument()
- * @generated
- */
- EReference getEStructuralFeatureArgument_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
- */
- ParametricqueryFactory getParametricqueryFactory();
-
- /**
- * <!-- 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.emf.facet.queries.parametricquery.impl.ParametricQueryImpl
- * <em>Parametric Query</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricQueryImpl
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricqueryPackageImpl#getParametricQuery()
- * @generated
- */
- EClass PARAMETRIC_QUERY = eINSTANCE.getParametricQuery();
-
- /**
- * The meta object literal for the '<em><b>Called Query</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference PARAMETRIC_QUERY__CALLED_QUERY = eINSTANCE.getParametricQuery_CalledQuery();
-
- /**
- * The meta object literal for the '<em><b>Arguments</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference PARAMETRIC_QUERY__ARGUMENTS = eINSTANCE.getParametricQuery_Arguments();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ArgumentImpl <em>Argument</em>}'
- * class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ArgumentImpl
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricqueryPackageImpl#getArgument()
- * @generated
- */
- EClass ARGUMENT = eINSTANCE.getArgument();
-
- /**
- * The meta object literal for the '<em><b>Argument Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute ARGUMENT__ARGUMENT_NAME = eINSTANCE.getArgument_ArgumentName();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.StringArgumentImpl
- * <em>String Argument</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.StringArgumentImpl
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricqueryPackageImpl#getStringArgument()
- * @generated
- */
- EClass STRING_ARGUMENT = eINSTANCE.getStringArgument();
-
- /**
- * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute STRING_ARGUMENT__VALUE = eINSTANCE.getStringArgument_Value();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.EStructuralFeatureArgumentImpl
- * <em>EStructural Feature Argument</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.EStructuralFeatureArgumentImpl
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricqueryPackageImpl#getEStructuralFeatureArgument()
- * @generated
- */
- EClass ESTRUCTURAL_FEATURE_ARGUMENT = eINSTANCE.getEStructuralFeatureArgument();
-
- /**
- * The meta object literal for the '<em><b>Value</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference ESTRUCTURAL_FEATURE_ARGUMENT__VALUE = eINSTANCE.getEStructuralFeatureArgument_Value();
-
- }
-
-} // ParametricqueryPackage
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/StringArgument.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/StringArgument.java
deleted file mode 100644
index 02a1f9d8cd6..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/StringArgument.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>String Argument</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.StringArgument#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage#getStringArgument()
- * @model
- * @generated
- */
-public interface StringArgument extends Argument {
-
- /**
- * 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.emf.facet.queries.parametricquery.ParametricqueryPackage#getStringArgument_Value()
- * @model required="true"
- * @generated
- */
- String getValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.StringArgument#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);
-
-} // StringArgument
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ArgumentImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ArgumentImpl.java
deleted file mode 100644
index e9ca4a63e38..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ArgumentImpl.java
+++ /dev/null
@@ -1,188 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.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.emf.facet.queries.parametricquery.Argument;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Argument</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ArgumentImpl#getArgumentName <em>Argument Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public abstract class ArgumentImpl extends EObjectImpl implements Argument {
-
- /**
- * The default value of the '{@link #getArgumentName() <em>Argument Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getArgumentName()
- * @generated
- * @ordered
- */
- protected static final String ARGUMENT_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getArgumentName() <em>Argument Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getArgumentName()
- * @generated
- * @ordered
- */
- protected String argumentName = ARGUMENT_NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ArgumentImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ParametricqueryPackage.Literals.ARGUMENT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getArgumentName() {
- return argumentName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setArgumentName(String newArgumentName) {
- String oldArgumentName = argumentName;
- argumentName = newArgumentName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, ParametricqueryPackage.ARGUMENT__ARGUMENT_NAME, oldArgumentName, argumentName));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ParametricqueryPackage.ARGUMENT__ARGUMENT_NAME:
- return getArgumentName();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case ParametricqueryPackage.ARGUMENT__ARGUMENT_NAME:
- setArgumentName((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case ParametricqueryPackage.ARGUMENT__ARGUMENT_NAME:
- setArgumentName(ARGUMENT_NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ParametricqueryPackage.ARGUMENT__ARGUMENT_NAME:
- return ARGUMENT_NAME_EDEFAULT == null ? argumentName != null : !ARGUMENT_NAME_EDEFAULT.equals(argumentName);
- }
- 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(" (argumentName: "); //$NON-NLS-1$
- result.append(argumentName);
- result.append(')');
- return result.toString();
- }
-
-} // ArgumentImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/EStructuralFeatureArgumentImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/EStructuralFeatureArgumentImpl.java
deleted file mode 100644
index 7c7407c55e2..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/EStructuralFeatureArgumentImpl.java
+++ /dev/null
@@ -1,182 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.EStructuralFeatureArgument;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>EStructural Feature Argument</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.EStructuralFeatureArgumentImpl#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class EStructuralFeatureArgumentImpl extends ArgumentImpl implements EStructuralFeatureArgument {
-
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected EStructuralFeature value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected EStructuralFeatureArgumentImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ParametricqueryPackage.Literals.ESTRUCTURAL_FEATURE_ARGUMENT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EStructuralFeature getValue() {
- if (value != null && value.eIsProxy()) {
- InternalEObject oldValue = (InternalEObject) value;
- value = (EStructuralFeature) eResolveProxy(oldValue);
- if (value != oldValue) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ParametricqueryPackage.ESTRUCTURAL_FEATURE_ARGUMENT__VALUE, oldValue, value));
- }
- }
- }
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EStructuralFeature basicGetValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setValue(EStructuralFeature newValue) {
- EStructuralFeature oldValue = value;
- value = newValue;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, ParametricqueryPackage.ESTRUCTURAL_FEATURE_ARGUMENT__VALUE, oldValue, value));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ParametricqueryPackage.ESTRUCTURAL_FEATURE_ARGUMENT__VALUE:
- if (resolve) {
- return getValue();
- }
- return basicGetValue();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case ParametricqueryPackage.ESTRUCTURAL_FEATURE_ARGUMENT__VALUE:
- setValue((EStructuralFeature) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case ParametricqueryPackage.ESTRUCTURAL_FEATURE_ARGUMENT__VALUE:
- setValue((EStructuralFeature) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ParametricqueryPackage.ESTRUCTURAL_FEATURE_ARGUMENT__VALUE:
- return value != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // EStructuralFeatureArgumentImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ParametricQueryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ParametricQueryImpl.java
deleted file mode 100644
index f5310fedadc..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ParametricQueryImpl.java
+++ /dev/null
@@ -1,242 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.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.emf.facet.queries.parametricquery.Argument;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Parametric Query</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricQueryImpl#getCalledQuery <em>Called Query</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricQueryImpl#getArguments <em>Arguments</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ParametricQueryImpl extends ModelQueryImpl implements ParametricQuery {
-
- /**
- * The cached value of the '{@link #getCalledQuery() <em>Called Query</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getCalledQuery()
- * @generated
- * @ordered
- */
- protected ModelQuery calledQuery;
-
- /**
- * The cached value of the '{@link #getArguments() <em>Arguments</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getArguments()
- * @generated
- * @ordered
- */
- protected EList<Argument> arguments;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ParametricQueryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ParametricqueryPackage.Literals.PARAMETRIC_QUERY;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ModelQuery getCalledQuery() {
- if (calledQuery != null && calledQuery.eIsProxy()) {
- InternalEObject oldCalledQuery = (InternalEObject) calledQuery;
- calledQuery = (ModelQuery) eResolveProxy(oldCalledQuery);
- if (calledQuery != oldCalledQuery) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ParametricqueryPackage.PARAMETRIC_QUERY__CALLED_QUERY, oldCalledQuery, calledQuery));
- }
- }
- }
- return calledQuery;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ModelQuery basicGetCalledQuery() {
- return calledQuery;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setCalledQuery(ModelQuery newCalledQuery) {
- ModelQuery oldCalledQuery = calledQuery;
- calledQuery = newCalledQuery;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, ParametricqueryPackage.PARAMETRIC_QUERY__CALLED_QUERY, oldCalledQuery, calledQuery));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Argument> getArguments() {
- if (arguments == null) {
- arguments = new EObjectContainmentEList<Argument>(Argument.class, this, ParametricqueryPackage.PARAMETRIC_QUERY__ARGUMENTS);
- }
- return arguments;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case ParametricqueryPackage.PARAMETRIC_QUERY__ARGUMENTS:
- return ((InternalEList<?>) getArguments()).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 ParametricqueryPackage.PARAMETRIC_QUERY__CALLED_QUERY:
- if (resolve) {
- return getCalledQuery();
- }
- return basicGetCalledQuery();
- case ParametricqueryPackage.PARAMETRIC_QUERY__ARGUMENTS:
- return getArguments();
- }
- 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 ParametricqueryPackage.PARAMETRIC_QUERY__CALLED_QUERY:
- setCalledQuery((ModelQuery) newValue);
- return;
- case ParametricqueryPackage.PARAMETRIC_QUERY__ARGUMENTS:
- getArguments().clear();
- getArguments().addAll((Collection<? extends Argument>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case ParametricqueryPackage.PARAMETRIC_QUERY__CALLED_QUERY:
- setCalledQuery((ModelQuery) null);
- return;
- case ParametricqueryPackage.PARAMETRIC_QUERY__ARGUMENTS:
- getArguments().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ParametricqueryPackage.PARAMETRIC_QUERY__CALLED_QUERY:
- return calledQuery != null;
- case ParametricqueryPackage.PARAMETRIC_QUERY__ARGUMENTS:
- return arguments != null && !arguments.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} // ParametricQueryImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ParametricqueryFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ParametricqueryFactoryImpl.java
deleted file mode 100644
index 2223ef20b0a..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ParametricqueryFactoryImpl.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.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.emf.facet.queries.parametricquery.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class ParametricqueryFactoryImpl extends EFactoryImpl implements ParametricqueryFactory {
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static ParametricqueryFactory init() {
- try {
- ParametricqueryFactory theParametricqueryFactory = (ParametricqueryFactory) EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/infra/emf/facet/parametric/query/0.9.1"); //$NON-NLS-1$
- if (theParametricqueryFactory != null) {
- return theParametricqueryFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new ParametricqueryFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ParametricqueryFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case ParametricqueryPackage.PARAMETRIC_QUERY:
- return createParametricQuery();
- case ParametricqueryPackage.STRING_ARGUMENT:
- return createStringArgument();
- case ParametricqueryPackage.ESTRUCTURAL_FEATURE_ARGUMENT:
- return createEStructuralFeatureArgument();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ParametricQuery createParametricQuery() {
- ParametricQueryImpl parametricQuery = new ParametricQueryImpl();
- return parametricQuery;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public StringArgument createStringArgument() {
- StringArgumentImpl stringArgument = new StringArgumentImpl();
- return stringArgument;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EStructuralFeatureArgument createEStructuralFeatureArgument() {
- EStructuralFeatureArgumentImpl eStructuralFeatureArgument = new EStructuralFeatureArgumentImpl();
- return eStructuralFeatureArgument;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ParametricqueryPackage getParametricqueryPackage() {
- return (ParametricqueryPackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static ParametricqueryPackage getPackage() {
- return ParametricqueryPackage.eINSTANCE;
- }
-
-} // ParametricqueryFactoryImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ParametricqueryPackageImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ParametricqueryPackageImpl.java
deleted file mode 100644
index 03a0febe3cf..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/ParametricqueryPackageImpl.java
+++ /dev/null
@@ -1,331 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.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.emf.facet.queries.parametricquery.Argument;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.EStructuralFeatureArgument;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryFactory;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.StringArgument;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class ParametricqueryPackageImpl extends EPackageImpl implements ParametricqueryPackage {
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass parametricQueryEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass argumentEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass stringArgumentEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass eStructuralFeatureArgumentEClass = 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.emf.facet.queries.parametricquery.ParametricqueryPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private ParametricqueryPackageImpl() {
- super(eNS_URI, ParametricqueryFactory.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 ParametricqueryPackage#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 ParametricqueryPackage init() {
- if (isInited) {
- return (ParametricqueryPackage) EPackage.Registry.INSTANCE.getEPackage(ParametricqueryPackage.eNS_URI);
- }
-
- // Obtain or create and register package
- ParametricqueryPackageImpl theParametricqueryPackage = (ParametricqueryPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ParametricqueryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ParametricqueryPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- QueryPackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theParametricqueryPackage.createPackageContents();
-
- // Initialize created meta-data
- theParametricqueryPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theParametricqueryPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(ParametricqueryPackage.eNS_URI, theParametricqueryPackage);
- return theParametricqueryPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getParametricQuery() {
- return parametricQueryEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getParametricQuery_CalledQuery() {
- return (EReference) parametricQueryEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getParametricQuery_Arguments() {
- return (EReference) parametricQueryEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getArgument() {
- return argumentEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getArgument_ArgumentName() {
- return (EAttribute) argumentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getStringArgument() {
- return stringArgumentEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getStringArgument_Value() {
- return (EAttribute) stringArgumentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getEStructuralFeatureArgument() {
- return eStructuralFeatureArgumentEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getEStructuralFeatureArgument_Value() {
- return (EReference) eStructuralFeatureArgumentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ParametricqueryFactory getParametricqueryFactory() {
- return (ParametricqueryFactory) 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
- parametricQueryEClass = createEClass(PARAMETRIC_QUERY);
- createEReference(parametricQueryEClass, PARAMETRIC_QUERY__CALLED_QUERY);
- createEReference(parametricQueryEClass, PARAMETRIC_QUERY__ARGUMENTS);
-
- argumentEClass = createEClass(ARGUMENT);
- createEAttribute(argumentEClass, ARGUMENT__ARGUMENT_NAME);
-
- stringArgumentEClass = createEClass(STRING_ARGUMENT);
- createEAttribute(stringArgumentEClass, STRING_ARGUMENT__VALUE);
-
- eStructuralFeatureArgumentEClass = createEClass(ESTRUCTURAL_FEATURE_ARGUMENT);
- createEReference(eStructuralFeatureArgumentEClass, ESTRUCTURAL_FEATURE_ARGUMENT__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
- QueryPackage theQueryPackage = (QueryPackage) EPackage.Registry.INSTANCE.getEPackage(QueryPackage.eNS_URI);
- EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- parametricQueryEClass.getESuperTypes().add(theQueryPackage.getModelQuery());
- stringArgumentEClass.getESuperTypes().add(this.getArgument());
- eStructuralFeatureArgumentEClass.getESuperTypes().add(this.getArgument());
-
- // Initialize classes and features; add operations and parameters
- initEClass(parametricQueryEClass, ParametricQuery.class, "ParametricQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEReference(getParametricQuery_CalledQuery(), theQueryPackage.getModelQuery(), null,
- "calledQuery", null, 1, 1, ParametricQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
- initEReference(getParametricQuery_Arguments(), this.getArgument(), null, "arguments", null, 0, -1, ParametricQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEClass(argumentEClass, Argument.class, "Argument", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEAttribute(getArgument_ArgumentName(), ecorePackage.getEString(), "argumentName", null, 0, 1, Argument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEClass(stringArgumentEClass, StringArgument.class, "StringArgument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEAttribute(getStringArgument_Value(), ecorePackage.getEString(), "value", null, 1, 1, StringArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEClass(eStructuralFeatureArgumentEClass, EStructuralFeatureArgument.class, "EStructuralFeatureArgument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
- initEReference(getEStructuralFeatureArgument_Value(), theEcorePackage.getEStructuralFeature(), null,
- "value", null, 0, 1, EStructuralFeatureArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} // ParametricqueryPackageImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/StringArgumentImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/StringArgumentImpl.java
deleted file mode 100644
index 64a427b8ecd..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/impl/StringArgumentImpl.java
+++ /dev/null
@@ -1,188 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.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.emf.facet.queries.parametricquery.ParametricqueryPackage;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.StringArgument;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>String Argument</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.StringArgumentImpl#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class StringArgumentImpl extends ArgumentImpl implements StringArgument {
-
- /**
- * 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 StringArgumentImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ParametricqueryPackage.Literals.STRING_ARGUMENT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setValue(String newValue) {
- String oldValue = value;
- value = newValue;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, ParametricqueryPackage.STRING_ARGUMENT__VALUE, oldValue, value));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ParametricqueryPackage.STRING_ARGUMENT__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 ParametricqueryPackage.STRING_ARGUMENT__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 ParametricqueryPackage.STRING_ARGUMENT__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ParametricqueryPackage.STRING_ARGUMENT__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: "); //$NON-NLS-1$
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-} // StringArgumentImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/util/ParametricqueryAdapterFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/util/ParametricqueryAdapterFactory.java
deleted file mode 100644
index 40d0278ae60..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/util/ParametricqueryAdapterFactory.java
+++ /dev/null
@@ -1,225 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.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.emf.facet.queries.parametricquery.*;
-
-/**
- * <!-- 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.emf.facet.queries.parametricquery.ParametricqueryPackage
- * @generated
- */
-public class ParametricqueryAdapterFactory extends AdapterFactoryImpl {
-
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static ParametricqueryPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ParametricqueryAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = ParametricqueryPackage.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 ParametricquerySwitch<Adapter> modelSwitch = new ParametricquerySwitch<Adapter>() {
-
- @Override
- public Adapter caseParametricQuery(ParametricQuery object) {
- return createParametricQueryAdapter();
- }
-
- @Override
- public Adapter caseArgument(Argument object) {
- return createArgumentAdapter();
- }
-
- @Override
- public Adapter caseStringArgument(StringArgument object) {
- return createStringArgumentAdapter();
- }
-
- @Override
- public Adapter caseEStructuralFeatureArgument(EStructuralFeatureArgument object) {
- return createEStructuralFeatureArgumentAdapter();
- }
-
- @Override
- public Adapter caseModelQuery(ModelQuery object) {
- return createModelQueryAdapter();
- }
-
- @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.emf.facet.queries.parametricquery.ParametricQuery
- * <em>Parametric Query</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.emf.facet.queries.parametricquery.ParametricQuery
- * @generated
- */
- public Adapter createParametricQueryAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.Argument <em>Argument</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.emf.facet.queries.parametricquery.Argument
- * @generated
- */
- public Adapter createArgumentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.StringArgument
- * <em>String Argument</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.emf.facet.queries.parametricquery.StringArgument
- * @generated
- */
- public Adapter createStringArgumentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.EStructuralFeatureArgument
- * <em>EStructural Feature Argument</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.emf.facet.queries.parametricquery.EStructuralFeatureArgument
- * @generated
- */
- public Adapter createEStructuralFeatureArgumentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.facet.infra.query.ModelQuery <em>Model Query</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.facet.infra.query.ModelQuery
- * @generated
- */
- public Adapter createModelQueryAdapter() {
- 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;
- }
-
-} // ParametricqueryAdapterFactory
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/util/ParametricquerySwitch.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/util/ParametricquerySwitch.java
deleted file mode 100644
index da36dc8bf91..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src-gen/org/eclipse/papyrus/infra/emf/facet/queries/parametricquery/util/ParametricquerySwitch.java
+++ /dev/null
@@ -1,234 +0,0 @@
-/**
- * Copyright (c) 2012 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.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.emf.facet.queries.parametricquery.*;
-
-/**
- * <!-- 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.emf.facet.queries.parametricquery.ParametricqueryPackage
- * @generated
- */
-public class ParametricquerySwitch<T> extends Switch<T> {
-
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static ParametricqueryPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ParametricquerySwitch() {
- if (modelPackage == null) {
- modelPackage = ParametricqueryPackage.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 ParametricqueryPackage.PARAMETRIC_QUERY: {
- ParametricQuery parametricQuery = (ParametricQuery) theEObject;
- T result = caseParametricQuery(parametricQuery);
- if (result == null) {
- result = caseModelQuery(parametricQuery);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case ParametricqueryPackage.ARGUMENT: {
- Argument argument = (Argument) theEObject;
- T result = caseArgument(argument);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case ParametricqueryPackage.STRING_ARGUMENT: {
- StringArgument stringArgument = (StringArgument) theEObject;
- T result = caseStringArgument(stringArgument);
- if (result == null) {
- result = caseArgument(stringArgument);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case ParametricqueryPackage.ESTRUCTURAL_FEATURE_ARGUMENT: {
- EStructuralFeatureArgument eStructuralFeatureArgument = (EStructuralFeatureArgument) theEObject;
- T result = caseEStructuralFeatureArgument(eStructuralFeatureArgument);
- if (result == null) {
- result = caseArgument(eStructuralFeatureArgument);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Parametric Query</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>Parametric Query</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseParametricQuery(ParametricQuery object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Argument</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>Argument</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseArgument(Argument object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>String Argument</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>String Argument</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseStringArgument(StringArgument object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EStructural Feature Argument</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>EStructural Feature Argument</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEStructuralFeatureArgument(EStructuralFeatureArgument object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Model Query</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 Query</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseModelQuery(ModelQuery 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;
- }
-
-} // ParametricquerySwitch
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src/org/eclipse/papyrus/infra/emf/facet/queries/Activator.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src/org/eclipse/papyrus/infra/emf/facet/queries/Activator.java
deleted file mode 100644
index 67ef28dbff0..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src/org/eclipse/papyrus/infra/emf/facet/queries/Activator.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 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:
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.facet.queries;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-
-public class Activator implements BundleActivator {
-
- private static BundleContext context;
-
- static BundleContext getContext() {
- return context;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext bundleContext) throws Exception {
- Activator.context = bundleContext;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext bundleContext) throws Exception {
- Activator.context = null;
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src/org/eclipse/papyrus/infra/emf/facet/queries/factory/ParametricQueryFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src/org/eclipse/papyrus/infra/emf/facet/queries/factory/ParametricQueryFactory.java
deleted file mode 100644
index 91b524ab2ce..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src/org/eclipse/papyrus/infra/emf/facet/queries/factory/ParametricQueryFactory.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 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:
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.facet.queries.factory;
-
-import org.eclipse.core.runtime.Assert;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametric.FacetParametricQuery;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryFactory;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricqueryPackage;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.impl.ParametricQueryImpl;
-import org.osgi.framework.Bundle;
-
-
-public class ParametricQueryFactory implements IModelQueryFactory {
-
- public ParametricQueryFactory() {
-
- }
-
- public AbstractModelQuery create(ModelQuery modelQuery, Bundle bundle) throws ModelQueryException {
- Assert.isTrue(modelQuery instanceof ParametricQueryImpl);
- return new FacetParametricQuery((ParametricQuery) modelQuery);
- }
-
- public EClass getManagedModelQueryType() {
- return ParametricqueryPackage.eINSTANCE.getParametricQuery();
- }
-
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src/org/eclipse/papyrus/infra/emf/facet/queries/parametric/FacetParametricQuery.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src/org/eclipse/papyrus/infra/emf/facet/queries/parametric/FacetParametricQuery.java
deleted file mode 100644
index 221b03fe0c2..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.facet.queries/src/org/eclipse/papyrus/infra/emf/facet/queries/parametric/FacetParametricQuery.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 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:
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.facet.queries.parametric;
-
-import java.util.Collections;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.Argument;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.EStructuralFeatureArgument;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.ParametricQuery;
-import org.eclipse.papyrus.infra.emf.facet.queries.parametricquery.StringArgument;
-
-
-public class FacetParametricQuery extends AbstractModelQueryWithEditingDomain {
-
- protected ParametricQuery parametricModelQuery;
-
- public FacetParametricQuery(ParametricQuery modelQuery) {
- super(modelQuery);
- this.parametricModelQuery = modelQuery;
- }
-
- @Override
- public Object basicEvaluate(EObject context, List<ModelQueryParameterValue> parameterValues) throws ModelQueryException {
- ModelQuery calledQuery = parametricModelQuery.getCalledQuery();
- List<Argument> arguments = parametricModelQuery.getArguments();
-
- final ModelQuerySetCatalog querySetCatalog = ModelQuerySetCatalog.getSingleton();
- if (calledQuery != null) {
- final AbstractModelQuery modelQueryImpl = querySetCatalog.getModelQueryImpl(calledQuery);
- ModelQueryContext modelQueryContext = RuntimeFactory.eINSTANCE.createModelQueryContext();
- modelQueryContext.getSelectedModelElements().add(context);
-
- final List<ModelQueryParameterValue> calledParameterValues = getParameterValues(calledQuery, arguments);
- if (parameterValues != null && !parameterValues.isEmpty()) {
- calledParameterValues.addAll(parameterValues);
- }
- return modelQueryImpl.basicEvaluate(context, calledParameterValues);
- }
-
- return Collections.emptyList();
- }
-
- private List<ModelQueryParameterValue> getParameterValues(ModelQuery calledQuery, List<Argument> arguments) {
- List<ModelQueryParameterValue> result = new LinkedList<ModelQueryParameterValue>();
-
- for (Argument argument : arguments) {
- ModelQueryParameterValue parameterValue = RuntimeFactory.eINSTANCE.createModelQueryParameterValue();
- ModelQueryParameter modelQueryParameter = QueryFactory.eINSTANCE.createModelQueryParameter();
-
- Object value = null;
- final String name = argument.getArgumentName();
- if (argument instanceof StringArgument) {
- value = ((StringArgument) argument).getValue();
- } else if (argument instanceof EStructuralFeatureArgument) {
- value = ((EStructuralFeatureArgument) argument).getValue();
- }
- modelQueryParameter.setName(name);
- parameterValue.setParameter(modelQueryParameter);
- parameterValue.setValue(value);
- result.add(parameterValue);
- }
- return result;
- }
-
- /**
- * This method must be overridden by each sub class to implement query
- * evaluation.
- *
- * @param context
- * The query evaluation context
- * @param parameterValues
- * The query parameter values
- * @param editingDomain
- * The editing domain used to perform EMF Command
- * @return A list of ModelQueryResult (one per evaluation)
- * @throws ModelQueryExecutionException
- */
- public Object basicEvaluate(final EObject context, final List<ModelQueryParameterValue> parameterValues, EditingDomain editingDomain) throws ModelQueryException {
- ModelQuery calledQuery = parametricModelQuery.getCalledQuery();
- List<Argument> arguments = parametricModelQuery.getArguments();
-
- final ModelQuerySetCatalog querySetCatalog = ModelQuerySetCatalog.getSingleton();
- if (calledQuery != null) {
- final AbstractModelQuery modelQueryImpl = querySetCatalog.getModelQueryImpl(calledQuery);
- if (!(modelQueryImpl instanceof AbstractModelQueryWithEditingDomain)) {
- return basicEvaluate(context, parameterValues);
- }
- ModelQueryContext modelQueryContext = RuntimeFactory.eINSTANCE.createModelQueryContext();
- modelQueryContext.getSelectedModelElements().add(context);
-
- final List<ModelQueryParameterValue> calledParameterValues = getParameterValues(calledQuery, arguments);
- if (parameterValues != null && !parameterValues.isEmpty()) {
- calledParameterValues.addAll(parameterValues);
- }
- return ((AbstractModelQueryWithEditingDomain) modelQueryImpl).basicEvaluate(context, calledParameterValues, editingDomain);
- }
-
- return Collections.emptyList();
- }
-}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/.classpath b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/.classpath
deleted file mode 100644
index ae46291dfda..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/.classpath
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src-gen"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath> \ No newline at end of file
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/.project b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/.project
deleted file mode 100644
index b348764ce97..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.infra.emf.newchild</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 2ae6578462b..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Thu Jul 07 15:40:02 CEST 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/META-INF/MANIFEST.MF b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/META-INF/MANIFEST.MF
deleted file mode 100644
index 81555ebcf0e..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,33 +0,0 @@
-Manifest-Version: 1.0
-Export-Package: org.eclipse.papyrus.infra.emf.newchild,
- org.eclipse.papyrus.infra.emf.newchild.impl,
- org.eclipse.papyrus.infra.emf.newchild.menu,
- org.eclipse.papyrus.infra.emf.newchild.ncpolicy,
- org.eclipse.papyrus.infra.emf.newchild.runtime,
- org.eclipse.papyrus.infra.emf.newchild.util
-Bundle-ActivationPolicy: lazy
-Bundle-ClassPath: .
-Bundle-Name: %pluginName
-Bundle-Localization: plugin
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.emf.ecore,
- org.eclipse.uml2.uml,
- org.eclipse.ui;bundle-version="3.7.0",
- org.eclipse.emf.edit.ui;bundle-version="2.7.0",
- org.eclipse.papyrus.infra.constraints;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.extendedtypes;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.core;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.services.edit;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.emf;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.tools;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="1.2.0",
- org.eclipse.gmf.runtime.common.core;bundle-version="1.4.1",
- org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0"
-Bundle-Vendor: %providerName
-Bundle-Version: 1.2.0.qualifier
-Eclipse-BuddyPolicy: dependent
-Bundle-Activator: org.eclipse.papyrus.infra.emf.newchild.Activator
-Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.infra.emf.newchild;singleton:=true
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/Model/NewChild.ecore b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/Model/NewChild.ecore
deleted file mode 100644
index 1c9adaa45e3..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/Model/NewChild.ecore
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="newchild" nsURI="http://www.eclipse.org/papyrus/newchild" nsPrefix="newchild">
- <eClassifiers xsi:type="ecore:EClass" name="NewchildConfiguration">
- <eStructuralFeatures xsi:type="ecore:EReference" name="roots" upperBound="-1"
- eType="#//MenuRoot" containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="newChildPolicies" upperBound="-1"
- eType="#//ncpolicy/NewChildPolicySet" containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MenuRoot" eSuperTypes="#//MenuContainer platform:/plugin/org.eclipse.papyrus.infra.constraints/Model/Constraints.ecore#//DisplayUnit">
- <eStructuralFeatures xsi:type="ecore:EReference" name="groups" upperBound="-1"
- eType="#//MenuGroup" containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MenuItem" abstract="true">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MenuContainer" abstract="true">
- <eStructuralFeatures xsi:type="ecore:EReference" name="submenus" upperBound="-1"
- eType="#//MenuItem" containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Menu" eSuperTypes="#//MenuContainer #//MenuItem">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="icon" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MenuAction" eSuperTypes="#//MenuItem">
- <eStructuralFeatures xsi:type="ecore:EReference" name="elementType" lowerBound="1"
- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Separator" eSuperTypes="#//MenuItem"/>
- <eClassifiers xsi:type="ecore:EClass" name="MenuGroup" eSuperTypes="#//MenuContainer">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="before" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="after" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="absolutePosition" eType="#//MenuPosition"
- defaultValueLiteral="top"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EEnum" name="MenuPosition">
- <eLiterals name="top"/>
- <eLiterals name="bottom" value="1"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="CustomFiller" eSuperTypes="#//MenuItem">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="className" lowerBound="1"
- eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- </eClassifiers>
- <eSubpackages name="ncpolicy" nsURI="http://www.eclipse.org/papyrus/newchild/policy"
- nsPrefix="ncpolicy">
- <eClassifiers xsi:type="ecore:EEnum" name="CreateIn">
- <eLiterals name="self" literal="self"/>
- <eLiterals name="parent" value="1" literal="parent"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EEnum" name="Layout">
- <eLiterals name="hierarchical"/>
- <eLiterals name="flat" value="1"/>
- <eLiterals name="auto" value="2"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="NewEMFChildMenu" eSuperTypes="#//Menu">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="createIn" lowerBound="1"
- eType="#//ncpolicy/CreateIn" defaultValueLiteral="self"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="layout" lowerBound="1"
- eType="#//ncpolicy/Layout" defaultValueLiteral="hierarchical"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="groups" upperBound="-1"
- eType="#//MenuGroup" containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="NewChildPolicySet" eSuperTypes="platform:/plugin/org.eclipse.papyrus.infra.constraints/Model/Constraints.ecore#//DisplayUnit">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1"
- eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="policies" upperBound="-1"
- eType="#//ncpolicy/NewChildPolicy" containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="NewChildPolicy" abstract="true">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="roles" upperBound="-1"
- eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="eClasses" upperBound="-1"
- eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EClass"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1"
- eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="FilterPolicy" eSuperTypes="#//ncpolicy/NewChildPolicy"/>
- <eClassifiers xsi:type="ecore:EClass" name="ReplacePolicy" eSuperTypes="#//ncpolicy/NewChildPolicy">
- <eStructuralFeatures xsi:type="ecore:EReference" name="replaceWith" lowerBound="1"
- upperBound="-1" eType="#//MenuItem" containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="CustomPolicy" eSuperTypes="#//ncpolicy/NewChildPolicy">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="className" lowerBound="1"
- eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- </eClassifiers>
- </eSubpackages>
-</ecore:EPackage>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/Model/NewChild.genmodel b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/Model/NewChild.genmodel
deleted file mode 100644
index 70359b9588a..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/Model/NewChild.genmodel
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.papyrus.infra.emf.newchild/src-gen"
- editDirectory="/org.eclipse.papyrus.infra.emf.newchild.edit/src-gen" editorDirectory="/org.eclipse.papyrus.infra.emf.newchild.editor/src-gen"
- modelPluginID="org.eclipse.papyrus.infra.emf.newchild" modelName="NewChild" testsDirectory="/org.eclipse.papyrus.infra.emf.newchild.tests/src-gen"
- importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0" copyrightFields="false"
- usedGenPackages="platform:/plugin/org.eclipse.papyrus.infra.queries.core.configuration/model/Configuration.genmodel#//configuration platform:/plugin/org.eclipse.papyrus.infra.constraints/Model/Constraints.genmodel#//constraints platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/plugin/org.eclipse.papyrus.infra.extendedtypes/model/ExtendedTypes.genmodel#//extendedtypes platform:/plugin/org.eclipse.emf.facet.infra.query/model/query.genmodel#//query platform:/plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml platform:/plugin/org.eclipse.papyrus.infra.queries.core.configuration/model/Configuration.genmodel#//types">
- <foreignModel>NewChild.ecore</foreignModel>
- <genPackages prefix="Newchild" basePackage="org.eclipse.papyrus.infra.emf" resource="XML"
- disposableProviderFactory="true" ecorePackage="NewChild.ecore#/">
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="NewChild.ecore#//MenuPosition">
- <genEnumLiterals ecoreEnumLiteral="NewChild.ecore#//MenuPosition/top"/>
- <genEnumLiterals ecoreEnumLiteral="NewChild.ecore#//MenuPosition/bottom"/>
- </genEnums>
- <genClasses ecoreClass="NewChild.ecore#//NewchildConfiguration">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference NewChild.ecore#//NewchildConfiguration/roots"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//NewchildConfiguration/name"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference NewChild.ecore#//NewchildConfiguration/newChildPolicies"/>
- </genClasses>
- <genClasses ecoreClass="NewChild.ecore#//MenuRoot">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference NewChild.ecore#//MenuRoot/groups"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//MenuRoot/name"/>
- </genClasses>
- <genClasses image="false" ecoreClass="NewChild.ecore#//MenuItem">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//MenuItem/id"/>
- </genClasses>
- <genClasses image="false" ecoreClass="NewChild.ecore#//MenuContainer">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference NewChild.ecore#//MenuContainer/submenus"/>
- </genClasses>
- <genClasses ecoreClass="NewChild.ecore#//Menu">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//Menu/name"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//Menu/icon"/>
- </genClasses>
- <genClasses ecoreClass="NewChild.ecore#//MenuAction">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference NewChild.ecore#//MenuAction/elementType"/>
- </genClasses>
- <genClasses ecoreClass="NewChild.ecore#//Separator"/>
- <genClasses ecoreClass="NewChild.ecore#//MenuGroup">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//MenuGroup/before"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//MenuGroup/after"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//MenuGroup/absolutePosition"/>
- </genClasses>
- <genClasses ecoreClass="NewChild.ecore#//CustomFiller">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//CustomFiller/className"/>
- </genClasses>
- <nestedGenPackages prefix="Ncpolicy" basePackage="org.eclipse.papyrus.infra.emf.newchild"
- resource="XML" disposableProviderFactory="true" ecorePackage="NewChild.ecore#//ncpolicy">
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="NewChild.ecore#//ncpolicy/CreateIn">
- <genEnumLiterals ecoreEnumLiteral="NewChild.ecore#//ncpolicy/CreateIn/self"/>
- <genEnumLiterals ecoreEnumLiteral="NewChild.ecore#//ncpolicy/CreateIn/parent"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="NewChild.ecore#//ncpolicy/Layout">
- <genEnumLiterals ecoreEnumLiteral="NewChild.ecore#//ncpolicy/Layout/hierarchical"/>
- <genEnumLiterals ecoreEnumLiteral="NewChild.ecore#//ncpolicy/Layout/flat"/>
- <genEnumLiterals ecoreEnumLiteral="NewChild.ecore#//ncpolicy/Layout/auto"/>
- </genEnums>
- <genClasses ecoreClass="NewChild.ecore#//ncpolicy/NewEMFChildMenu">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//ncpolicy/NewEMFChildMenu/createIn"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//ncpolicy/NewEMFChildMenu/layout"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference NewChild.ecore#//ncpolicy/NewEMFChildMenu/groups"/>
- </genClasses>
- <genClasses ecoreClass="NewChild.ecore#//ncpolicy/NewChildPolicySet">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//ncpolicy/NewChildPolicySet/name"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference NewChild.ecore#//ncpolicy/NewChildPolicySet/policies"/>
- </genClasses>
- <genClasses image="false" ecoreClass="NewChild.ecore#//ncpolicy/NewChildPolicy">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//ncpolicy/NewChildPolicy/roles"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true"
- ecoreFeature="ecore:EReference NewChild.ecore#//ncpolicy/NewChildPolicy/eClasses"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//ncpolicy/NewChildPolicy/name"/>
- </genClasses>
- <genClasses ecoreClass="NewChild.ecore#//ncpolicy/FilterPolicy"/>
- <genClasses ecoreClass="NewChild.ecore#//ncpolicy/ReplacePolicy">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference NewChild.ecore#//ncpolicy/ReplacePolicy/replaceWith"/>
- </genClasses>
- <genClasses ecoreClass="NewChild.ecore#//ncpolicy/CustomPolicy">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute NewChild.ecore#//ncpolicy/CustomPolicy/className"/>
- </genClasses>
- </nestedGenPackages>
- </genPackages>
-</genmodel:GenModel>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/Model/NewchildConfiguration.xmi b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/Model/NewchildConfiguration.xmi
deleted file mode 100644
index 525eb048ff0..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/Model/NewchildConfiguration.xmi
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<newchild:NewchildConfiguration
- xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:constraints="http://www.eclipse.org/papyrus/constraints/0.9"
- xmlns:newchild="http://www.eclipse.org/papyrus/newchild"
- xmlns:ncpolicy="http://www.eclipse.org/papyrus/newchild/policy" name="Standard">
- <roots name="EObject">
- <constraints xsi:type="constraints:SimpleConstraint" name="isEObject">
- <constraintType
- href="ppe:/environment/org.eclipse.papyrus.views.properties/Model/Environment.xmi#//@constraintTypes.0" />
- <properties xsi:type="constraints:ValueProperty" name="nsUri"
- value="http://www.eclipse.org/emf/2002/Ecore" />
- <properties xsi:type="constraints:ValueProperty" name="className"
- value="EObject" />
- </constraints>
- <groups before="" after="">
- <submenus xsi:type="ncpolicy:NewEMFChildMenu" id="" name="New child"
- layout="auto" />
- <submenus xsi:type="ncpolicy:NewEMFChildMenu" name="New sibling"
- createIn="parent" layout="auto" />
- </groups>
- </roots>
-</newchild:NewchildConfiguration>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/about.html b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/about.html
deleted file mode 100644
index 82d49bf5f81..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2007</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/build.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/build.properties
deleted file mode 100644
index 8e4556d5a16..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/build.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-
-# <copyright>
-# </copyright>
-#
-# $Id$
-
-bin.includes = .,\
- META-INF/,\
- plugin.xml,\
- plugin.properties,\
- Model/,\
- about.html
-jars.compile.order = .
-source.. = src-gen/,\
- src
-output.. = bin/
-src.includes = about.html
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/plugin.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/plugin.properties
deleted file mode 100644
index ceee921a1ec..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/plugin.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# <copyright>
-# </copyright>
-#
-# $Id$
-
-pluginName = NewChild Model
-providerName = Eclipse Modeling Project
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/plugin.xml b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/plugin.xml
deleted file mode 100644
index 597e6a6d8b2..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/plugin.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension
- point="org.eclipse.emf.ecore.generated_package">
- <package
- class="org.eclipse.papyrus.infra.emf.newchild.NewchildPackage"
- uri="http://www.eclipse.org/papyrus/newchild">
- </package>
- </extension>
- <extension
- point="org.eclipse.emf.ecore.generated_package">
- <package
- class="org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage"
- uri="http://www.eclipse.org/papyrus/newchild/ncpolicy">
- </package>
- </extension>
-
-</plugin>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/CustomFiller.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/CustomFiller.java
deleted file mode 100644
index cb324ad2bec..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/CustomFiller.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Custom Filler</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.CustomFiller#getClassName <em>Class Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getCustomFiller()
- * @model
- * @generated
- */
-public interface CustomFiller extends MenuItem {
- /**
- * Returns the value of the '<em><b>Class Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Class 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>Class Name</em>' attribute.
- * @see #setClassName(String)
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getCustomFiller_ClassName()
- * @model required="true"
- * @generated
- */
- String getClassName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.CustomFiller#getClassName <em>Class Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Class Name</em>' attribute.
- * @see #getClassName()
- * @generated
- */
- void setClassName(String value);
-
-} // CustomFiller
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/Menu.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/Menu.java
deleted file mode 100644
index e92745c22cf..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/Menu.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Menu</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.Menu#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.Menu#getIcon <em>Icon</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenu()
- * @model
- * @generated
- */
-public interface Menu extends MenuContainer, MenuItem {
- /**
- * 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.emf.newchild.NewchildPackage#getMenu_Name()
- * @model required="true"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.Menu#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>Icon</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Icon</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Icon</em>' attribute.
- * @see #setIcon(String)
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenu_Icon()
- * @model
- * @generated
- */
- String getIcon();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.Menu#getIcon <em>Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Icon</em>' attribute.
- * @see #getIcon()
- * @generated
- */
- void setIcon(String value);
-
-} // Menu
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuAction.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuAction.java
deleted file mode 100644
index be0878ac0d6..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuAction.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Menu Action</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.MenuAction#getElementType <em>Element Type</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenuAction()
- * @model
- * @generated
- */
-public interface MenuAction extends MenuItem {
- /**
- * Returns the value of the '<em><b>Element Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Element 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>Element Type</em>' reference.
- * @see #setElementType(ExtendedElementTypeConfiguration)
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenuAction_ElementType()
- * @model required="true"
- * @generated
- */
- EObject getElementType();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.MenuAction#getElementType <em>Element Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Element Type</em>' reference.
- * @see #getElementType()
- * @generated
- */
- void setElementType(EObject value);
-
-} // MenuAction
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuContainer.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuContainer.java
deleted file mode 100644
index e76acc0b1cd..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuContainer.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Menu Container</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.MenuContainer#getSubmenus <em>Submenus</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenuContainer()
- * @model abstract="true"
- * @generated
- */
-public interface MenuContainer extends EObject {
- /**
- * Returns the value of the '<em><b>Submenus</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.infra.emf.newchild.MenuItem}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Submenus</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>Submenus</em>' containment reference list.
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenuContainer_Submenus()
- * @model containment="true"
- * @generated
- */
- EList<MenuItem> getSubmenus();
-
-} // MenuContainer
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuGroup.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuGroup.java
deleted file mode 100644
index 469f494f01f..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuGroup.java
+++ /dev/null
@@ -1,117 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Menu Group</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.MenuGroup#getBefore <em>Before</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.MenuGroup#getAfter <em>After</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.MenuGroup#getAbsolutePosition <em>Absolute Position</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenuGroup()
- * @model
- * @generated
- */
-public interface MenuGroup extends MenuContainer {
- /**
- * Returns the value of the '<em><b>Before</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Before</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Before</em>' attribute.
- * @see #setBefore(String)
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenuGroup_Before()
- * @model
- * @generated
- */
- String getBefore();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.MenuGroup#getBefore <em>Before</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Before</em>' attribute.
- * @see #getBefore()
- * @generated
- */
- void setBefore(String value);
-
- /**
- * Returns the value of the '<em><b>After</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>After</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>After</em>' attribute.
- * @see #setAfter(String)
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenuGroup_After()
- * @model
- * @generated
- */
- String getAfter();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.MenuGroup#getAfter <em>After</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>After</em>' attribute.
- * @see #getAfter()
- * @generated
- */
- void setAfter(String value);
-
- /**
- * Returns the value of the '<em><b>Absolute Position</b></em>' attribute.
- * The default value is <code>"top"</code>.
- * The literals are from the enumeration {@link org.eclipse.papyrus.infra.emf.newchild.MenuPosition}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Absolute Position</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Absolute Position</em>' attribute.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuPosition
- * @see #setAbsolutePosition(MenuPosition)
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenuGroup_AbsolutePosition()
- * @model default="top"
- * @generated
- */
- MenuPosition getAbsolutePosition();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.MenuGroup#getAbsolutePosition <em>Absolute Position</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Absolute Position</em>' attribute.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuPosition
- * @see #getAbsolutePosition()
- * @generated
- */
- void setAbsolutePosition(MenuPosition value);
-
-} // MenuGroup
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuItem.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuItem.java
deleted file mode 100644
index 32400ef627e..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuItem.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Menu Item</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.MenuItem#getId <em>Id</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenuItem()
- * @model abstract="true"
- * @generated
- */
-public interface MenuItem extends EObject {
- /**
- * 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.emf.newchild.NewchildPackage#getMenuItem_Id()
- * @model
- * @generated
- */
- String getId();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.MenuItem#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);
-
-} // MenuItem
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuPosition.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuPosition.java
deleted file mode 100644
index 8fca800e394..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuPosition.java
+++ /dev/null
@@ -1,230 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild;
-
-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>Menu Position</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenuPosition()
- * @model
- * @generated
- */
-public enum MenuPosition implements Enumerator {
- /**
- * The '<em><b>Top</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #TOP_VALUE
- * @generated
- * @ordered
- */
- TOP(0, "top", "top"),
-
- /**
- * The '<em><b>Bottom</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #BOTTOM_VALUE
- * @generated
- * @ordered
- */
- BOTTOM(1, "bottom", "bottom");
-
- /**
- * The '<em><b>Top</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Top</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #TOP
- * @model name="top"
- * @generated
- * @ordered
- */
- public static final int TOP_VALUE = 0;
-
- /**
- * The '<em><b>Bottom</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Bottom</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #BOTTOM
- * @model name="bottom"
- * @generated
- * @ordered
- */
- public static final int BOTTOM_VALUE = 1;
-
- /**
- * An array of all the '<em><b>Menu Position</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static final MenuPosition[] VALUES_ARRAY =
- new MenuPosition[] {
- TOP,
- BOTTOM,
- };
-
- /**
- * A public read-only list of all the '<em><b>Menu Position</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static final List<MenuPosition> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Menu Position</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static MenuPosition get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- MenuPosition result = VALUES_ARRAY[i];
- if (result.toString().equals(literal)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Menu Position</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static MenuPosition getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- MenuPosition result = VALUES_ARRAY[i];
- if (result.getName().equals(name)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Menu Position</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static MenuPosition get(int value) {
- switch (value) {
- case TOP_VALUE:
- return TOP;
- case BOTTOM_VALUE:
- return BOTTOM;
- }
- 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 MenuPosition(int value, String name, String literal) {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public int getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- 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;
- }
-
-} // MenuPosition
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuRoot.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuRoot.java
deleted file mode 100644
index 8d953da2f32..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/MenuRoot.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild;
-
-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>Menu Root</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.MenuRoot#getGroups <em>Groups</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.MenuRoot#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenuRoot()
- * @model
- * @generated
- */
-public interface MenuRoot extends MenuContainer, DisplayUnit {
- /**
- * Returns the value of the '<em><b>Groups</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.infra.emf.newchild.MenuGroup}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Groups</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>Groups</em>' containment reference list.
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getMenuRoot_Groups()
- * @model containment="true"
- * @generated
- */
- EList<MenuGroup> getGroups();
-
- /**
- * 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.emf.newchild.NewchildPackage#getMenuRoot_Name()
- * @model required="true"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.MenuRoot#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);
-
-} // MenuRoot
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/NewchildConfiguration.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/NewchildConfiguration.java
deleted file mode 100644
index 46b3f4a408c..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/NewchildConfiguration.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Configuration</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration#getRoots <em>Roots</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration#getNewChildPolicies <em>New Child Policies</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getNewchildConfiguration()
- * @model
- * @generated
- */
-public interface NewchildConfiguration extends EObject {
- /**
- * Returns the value of the '<em><b>Roots</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.infra.emf.newchild.MenuRoot}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Roots</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>Roots</em>' containment reference list.
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getNewchildConfiguration_Roots()
- * @model containment="true"
- * @generated
- */
- EList<MenuRoot> getRoots();
-
- /**
- * 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.emf.newchild.NewchildPackage#getNewchildConfiguration_Name()
- * @model required="true"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration#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>New Child Policies</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>New Child Policies</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>New Child Policies</em>' containment reference list.
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getNewchildConfiguration_NewChildPolicies()
- * @model containment="true"
- * @generated
- */
- EList<NewChildPolicySet> getNewChildPolicies();
-
-} // NewchildConfiguration
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/NewchildFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/NewchildFactory.java
deleted file mode 100644
index a4692de02e6..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/NewchildFactory.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild;
-
-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.emf.newchild.NewchildPackage
- * @generated
- */
-public interface NewchildFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- NewchildFactory eINSTANCE = org.eclipse.papyrus.infra.emf.newchild.impl.NewchildFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Configuration</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Configuration</em>'.
- * @generated
- */
- NewchildConfiguration createNewchildConfiguration();
-
- /**
- * Returns a new object of class '<em>Menu Root</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Menu Root</em>'.
- * @generated
- */
- MenuRoot createMenuRoot();
-
- /**
- * Returns a new object of class '<em>Menu</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Menu</em>'.
- * @generated
- */
- Menu createMenu();
-
- /**
- * Returns a new object of class '<em>Menu Action</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Menu Action</em>'.
- * @generated
- */
- MenuAction createMenuAction();
-
- /**
- * Returns a new object of class '<em>Separator</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Separator</em>'.
- * @generated
- */
- Separator createSeparator();
-
- /**
- * Returns a new object of class '<em>Menu Group</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Menu Group</em>'.
- * @generated
- */
- MenuGroup createMenuGroup();
-
- /**
- * Returns a new object of class '<em>Custom Filler</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Custom Filler</em>'.
- * @generated
- */
- CustomFiller createCustomFiller();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- NewchildPackage getNewchildPackage();
-
-} // NewchildFactory
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/NewchildPackage.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/NewchildPackage.java
deleted file mode 100644
index 534f82cc280..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/NewchildPackage.java
+++ /dev/null
@@ -1,1039 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild;
-
-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.emf.newchild.NewchildFactory
- * @model kind="package"
- * @generated
- */
-public interface NewchildPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNAME = "newchild";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyrus/newchild";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_PREFIX = "newchild";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- NewchildPackage eINSTANCE = org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.NewchildConfigurationImpl <em>Configuration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildConfigurationImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getNewchildConfiguration()
- * @generated
- */
- int NEWCHILD_CONFIGURATION = 0;
-
- /**
- * The feature id for the '<em><b>Roots</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEWCHILD_CONFIGURATION__ROOTS = 0;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEWCHILD_CONFIGURATION__NAME = 1;
-
- /**
- * The feature id for the '<em><b>New Child Policies</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEWCHILD_CONFIGURATION__NEW_CHILD_POLICIES = 2;
-
- /**
- * The number of structural features of the '<em>Configuration</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEWCHILD_CONFIGURATION_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuContainerImpl <em>Menu Container</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.MenuContainerImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenuContainer()
- * @generated
- */
- int MENU_CONTAINER = 3;
-
- /**
- * The feature id for the '<em><b>Submenus</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_CONTAINER__SUBMENUS = 0;
-
- /**
- * The number of structural features of the '<em>Menu Container</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_CONTAINER_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuRootImpl <em>Menu Root</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.MenuRootImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenuRoot()
- * @generated
- */
- int MENU_ROOT = 1;
-
- /**
- * The feature id for the '<em><b>Submenus</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_ROOT__SUBMENUS = MENU_CONTAINER__SUBMENUS;
-
- /**
- * The feature id for the '<em><b>Constraints</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_ROOT__CONSTRAINTS = MENU_CONTAINER_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Element Multiplicity</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_ROOT__ELEMENT_MULTIPLICITY = MENU_CONTAINER_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Groups</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_ROOT__GROUPS = MENU_CONTAINER_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_ROOT__NAME = MENU_CONTAINER_FEATURE_COUNT + 3;
-
- /**
- * The number of structural features of the '<em>Menu Root</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_ROOT_FEATURE_COUNT = MENU_CONTAINER_FEATURE_COUNT + 4;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuItemImpl <em>Menu Item</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.MenuItemImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenuItem()
- * @generated
- */
- int MENU_ITEM = 2;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_ITEM__ID = 0;
-
- /**
- * The number of structural features of the '<em>Menu Item</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_ITEM_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuImpl <em>Menu</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.MenuImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenu()
- * @generated
- */
- int MENU = 4;
-
- /**
- * The feature id for the '<em><b>Submenus</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU__SUBMENUS = MENU_CONTAINER__SUBMENUS;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU__ID = MENU_CONTAINER_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU__NAME = MENU_CONTAINER_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Icon</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU__ICON = MENU_CONTAINER_FEATURE_COUNT + 2;
-
- /**
- * The number of structural features of the '<em>Menu</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_FEATURE_COUNT = MENU_CONTAINER_FEATURE_COUNT + 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuActionImpl <em>Menu Action</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.MenuActionImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenuAction()
- * @generated
- */
- int MENU_ACTION = 5;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_ACTION__ID = MENU_ITEM__ID;
-
- /**
- * The feature id for the '<em><b>Element Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_ACTION__ELEMENT_TYPE = MENU_ITEM_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Menu Action</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_ACTION_FEATURE_COUNT = MENU_ITEM_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.SeparatorImpl <em>Separator</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.SeparatorImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getSeparator()
- * @generated
- */
- int SEPARATOR = 6;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SEPARATOR__ID = MENU_ITEM__ID;
-
- /**
- * The number of structural features of the '<em>Separator</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SEPARATOR_FEATURE_COUNT = MENU_ITEM_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuGroupImpl <em>Menu Group</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.MenuGroupImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenuGroup()
- * @generated
- */
- int MENU_GROUP = 7;
-
- /**
- * The feature id for the '<em><b>Submenus</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_GROUP__SUBMENUS = MENU_CONTAINER__SUBMENUS;
-
- /**
- * The feature id for the '<em><b>Before</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_GROUP__BEFORE = MENU_CONTAINER_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>After</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_GROUP__AFTER = MENU_CONTAINER_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Absolute Position</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_GROUP__ABSOLUTE_POSITION = MENU_CONTAINER_FEATURE_COUNT + 2;
-
- /**
- * The number of structural features of the '<em>Menu Group</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MENU_GROUP_FEATURE_COUNT = MENU_CONTAINER_FEATURE_COUNT + 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.CustomFillerImpl <em>Custom Filler</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.CustomFillerImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getCustomFiller()
- * @generated
- */
- int CUSTOM_FILLER = 8;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CUSTOM_FILLER__ID = MENU_ITEM__ID;
-
- /**
- * The feature id for the '<em><b>Class Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CUSTOM_FILLER__CLASS_NAME = MENU_ITEM_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Custom Filler</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CUSTOM_FILLER_FEATURE_COUNT = MENU_ITEM_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.MenuPosition <em>Menu Position</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuPosition
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenuPosition()
- * @generated
- */
- int MENU_POSITION = 9;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration <em>Configuration</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Configuration</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration
- * @generated
- */
- EClass getNewchildConfiguration();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration#getRoots <em>Roots</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Roots</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration#getRoots()
- * @see #getNewchildConfiguration()
- * @generated
- */
- EReference getNewchildConfiguration_Roots();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration#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.emf.newchild.NewchildConfiguration#getName()
- * @see #getNewchildConfiguration()
- * @generated
- */
- EAttribute getNewchildConfiguration_Name();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration#getNewChildPolicies <em>New Child Policies</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>New Child Policies</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration#getNewChildPolicies()
- * @see #getNewchildConfiguration()
- * @generated
- */
- EReference getNewchildConfiguration_NewChildPolicies();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.MenuRoot <em>Menu Root</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Menu Root</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuRoot
- * @generated
- */
- EClass getMenuRoot();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.newchild.MenuRoot#getGroups <em>Groups</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Groups</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuRoot#getGroups()
- * @see #getMenuRoot()
- * @generated
- */
- EReference getMenuRoot_Groups();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.MenuRoot#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.emf.newchild.MenuRoot#getName()
- * @see #getMenuRoot()
- * @generated
- */
- EAttribute getMenuRoot_Name();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.MenuItem <em>Menu Item</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Menu Item</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuItem
- * @generated
- */
- EClass getMenuItem();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.MenuItem#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.emf.newchild.MenuItem#getId()
- * @see #getMenuItem()
- * @generated
- */
- EAttribute getMenuItem_Id();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.MenuContainer <em>Menu Container</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Menu Container</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuContainer
- * @generated
- */
- EClass getMenuContainer();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.newchild.MenuContainer#getSubmenus <em>Submenus</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Submenus</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuContainer#getSubmenus()
- * @see #getMenuContainer()
- * @generated
- */
- EReference getMenuContainer_Submenus();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.Menu <em>Menu</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Menu</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.Menu
- * @generated
- */
- EClass getMenu();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.Menu#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.emf.newchild.Menu#getName()
- * @see #getMenu()
- * @generated
- */
- EAttribute getMenu_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.Menu#getIcon <em>Icon</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Icon</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.Menu#getIcon()
- * @see #getMenu()
- * @generated
- */
- EAttribute getMenu_Icon();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.MenuAction <em>Menu Action</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Menu Action</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuAction
- * @generated
- */
- EClass getMenuAction();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.infra.emf.newchild.MenuAction#getElementType <em>Element Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Element Type</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuAction#getElementType()
- * @see #getMenuAction()
- * @generated
- */
- EReference getMenuAction_ElementType();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.Separator <em>Separator</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Separator</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.Separator
- * @generated
- */
- EClass getSeparator();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.MenuGroup <em>Menu Group</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Menu Group</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuGroup
- * @generated
- */
- EClass getMenuGroup();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.MenuGroup#getBefore <em>Before</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Before</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuGroup#getBefore()
- * @see #getMenuGroup()
- * @generated
- */
- EAttribute getMenuGroup_Before();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.MenuGroup#getAfter <em>After</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>After</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuGroup#getAfter()
- * @see #getMenuGroup()
- * @generated
- */
- EAttribute getMenuGroup_After();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.MenuGroup#getAbsolutePosition <em>Absolute Position</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Absolute Position</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuGroup#getAbsolutePosition()
- * @see #getMenuGroup()
- * @generated
- */
- EAttribute getMenuGroup_AbsolutePosition();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.CustomFiller <em>Custom Filler</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Custom Filler</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.CustomFiller
- * @generated
- */
- EClass getCustomFiller();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.CustomFiller#getClassName <em>Class Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Class Name</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.CustomFiller#getClassName()
- * @see #getCustomFiller()
- * @generated
- */
- EAttribute getCustomFiller_ClassName();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.papyrus.infra.emf.newchild.MenuPosition <em>Menu Position</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for enum '<em>Menu Position</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuPosition
- * @generated
- */
- EEnum getMenuPosition();
-
- /**
- * 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
- */
- NewchildFactory getNewchildFactory();
-
- /**
- * <!-- 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.emf.newchild.impl.NewchildConfigurationImpl <em>Configuration</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildConfigurationImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getNewchildConfiguration()
- * @generated
- */
- EClass NEWCHILD_CONFIGURATION = eINSTANCE.getNewchildConfiguration();
-
- /**
- * The meta object literal for the '<em><b>Roots</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference NEWCHILD_CONFIGURATION__ROOTS = eINSTANCE.getNewchildConfiguration_Roots();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute NEWCHILD_CONFIGURATION__NAME = eINSTANCE.getNewchildConfiguration_Name();
-
- /**
- * The meta object literal for the '<em><b>New Child Policies</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference NEWCHILD_CONFIGURATION__NEW_CHILD_POLICIES = eINSTANCE.getNewchildConfiguration_NewChildPolicies();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuRootImpl <em>Menu Root</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.MenuRootImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenuRoot()
- * @generated
- */
- EClass MENU_ROOT = eINSTANCE.getMenuRoot();
-
- /**
- * The meta object literal for the '<em><b>Groups</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MENU_ROOT__GROUPS = eINSTANCE.getMenuRoot_Groups();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute MENU_ROOT__NAME = eINSTANCE.getMenuRoot_Name();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuItemImpl <em>Menu Item</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.MenuItemImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenuItem()
- * @generated
- */
- EClass MENU_ITEM = eINSTANCE.getMenuItem();
-
- /**
- * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute MENU_ITEM__ID = eINSTANCE.getMenuItem_Id();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuContainerImpl <em>Menu Container</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.MenuContainerImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenuContainer()
- * @generated
- */
- EClass MENU_CONTAINER = eINSTANCE.getMenuContainer();
-
- /**
- * The meta object literal for the '<em><b>Submenus</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MENU_CONTAINER__SUBMENUS = eINSTANCE.getMenuContainer_Submenus();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuImpl <em>Menu</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.MenuImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenu()
- * @generated
- */
- EClass MENU = eINSTANCE.getMenu();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute MENU__NAME = eINSTANCE.getMenu_Name();
-
- /**
- * The meta object literal for the '<em><b>Icon</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute MENU__ICON = eINSTANCE.getMenu_Icon();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuActionImpl <em>Menu Action</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.MenuActionImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenuAction()
- * @generated
- */
- EClass MENU_ACTION = eINSTANCE.getMenuAction();
-
- /**
- * The meta object literal for the '<em><b>Element Type</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MENU_ACTION__ELEMENT_TYPE = eINSTANCE.getMenuAction_ElementType();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.SeparatorImpl <em>Separator</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.SeparatorImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getSeparator()
- * @generated
- */
- EClass SEPARATOR = eINSTANCE.getSeparator();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuGroupImpl <em>Menu Group</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.MenuGroupImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenuGroup()
- * @generated
- */
- EClass MENU_GROUP = eINSTANCE.getMenuGroup();
-
- /**
- * The meta object literal for the '<em><b>Before</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute MENU_GROUP__BEFORE = eINSTANCE.getMenuGroup_Before();
-
- /**
- * The meta object literal for the '<em><b>After</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute MENU_GROUP__AFTER = eINSTANCE.getMenuGroup_After();
-
- /**
- * The meta object literal for the '<em><b>Absolute Position</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute MENU_GROUP__ABSOLUTE_POSITION = eINSTANCE.getMenuGroup_AbsolutePosition();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.impl.CustomFillerImpl <em>Custom Filler</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.CustomFillerImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getCustomFiller()
- * @generated
- */
- EClass CUSTOM_FILLER = eINSTANCE.getCustomFiller();
-
- /**
- * The meta object literal for the '<em><b>Class Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute CUSTOM_FILLER__CLASS_NAME = eINSTANCE.getCustomFiller_ClassName();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.MenuPosition <em>Menu Position</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.MenuPosition
- * @see org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl#getMenuPosition()
- * @generated
- */
- EEnum MENU_POSITION = eINSTANCE.getMenuPosition();
-
- }
-
-} // NewchildPackage
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/Separator.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/Separator.java
deleted file mode 100644
index 3f47ddf1dcb..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/Separator.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Separator</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.NewchildPackage#getSeparator()
- * @model
- * @generated
- */
-public interface Separator extends MenuItem {
-} // Separator
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/CustomFillerImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/CustomFillerImpl.java
deleted file mode 100644
index b1541c686af..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/CustomFillerImpl.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.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.emf.newchild.CustomFiller;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Custom Filler</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.CustomFillerImpl#getClassName <em>Class Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CustomFillerImpl extends MenuItemImpl implements CustomFiller {
- /**
- * The default value of the '{@link #getClassName() <em>Class Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getClassName()
- * @generated
- * @ordered
- */
- protected static final String CLASS_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getClassName() <em>Class Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getClassName()
- * @generated
- * @ordered
- */
- protected String className = CLASS_NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected CustomFillerImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NewchildPackage.Literals.CUSTOM_FILLER;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getClassName() {
- return className;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setClassName(String newClassName) {
- String oldClassName = className;
- className = newClassName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NewchildPackage.CUSTOM_FILLER__CLASS_NAME, oldClassName, className));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NewchildPackage.CUSTOM_FILLER__CLASS_NAME:
- return getClassName();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NewchildPackage.CUSTOM_FILLER__CLASS_NAME:
- setClassName((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NewchildPackage.CUSTOM_FILLER__CLASS_NAME:
- setClassName(CLASS_NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NewchildPackage.CUSTOM_FILLER__CLASS_NAME:
- return CLASS_NAME_EDEFAULT == null ? className != null : !CLASS_NAME_EDEFAULT.equals(className);
- }
- 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(" (className: ");
- result.append(className);
- result.append(')');
- return result.toString();
- }
-
-} // CustomFillerImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuActionImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuActionImpl.java
deleted file mode 100644
index 3bc467045b3..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuActionImpl.java
+++ /dev/null
@@ -1,172 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.papyrus.infra.emf.newchild.MenuAction;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildPackage;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Menu Action</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuActionImpl#getElementType <em>Element Type</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MenuActionImpl extends MenuItemImpl implements MenuAction {
- /**
- * The cached value of the '{@link #getElementType() <em>Element Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getElementType()
- * @generated
- * @ordered
- */
- protected EObject elementType;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected MenuActionImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NewchildPackage.Literals.MENU_ACTION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EObject getElementType() {
- if (elementType != null && elementType.eIsProxy()) {
- InternalEObject oldElementType = (InternalEObject) elementType;
- elementType = eResolveProxy(oldElementType);
- if (elementType != oldElementType) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, NewchildPackage.MENU_ACTION__ELEMENT_TYPE, oldElementType, elementType));
- }
- }
- }
- return elementType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EObject basicGetElementType() {
- return elementType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setElementType(EObject newElementType) {
- EObject oldElementType = elementType;
- elementType = newElementType;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NewchildPackage.MENU_ACTION__ELEMENT_TYPE, oldElementType, elementType));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NewchildPackage.MENU_ACTION__ELEMENT_TYPE:
- if (resolve) {
- return getElementType();
- }
- return basicGetElementType();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NewchildPackage.MENU_ACTION__ELEMENT_TYPE:
- setElementType((EObject) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NewchildPackage.MENU_ACTION__ELEMENT_TYPE:
- setElementType((EObject) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NewchildPackage.MENU_ACTION__ELEMENT_TYPE:
- return elementType != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // MenuActionImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuContainerImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuContainerImpl.java
deleted file mode 100644
index e5d1a89aebb..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuContainerImpl.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.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.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.papyrus.infra.emf.newchild.MenuContainer;
-import org.eclipse.papyrus.infra.emf.newchild.MenuItem;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Menu Container</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuContainerImpl#getSubmenus <em>Submenus</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public abstract class MenuContainerImpl extends EObjectImpl implements MenuContainer {
- /**
- * The cached value of the '{@link #getSubmenus() <em>Submenus</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getSubmenus()
- * @generated
- * @ordered
- */
- protected EList<MenuItem> submenus;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected MenuContainerImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NewchildPackage.Literals.MENU_CONTAINER;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<MenuItem> getSubmenus() {
- if (submenus == null) {
- submenus = new EObjectContainmentEList<MenuItem>(MenuItem.class, this, NewchildPackage.MENU_CONTAINER__SUBMENUS);
- }
- return submenus;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NewchildPackage.MENU_CONTAINER__SUBMENUS:
- return ((InternalEList<?>) getSubmenus()).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 NewchildPackage.MENU_CONTAINER__SUBMENUS:
- return getSubmenus();
- }
- 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 NewchildPackage.MENU_CONTAINER__SUBMENUS:
- getSubmenus().clear();
- getSubmenus().addAll((Collection<? extends MenuItem>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NewchildPackage.MENU_CONTAINER__SUBMENUS:
- getSubmenus().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NewchildPackage.MENU_CONTAINER__SUBMENUS:
- return submenus != null && !submenus.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} // MenuContainerImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuGroupImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuGroupImpl.java
deleted file mode 100644
index 8e4c7ed1adc..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuGroupImpl.java
+++ /dev/null
@@ -1,296 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.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.emf.newchild.MenuGroup;
-import org.eclipse.papyrus.infra.emf.newchild.MenuPosition;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Menu Group</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuGroupImpl#getBefore <em>Before</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuGroupImpl#getAfter <em>After</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuGroupImpl#getAbsolutePosition <em>Absolute Position</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MenuGroupImpl extends MenuContainerImpl implements MenuGroup {
- /**
- * The default value of the '{@link #getBefore() <em>Before</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBefore()
- * @generated
- * @ordered
- */
- protected static final String BEFORE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getBefore() <em>Before</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBefore()
- * @generated
- * @ordered
- */
- protected String before = BEFORE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getAfter() <em>After</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAfter()
- * @generated
- * @ordered
- */
- protected static final String AFTER_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAfter() <em>After</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAfter()
- * @generated
- * @ordered
- */
- protected String after = AFTER_EDEFAULT;
-
- /**
- * The default value of the '{@link #getAbsolutePosition() <em>Absolute Position</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAbsolutePosition()
- * @generated
- * @ordered
- */
- protected static final MenuPosition ABSOLUTE_POSITION_EDEFAULT = MenuPosition.TOP;
-
- /**
- * The cached value of the '{@link #getAbsolutePosition() <em>Absolute Position</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAbsolutePosition()
- * @generated
- * @ordered
- */
- protected MenuPosition absolutePosition = ABSOLUTE_POSITION_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected MenuGroupImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NewchildPackage.Literals.MENU_GROUP;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getBefore() {
- return before;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBefore(String newBefore) {
- String oldBefore = before;
- before = newBefore;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NewchildPackage.MENU_GROUP__BEFORE, oldBefore, before));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getAfter() {
- return after;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setAfter(String newAfter) {
- String oldAfter = after;
- after = newAfter;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NewchildPackage.MENU_GROUP__AFTER, oldAfter, after));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public MenuPosition getAbsolutePosition() {
- return absolutePosition;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setAbsolutePosition(MenuPosition newAbsolutePosition) {
- MenuPosition oldAbsolutePosition = absolutePosition;
- absolutePosition = newAbsolutePosition == null ? ABSOLUTE_POSITION_EDEFAULT : newAbsolutePosition;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NewchildPackage.MENU_GROUP__ABSOLUTE_POSITION, oldAbsolutePosition, absolutePosition));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NewchildPackage.MENU_GROUP__BEFORE:
- return getBefore();
- case NewchildPackage.MENU_GROUP__AFTER:
- return getAfter();
- case NewchildPackage.MENU_GROUP__ABSOLUTE_POSITION:
- return getAbsolutePosition();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NewchildPackage.MENU_GROUP__BEFORE:
- setBefore((String) newValue);
- return;
- case NewchildPackage.MENU_GROUP__AFTER:
- setAfter((String) newValue);
- return;
- case NewchildPackage.MENU_GROUP__ABSOLUTE_POSITION:
- setAbsolutePosition((MenuPosition) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NewchildPackage.MENU_GROUP__BEFORE:
- setBefore(BEFORE_EDEFAULT);
- return;
- case NewchildPackage.MENU_GROUP__AFTER:
- setAfter(AFTER_EDEFAULT);
- return;
- case NewchildPackage.MENU_GROUP__ABSOLUTE_POSITION:
- setAbsolutePosition(ABSOLUTE_POSITION_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NewchildPackage.MENU_GROUP__BEFORE:
- return BEFORE_EDEFAULT == null ? before != null : !BEFORE_EDEFAULT.equals(before);
- case NewchildPackage.MENU_GROUP__AFTER:
- return AFTER_EDEFAULT == null ? after != null : !AFTER_EDEFAULT.equals(after);
- case NewchildPackage.MENU_GROUP__ABSOLUTE_POSITION:
- return absolutePosition != ABSOLUTE_POSITION_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(" (before: ");
- result.append(before);
- result.append(", after: ");
- result.append(after);
- result.append(", absolutePosition: ");
- result.append(absolutePosition);
- result.append(')');
- return result.toString();
- }
-
-} // MenuGroupImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuImpl.java
deleted file mode 100644
index 2a102a2e753..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuImpl.java
+++ /dev/null
@@ -1,334 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.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.emf.newchild.Menu;
-import org.eclipse.papyrus.infra.emf.newchild.MenuItem;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Menu</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuImpl#getId <em>Id</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuImpl#getIcon <em>Icon</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MenuImpl extends MenuContainerImpl implements Menu {
- /**
- * 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 #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 #getIcon() <em>Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getIcon()
- * @generated
- * @ordered
- */
- protected static final String ICON_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getIcon() <em>Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getIcon()
- * @generated
- * @ordered
- */
- protected String icon = ICON_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected MenuImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NewchildPackage.Literals.MENU;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getId() {
- return id;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setId(String newId) {
- String oldId = id;
- id = newId;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NewchildPackage.MENU__ID, oldId, id));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NewchildPackage.MENU__NAME, oldName, name));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getIcon() {
- return icon;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setIcon(String newIcon) {
- String oldIcon = icon;
- icon = newIcon;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NewchildPackage.MENU__ICON, oldIcon, icon));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NewchildPackage.MENU__ID:
- return getId();
- case NewchildPackage.MENU__NAME:
- return getName();
- case NewchildPackage.MENU__ICON:
- return getIcon();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NewchildPackage.MENU__ID:
- setId((String) newValue);
- return;
- case NewchildPackage.MENU__NAME:
- setName((String) newValue);
- return;
- case NewchildPackage.MENU__ICON:
- setIcon((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NewchildPackage.MENU__ID:
- setId(ID_EDEFAULT);
- return;
- case NewchildPackage.MENU__NAME:
- setName(NAME_EDEFAULT);
- return;
- case NewchildPackage.MENU__ICON:
- setIcon(ICON_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NewchildPackage.MENU__ID:
- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
- case NewchildPackage.MENU__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case NewchildPackage.MENU__ICON:
- return ICON_EDEFAULT == null ? icon != null : !ICON_EDEFAULT.equals(icon);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
- if (baseClass == MenuItem.class) {
- switch (derivedFeatureID) {
- case NewchildPackage.MENU__ID:
- return NewchildPackage.MENU_ITEM__ID;
- default:
- return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
- if (baseClass == MenuItem.class) {
- switch (baseFeatureID) {
- case NewchildPackage.MENU_ITEM__ID:
- return NewchildPackage.MENU__ID;
- default:
- return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (id: ");
- result.append(id);
- result.append(", name: ");
- result.append(name);
- result.append(", icon: ");
- result.append(icon);
- result.append(')');
- return result.toString();
- }
-
-} // MenuImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuItemImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuItemImpl.java
deleted file mode 100644
index f0ed49c5ff5..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuItemImpl.java
+++ /dev/null
@@ -1,178 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.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.emf.newchild.MenuItem;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Menu Item</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuItemImpl#getId <em>Id</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public abstract class MenuItemImpl extends EObjectImpl implements MenuItem {
- /**
- * 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;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected MenuItemImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NewchildPackage.Literals.MENU_ITEM;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getId() {
- return id;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setId(String newId) {
- String oldId = id;
- id = newId;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NewchildPackage.MENU_ITEM__ID, oldId, id));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NewchildPackage.MENU_ITEM__ID:
- return getId();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NewchildPackage.MENU_ITEM__ID:
- setId((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NewchildPackage.MENU_ITEM__ID:
- setId(ID_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NewchildPackage.MENU_ITEM__ID:
- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
- }
- 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(" (id: ");
- result.append(id);
- result.append(')');
- return result.toString();
- }
-
-} // MenuItemImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuRootImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuRootImpl.java
deleted file mode 100644
index 27fde8e7405..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/MenuRootImpl.java
+++ /dev/null
@@ -1,396 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.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.EObjectContainmentWithInverseEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.papyrus.infra.constraints.ConstraintDescriptor;
-import org.eclipse.papyrus.infra.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.infra.constraints.DisplayUnit;
-import org.eclipse.papyrus.infra.emf.newchild.MenuGroup;
-import org.eclipse.papyrus.infra.emf.newchild.MenuRoot;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Menu Root</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuRootImpl#getConstraints <em>Constraints</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuRootImpl#getElementMultiplicity <em>Element Multiplicity</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuRootImpl#getGroups <em>Groups</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.MenuRootImpl#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MenuRootImpl extends MenuContainerImpl implements MenuRoot {
- /**
- * The cached value of the '{@link #getConstraints() <em>Constraints</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getConstraints()
- * @generated
- * @ordered
- */
- protected EList<ConstraintDescriptor> constraints;
-
- /**
- * The default value of the '{@link #getElementMultiplicity() <em>Element Multiplicity</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getElementMultiplicity()
- * @generated
- * @ordered
- */
- protected static final int ELEMENT_MULTIPLICITY_EDEFAULT = 1;
-
- /**
- * The cached value of the '{@link #getElementMultiplicity() <em>Element Multiplicity</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getElementMultiplicity()
- * @generated
- * @ordered
- */
- protected int elementMultiplicity = ELEMENT_MULTIPLICITY_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getGroups() <em>Groups</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getGroups()
- * @generated
- * @ordered
- */
- protected EList<MenuGroup> groups;
-
- /**
- * 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 MenuRootImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NewchildPackage.Literals.MENU_ROOT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<ConstraintDescriptor> getConstraints() {
- if (constraints == null) {
- constraints = new EObjectContainmentWithInverseEList<ConstraintDescriptor>(ConstraintDescriptor.class, this, NewchildPackage.MENU_ROOT__CONSTRAINTS, ConstraintsPackage.CONSTRAINT_DESCRIPTOR__DISPLAY);
- }
- return constraints;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public int getElementMultiplicity() {
- return elementMultiplicity;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setElementMultiplicity(int newElementMultiplicity) {
- int oldElementMultiplicity = elementMultiplicity;
- elementMultiplicity = newElementMultiplicity;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NewchildPackage.MENU_ROOT__ELEMENT_MULTIPLICITY, oldElementMultiplicity, elementMultiplicity));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<MenuGroup> getGroups() {
- if (groups == null) {
- groups = new EObjectContainmentEList<MenuGroup>(MenuGroup.class, this, NewchildPackage.MENU_ROOT__GROUPS);
- }
- return groups;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NewchildPackage.MENU_ROOT__NAME, oldName, name));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NewchildPackage.MENU_ROOT__CONSTRAINTS:
- return ((InternalEList<InternalEObject>) (InternalEList<?>) getConstraints()).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 NewchildPackage.MENU_ROOT__CONSTRAINTS:
- return ((InternalEList<?>) getConstraints()).basicRemove(otherEnd, msgs);
- case NewchildPackage.MENU_ROOT__GROUPS:
- return ((InternalEList<?>) getGroups()).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 NewchildPackage.MENU_ROOT__CONSTRAINTS:
- return getConstraints();
- case NewchildPackage.MENU_ROOT__ELEMENT_MULTIPLICITY:
- return getElementMultiplicity();
- case NewchildPackage.MENU_ROOT__GROUPS:
- return getGroups();
- case NewchildPackage.MENU_ROOT__NAME:
- return getName();
- }
- 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 NewchildPackage.MENU_ROOT__CONSTRAINTS:
- getConstraints().clear();
- getConstraints().addAll((Collection<? extends ConstraintDescriptor>) newValue);
- return;
- case NewchildPackage.MENU_ROOT__ELEMENT_MULTIPLICITY:
- setElementMultiplicity((Integer) newValue);
- return;
- case NewchildPackage.MENU_ROOT__GROUPS:
- getGroups().clear();
- getGroups().addAll((Collection<? extends MenuGroup>) newValue);
- return;
- case NewchildPackage.MENU_ROOT__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 NewchildPackage.MENU_ROOT__CONSTRAINTS:
- getConstraints().clear();
- return;
- case NewchildPackage.MENU_ROOT__ELEMENT_MULTIPLICITY:
- setElementMultiplicity(ELEMENT_MULTIPLICITY_EDEFAULT);
- return;
- case NewchildPackage.MENU_ROOT__GROUPS:
- getGroups().clear();
- return;
- case NewchildPackage.MENU_ROOT__NAME:
- setName(NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NewchildPackage.MENU_ROOT__CONSTRAINTS:
- return constraints != null && !constraints.isEmpty();
- case NewchildPackage.MENU_ROOT__ELEMENT_MULTIPLICITY:
- return elementMultiplicity != ELEMENT_MULTIPLICITY_EDEFAULT;
- case NewchildPackage.MENU_ROOT__GROUPS:
- return groups != null && !groups.isEmpty();
- case NewchildPackage.MENU_ROOT__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
- if (baseClass == DisplayUnit.class) {
- switch (derivedFeatureID) {
- case NewchildPackage.MENU_ROOT__CONSTRAINTS:
- return ConstraintsPackage.DISPLAY_UNIT__CONSTRAINTS;
- case NewchildPackage.MENU_ROOT__ELEMENT_MULTIPLICITY:
- return ConstraintsPackage.DISPLAY_UNIT__ELEMENT_MULTIPLICITY;
- default:
- return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
- if (baseClass == DisplayUnit.class) {
- switch (baseFeatureID) {
- case ConstraintsPackage.DISPLAY_UNIT__CONSTRAINTS:
- return NewchildPackage.MENU_ROOT__CONSTRAINTS;
- case ConstraintsPackage.DISPLAY_UNIT__ELEMENT_MULTIPLICITY:
- return NewchildPackage.MENU_ROOT__ELEMENT_MULTIPLICITY;
- default:
- return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (elementMultiplicity: ");
- result.append(elementMultiplicity);
- result.append(", name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} // MenuRootImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/NewchildConfigurationImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/NewchildConfigurationImpl.java
deleted file mode 100644
index 3cdcb8e6893..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/NewchildConfigurationImpl.java
+++ /dev/null
@@ -1,278 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.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.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.papyrus.infra.emf.newchild.MenuRoot;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildPackage;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Configuration</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.NewchildConfigurationImpl#getRoots <em>Roots</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.NewchildConfigurationImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.impl.NewchildConfigurationImpl#getNewChildPolicies <em>New Child Policies</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class NewchildConfigurationImpl extends EObjectImpl implements NewchildConfiguration {
- /**
- * The cached value of the '{@link #getRoots() <em>Roots</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRoots()
- * @generated
- * @ordered
- */
- protected EList<MenuRoot> roots;
-
- /**
- * 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 #getNewChildPolicies() <em>New Child Policies</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getNewChildPolicies()
- * @generated
- * @ordered
- */
- protected EList<NewChildPolicySet> newChildPolicies;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected NewchildConfigurationImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NewchildPackage.Literals.NEWCHILD_CONFIGURATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<MenuRoot> getRoots() {
- if (roots == null) {
- roots = new EObjectContainmentEList<MenuRoot>(MenuRoot.class, this, NewchildPackage.NEWCHILD_CONFIGURATION__ROOTS);
- }
- return roots;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NewchildPackage.NEWCHILD_CONFIGURATION__NAME, oldName, name));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<NewChildPolicySet> getNewChildPolicies() {
- if (newChildPolicies == null) {
- newChildPolicies = new EObjectContainmentEList<NewChildPolicySet>(NewChildPolicySet.class, this, NewchildPackage.NEWCHILD_CONFIGURATION__NEW_CHILD_POLICIES);
- }
- return newChildPolicies;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NewchildPackage.NEWCHILD_CONFIGURATION__ROOTS:
- return ((InternalEList<?>) getRoots()).basicRemove(otherEnd, msgs);
- case NewchildPackage.NEWCHILD_CONFIGURATION__NEW_CHILD_POLICIES:
- return ((InternalEList<?>) getNewChildPolicies()).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 NewchildPackage.NEWCHILD_CONFIGURATION__ROOTS:
- return getRoots();
- case NewchildPackage.NEWCHILD_CONFIGURATION__NAME:
- return getName();
- case NewchildPackage.NEWCHILD_CONFIGURATION__NEW_CHILD_POLICIES:
- return getNewChildPolicies();
- }
- 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 NewchildPackage.NEWCHILD_CONFIGURATION__ROOTS:
- getRoots().clear();
- getRoots().addAll((Collection<? extends MenuRoot>) newValue);
- return;
- case NewchildPackage.NEWCHILD_CONFIGURATION__NAME:
- setName((String) newValue);
- return;
- case NewchildPackage.NEWCHILD_CONFIGURATION__NEW_CHILD_POLICIES:
- getNewChildPolicies().clear();
- getNewChildPolicies().addAll((Collection<? extends NewChildPolicySet>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NewchildPackage.NEWCHILD_CONFIGURATION__ROOTS:
- getRoots().clear();
- return;
- case NewchildPackage.NEWCHILD_CONFIGURATION__NAME:
- setName(NAME_EDEFAULT);
- return;
- case NewchildPackage.NEWCHILD_CONFIGURATION__NEW_CHILD_POLICIES:
- getNewChildPolicies().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NewchildPackage.NEWCHILD_CONFIGURATION__ROOTS:
- return roots != null && !roots.isEmpty();
- case NewchildPackage.NEWCHILD_CONFIGURATION__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case NewchildPackage.NEWCHILD_CONFIGURATION__NEW_CHILD_POLICIES:
- return newChildPolicies != null && !newChildPolicies.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();
- }
-
-} // NewchildConfigurationImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/NewchildFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/NewchildFactoryImpl.java
deleted file mode 100644
index e41b75db1f6..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/NewchildFactoryImpl.java
+++ /dev/null
@@ -1,247 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.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.emf.newchild.CustomFiller;
-import org.eclipse.papyrus.infra.emf.newchild.Menu;
-import org.eclipse.papyrus.infra.emf.newchild.MenuAction;
-import org.eclipse.papyrus.infra.emf.newchild.MenuGroup;
-import org.eclipse.papyrus.infra.emf.newchild.MenuPosition;
-import org.eclipse.papyrus.infra.emf.newchild.MenuRoot;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildFactory;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildPackage;
-import org.eclipse.papyrus.infra.emf.newchild.Separator;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class NewchildFactoryImpl extends EFactoryImpl implements NewchildFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static NewchildFactory init() {
- try {
- NewchildFactory theNewchildFactory = (NewchildFactory) EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/newchild");
- if (theNewchildFactory != null) {
- return theNewchildFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new NewchildFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NewchildFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case NewchildPackage.NEWCHILD_CONFIGURATION:
- return createNewchildConfiguration();
- case NewchildPackage.MENU_ROOT:
- return createMenuRoot();
- case NewchildPackage.MENU:
- return createMenu();
- case NewchildPackage.MENU_ACTION:
- return createMenuAction();
- case NewchildPackage.SEPARATOR:
- return createSeparator();
- case NewchildPackage.MENU_GROUP:
- return createMenuGroup();
- case NewchildPackage.CUSTOM_FILLER:
- return createCustomFiller();
- 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 NewchildPackage.MENU_POSITION:
- return createMenuPositionFromString(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 NewchildPackage.MENU_POSITION:
- return convertMenuPositionToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NewchildConfiguration createNewchildConfiguration() {
- NewchildConfigurationImpl newchildConfiguration = new NewchildConfigurationImpl();
- return newchildConfiguration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public MenuRoot createMenuRoot() {
- MenuRootImpl menuRoot = new MenuRootImpl();
- return menuRoot;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Menu createMenu() {
- MenuImpl menu = new MenuImpl();
- return menu;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public MenuAction createMenuAction() {
- MenuActionImpl menuAction = new MenuActionImpl();
- return menuAction;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Separator createSeparator() {
- SeparatorImpl separator = new SeparatorImpl();
- return separator;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public MenuGroup createMenuGroup() {
- MenuGroupImpl menuGroup = new MenuGroupImpl();
- return menuGroup;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public CustomFiller createCustomFiller() {
- CustomFillerImpl customFiller = new CustomFillerImpl();
- return customFiller;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public MenuPosition createMenuPositionFromString(EDataType eDataType, String initialValue) {
- MenuPosition result = MenuPosition.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 convertMenuPositionToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NewchildPackage getNewchildPackage() {
- return (NewchildPackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static NewchildPackage getPackage() {
- return NewchildPackage.eINSTANCE;
- }
-
-} // NewchildFactoryImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/NewchildPackageImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/NewchildPackageImpl.java
deleted file mode 100644
index 4aae0432385..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/NewchildPackageImpl.java
+++ /dev/null
@@ -1,599 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.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.emf.newchild.CustomFiller;
-import org.eclipse.papyrus.infra.emf.newchild.Menu;
-import org.eclipse.papyrus.infra.emf.newchild.MenuAction;
-import org.eclipse.papyrus.infra.emf.newchild.MenuContainer;
-import org.eclipse.papyrus.infra.emf.newchild.MenuGroup;
-import org.eclipse.papyrus.infra.emf.newchild.MenuItem;
-import org.eclipse.papyrus.infra.emf.newchild.MenuPosition;
-import org.eclipse.papyrus.infra.emf.newchild.MenuRoot;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildConfiguration;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildFactory;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildPackage;
-import org.eclipse.papyrus.infra.emf.newchild.Separator;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl;
-import org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage;
-import org.eclipse.uml2.types.TypesPackage;
-
-
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class NewchildPackageImpl extends EPackageImpl implements NewchildPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass newchildConfigurationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass menuRootEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass menuItemEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass menuContainerEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass menuEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass menuActionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass separatorEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass menuGroupEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass customFillerEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EEnum menuPositionEEnum = 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.emf.newchild.NewchildPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private NewchildPackageImpl() {
- super(eNS_URI, NewchildFactory.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 NewchildPackage#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 NewchildPackage init() {
- if (isInited) {
- return (NewchildPackage) EPackage.Registry.INSTANCE.getEPackage(NewchildPackage.eNS_URI);
- }
-
- // Obtain or create and register package
- NewchildPackageImpl theNewchildPackage = (NewchildPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof NewchildPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new NewchildPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- ConstraintsPackage.eINSTANCE.eClass();
- ExtendedtypesPackage.eINSTANCE.eClass();
- TypesPackage.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- NcpolicyPackageImpl theNcpolicyPackage = (NcpolicyPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(NcpolicyPackage.eNS_URI) instanceof NcpolicyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NcpolicyPackage.eNS_URI)
- : NcpolicyPackage.eINSTANCE);
-
- // Create package meta-data objects
- theNewchildPackage.createPackageContents();
- theNcpolicyPackage.createPackageContents();
-
- // Initialize created meta-data
- theNewchildPackage.initializePackageContents();
- theNcpolicyPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theNewchildPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(NewchildPackage.eNS_URI, theNewchildPackage);
- return theNewchildPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getNewchildConfiguration() {
- return newchildConfigurationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getNewchildConfiguration_Roots() {
- return (EReference) newchildConfigurationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getNewchildConfiguration_Name() {
- return (EAttribute) newchildConfigurationEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getNewchildConfiguration_NewChildPolicies() {
- return (EReference) newchildConfigurationEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getMenuRoot() {
- return menuRootEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getMenuRoot_Groups() {
- return (EReference) menuRootEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getMenuRoot_Name() {
- return (EAttribute) menuRootEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getMenuItem() {
- return menuItemEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getMenuItem_Id() {
- return (EAttribute) menuItemEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getMenuContainer() {
- return menuContainerEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getMenuContainer_Submenus() {
- return (EReference) menuContainerEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getMenu() {
- return menuEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getMenu_Name() {
- return (EAttribute) menuEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getMenu_Icon() {
- return (EAttribute) menuEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getMenuAction() {
- return menuActionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getMenuAction_ElementType() {
- return (EReference) menuActionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getSeparator() {
- return separatorEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getMenuGroup() {
- return menuGroupEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getMenuGroup_Before() {
- return (EAttribute) menuGroupEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getMenuGroup_After() {
- return (EAttribute) menuGroupEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getMenuGroup_AbsolutePosition() {
- return (EAttribute) menuGroupEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getCustomFiller() {
- return customFillerEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getCustomFiller_ClassName() {
- return (EAttribute) customFillerEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EEnum getMenuPosition() {
- return menuPositionEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NewchildFactory getNewchildFactory() {
- return (NewchildFactory) 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
- newchildConfigurationEClass = createEClass(NEWCHILD_CONFIGURATION);
- createEReference(newchildConfigurationEClass, NEWCHILD_CONFIGURATION__ROOTS);
- createEAttribute(newchildConfigurationEClass, NEWCHILD_CONFIGURATION__NAME);
- createEReference(newchildConfigurationEClass, NEWCHILD_CONFIGURATION__NEW_CHILD_POLICIES);
-
- menuRootEClass = createEClass(MENU_ROOT);
- createEReference(menuRootEClass, MENU_ROOT__GROUPS);
- createEAttribute(menuRootEClass, MENU_ROOT__NAME);
-
- menuItemEClass = createEClass(MENU_ITEM);
- createEAttribute(menuItemEClass, MENU_ITEM__ID);
-
- menuContainerEClass = createEClass(MENU_CONTAINER);
- createEReference(menuContainerEClass, MENU_CONTAINER__SUBMENUS);
-
- menuEClass = createEClass(MENU);
- createEAttribute(menuEClass, MENU__NAME);
- createEAttribute(menuEClass, MENU__ICON);
-
- menuActionEClass = createEClass(MENU_ACTION);
- createEReference(menuActionEClass, MENU_ACTION__ELEMENT_TYPE);
-
- separatorEClass = createEClass(SEPARATOR);
-
- menuGroupEClass = createEClass(MENU_GROUP);
- createEAttribute(menuGroupEClass, MENU_GROUP__BEFORE);
- createEAttribute(menuGroupEClass, MENU_GROUP__AFTER);
- createEAttribute(menuGroupEClass, MENU_GROUP__ABSOLUTE_POSITION);
-
- customFillerEClass = createEClass(CUSTOM_FILLER);
- createEAttribute(customFillerEClass, CUSTOM_FILLER__CLASS_NAME);
-
- // Create enums
- menuPositionEEnum = createEEnum(MENU_POSITION);
- }
-
- /**
- * <!-- 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
- NcpolicyPackage theNcpolicyPackage = (NcpolicyPackage) EPackage.Registry.INSTANCE.getEPackage(NcpolicyPackage.eNS_URI);
- EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
- ConstraintsPackage theConstraintsPackage = (ConstraintsPackage) EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI);
- ExtendedtypesPackage theExtendedtypesPackage = (ExtendedtypesPackage) EPackage.Registry.INSTANCE.getEPackage(ExtendedtypesPackage.eNS_URI);
-
- // Add subpackages
- getESubpackages().add(theNcpolicyPackage);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- menuRootEClass.getESuperTypes().add(this.getMenuContainer());
- menuRootEClass.getESuperTypes().add(theConstraintsPackage.getDisplayUnit());
- menuEClass.getESuperTypes().add(this.getMenuContainer());
- menuEClass.getESuperTypes().add(this.getMenuItem());
- menuActionEClass.getESuperTypes().add(this.getMenuItem());
- separatorEClass.getESuperTypes().add(this.getMenuItem());
- menuGroupEClass.getESuperTypes().add(this.getMenuContainer());
- customFillerEClass.getESuperTypes().add(this.getMenuItem());
-
- // Initialize classes and features; add operations and parameters
- initEClass(newchildConfigurationEClass, NewchildConfiguration.class, "NewchildConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getNewchildConfiguration_Roots(), this.getMenuRoot(), null, "roots", null, 0, -1, NewchildConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
- initEAttribute(getNewchildConfiguration_Name(), theEcorePackage.getEString(), "name", null, 1, 1, NewchildConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getNewchildConfiguration_NewChildPolicies(), theNcpolicyPackage.getNewChildPolicySet(), null, "newChildPolicies", null, 0, -1, NewchildConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
- !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(menuRootEClass, MenuRoot.class, "MenuRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getMenuRoot_Groups(), this.getMenuGroup(), null, "groups", null, 0, -1, MenuRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMenuRoot_Name(), theEcorePackage.getEString(), "name", null, 1, 1, MenuRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(menuItemEClass, MenuItem.class, "MenuItem", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getMenuItem_Id(), theEcorePackage.getEString(), "id", null, 0, 1, MenuItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(menuContainerEClass, MenuContainer.class, "MenuContainer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getMenuContainer_Submenus(), this.getMenuItem(), null, "submenus", null, 0, -1, MenuContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(menuEClass, Menu.class, "Menu", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getMenu_Name(), ecorePackage.getEString(), "name", null, 1, 1, Menu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMenu_Icon(), theEcorePackage.getEString(), "icon", null, 0, 1, Menu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(menuActionEClass, MenuAction.class, "MenuAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getMenuAction_ElementType(), theEcorePackage.getEObject(), null, "elementType", null, 1, 1, MenuAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(separatorEClass, Separator.class, "Separator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(menuGroupEClass, MenuGroup.class, "MenuGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getMenuGroup_Before(), theEcorePackage.getEString(), "before", null, 0, 1, MenuGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMenuGroup_After(), theEcorePackage.getEString(), "after", null, 0, 1, MenuGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMenuGroup_AbsolutePosition(), this.getMenuPosition(), "absolutePosition", "top", 0, 1, MenuGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(customFillerEClass, CustomFiller.class, "CustomFiller", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getCustomFiller_ClassName(), theEcorePackage.getEString(), "className", null, 1, 1, CustomFiller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Initialize enums and add enum literals
- initEEnum(menuPositionEEnum, MenuPosition.class, "MenuPosition");
- addEEnumLiteral(menuPositionEEnum, MenuPosition.TOP);
- addEEnumLiteral(menuPositionEEnum, MenuPosition.BOTTOM);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} // NewchildPackageImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/SeparatorImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/SeparatorImpl.java
deleted file mode 100644
index 1a0298acd71..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/impl/SeparatorImpl.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildPackage;
-import org.eclipse.papyrus.infra.emf.newchild.Separator;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Separator</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class SeparatorImpl extends MenuItemImpl implements Separator {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected SeparatorImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NewchildPackage.Literals.SEPARATOR;
- }
-
-} // SeparatorImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/CreateIn.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/CreateIn.java
deleted file mode 100644
index dd7eb405443..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/CreateIn.java
+++ /dev/null
@@ -1,230 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy;
-
-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>Create In</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getCreateIn()
- * @model
- * @generated
- */
-public enum CreateIn implements Enumerator {
- /**
- * The '<em><b>Self</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #SELF_VALUE
- * @generated
- * @ordered
- */
- SELF(0, "self", "self"),
-
- /**
- * The '<em><b>Parent</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #PARENT_VALUE
- * @generated
- * @ordered
- */
- PARENT(1, "parent", "parent");
-
- /**
- * The '<em><b>Self</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Self</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #SELF
- * @model name="self"
- * @generated
- * @ordered
- */
- public static final int SELF_VALUE = 0;
-
- /**
- * The '<em><b>Parent</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Parent</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #PARENT
- * @model name="parent"
- * @generated
- * @ordered
- */
- public static final int PARENT_VALUE = 1;
-
- /**
- * An array of all the '<em><b>Create In</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static final CreateIn[] VALUES_ARRAY =
- new CreateIn[] {
- SELF,
- PARENT,
- };
-
- /**
- * A public read-only list of all the '<em><b>Create In</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static final List<CreateIn> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Create In</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static CreateIn get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- CreateIn result = VALUES_ARRAY[i];
- if (result.toString().equals(literal)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Create In</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static CreateIn getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- CreateIn result = VALUES_ARRAY[i];
- if (result.getName().equals(name)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Create In</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static CreateIn get(int value) {
- switch (value) {
- case SELF_VALUE:
- return SELF;
- case PARENT_VALUE:
- return PARENT;
- }
- 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 CreateIn(int value, String name, String literal) {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public int getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- 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;
- }
-
-} // CreateIn
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/CustomPolicy.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/CustomPolicy.java
deleted file mode 100644
index 6ba0f6337fd..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/CustomPolicy.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Custom Policy</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CustomPolicy#getClassName <em>Class Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getCustomPolicy()
- * @model
- * @generated
- */
-public interface CustomPolicy extends NewChildPolicy {
- /**
- * Returns the value of the '<em><b>Class Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Class 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>Class Name</em>' attribute.
- * @see #setClassName(String)
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getCustomPolicy_ClassName()
- * @model required="true"
- * @generated
- */
- String getClassName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CustomPolicy#getClassName <em>Class Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Class Name</em>' attribute.
- * @see #getClassName()
- * @generated
- */
- void setClassName(String value);
-
-} // CustomPolicy
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/FilterPolicy.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/FilterPolicy.java
deleted file mode 100644
index bf83eed76cd..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/FilterPolicy.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Filter Policy</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getFilterPolicy()
- * @model
- * @generated
- */
-public interface FilterPolicy extends NewChildPolicy {
-} // FilterPolicy
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/Layout.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/Layout.java
deleted file mode 100644
index 17ed63ae522..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/Layout.java
+++ /dev/null
@@ -1,259 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy;
-
-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>Layout</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getLayout()
- * @model
- * @generated
- */
-public enum Layout implements Enumerator {
- /**
- * The '<em><b>Hierarchical</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #HIERARCHICAL_VALUE
- * @generated
- * @ordered
- */
- HIERARCHICAL(0, "hierarchical", "hierarchical"),
-
- /**
- * The '<em><b>Flat</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #FLAT_VALUE
- * @generated
- * @ordered
- */
- FLAT(1, "flat", "flat"),
-
- /**
- * The '<em><b>Auto</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #AUTO_VALUE
- * @generated
- * @ordered
- */
- AUTO(2, "auto", "auto");
-
- /**
- * The '<em><b>Hierarchical</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Hierarchical</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #HIERARCHICAL
- * @model name="hierarchical"
- * @generated
- * @ordered
- */
- public static final int HIERARCHICAL_VALUE = 0;
-
- /**
- * The '<em><b>Flat</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Flat</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #FLAT
- * @model name="flat"
- * @generated
- * @ordered
- */
- public static final int FLAT_VALUE = 1;
-
- /**
- * The '<em><b>Auto</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Auto</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #AUTO
- * @model name="auto"
- * @generated
- * @ordered
- */
- public static final int AUTO_VALUE = 2;
-
- /**
- * An array of all the '<em><b>Layout</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static final Layout[] VALUES_ARRAY =
- new Layout[] {
- HIERARCHICAL,
- FLAT,
- AUTO,
- };
-
- /**
- * A public read-only list of all the '<em><b>Layout</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static final List<Layout> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Layout</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static Layout get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- Layout result = VALUES_ARRAY[i];
- if (result.toString().equals(literal)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Layout</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static Layout getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- Layout result = VALUES_ARRAY[i];
- if (result.getName().equals(name)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Layout</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static Layout get(int value) {
- switch (value) {
- case HIERARCHICAL_VALUE:
- return HIERARCHICAL;
- case FLAT_VALUE:
- return FLAT;
- case AUTO_VALUE:
- return AUTO;
- }
- 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 Layout(int value, String name, String literal) {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public int getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- 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;
- }
-
-} // Layout
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NcpolicyFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NcpolicyFactory.java
deleted file mode 100644
index 90cb737ccdf..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NcpolicyFactory.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy;
-
-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.emf.newchild.ncpolicy.NcpolicyPackage
- * @generated
- */
-public interface NcpolicyFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- NcpolicyFactory eINSTANCE = org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>New EMF Child Menu</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>New EMF Child Menu</em>'.
- * @generated
- */
- NewEMFChildMenu createNewEMFChildMenu();
-
- /**
- * Returns a new object of class '<em>New Child Policy Set</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>New Child Policy Set</em>'.
- * @generated
- */
- NewChildPolicySet createNewChildPolicySet();
-
- /**
- * Returns a new object of class '<em>Filter Policy</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Filter Policy</em>'.
- * @generated
- */
- FilterPolicy createFilterPolicy();
-
- /**
- * Returns a new object of class '<em>Replace Policy</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Replace Policy</em>'.
- * @generated
- */
- ReplacePolicy createReplacePolicy();
-
- /**
- * Returns a new object of class '<em>Custom Policy</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Custom Policy</em>'.
- * @generated
- */
- CustomPolicy createCustomPolicy();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- NcpolicyPackage getNcpolicyPackage();
-
-} // NcpolicyFactory
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NcpolicyPackage.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NcpolicyPackage.java
deleted file mode 100644
index 133f50fea3f..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NcpolicyPackage.java
+++ /dev/null
@@ -1,881 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy;
-
-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.papyrus.infra.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.infra.emf.newchild.NewchildPackage;
-
-/**
- * <!-- 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.emf.newchild.ncpolicy.NcpolicyFactory
- * @model kind="package"
- * @generated
- */
-public interface NcpolicyPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNAME = "ncpolicy";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyrus/newchild/policy";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_PREFIX = "ncpolicy";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- NcpolicyPackage eINSTANCE = org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewEMFChildMenuImpl <em>New EMF Child Menu</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewEMFChildMenuImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getNewEMFChildMenu()
- * @generated
- */
- int NEW_EMF_CHILD_MENU = 0;
-
- /**
- * The feature id for the '<em><b>Submenus</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_EMF_CHILD_MENU__SUBMENUS = NewchildPackage.MENU__SUBMENUS;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_EMF_CHILD_MENU__ID = NewchildPackage.MENU__ID;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_EMF_CHILD_MENU__NAME = NewchildPackage.MENU__NAME;
-
- /**
- * The feature id for the '<em><b>Icon</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_EMF_CHILD_MENU__ICON = NewchildPackage.MENU__ICON;
-
- /**
- * The feature id for the '<em><b>Create In</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_EMF_CHILD_MENU__CREATE_IN = NewchildPackage.MENU_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Layout</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_EMF_CHILD_MENU__LAYOUT = NewchildPackage.MENU_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Groups</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_EMF_CHILD_MENU__GROUPS = NewchildPackage.MENU_FEATURE_COUNT + 2;
-
- /**
- * The number of structural features of the '<em>New EMF Child Menu</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_EMF_CHILD_MENU_FEATURE_COUNT = NewchildPackage.MENU_FEATURE_COUNT + 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicySetImpl <em>New Child Policy Set</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicySetImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getNewChildPolicySet()
- * @generated
- */
- int NEW_CHILD_POLICY_SET = 1;
-
- /**
- * The feature id for the '<em><b>Constraints</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_CHILD_POLICY_SET__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 NEW_CHILD_POLICY_SET__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 NEW_CHILD_POLICY_SET__NAME = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Policies</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_CHILD_POLICY_SET__POLICIES = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the '<em>New Child Policy Set</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_CHILD_POLICY_SET_FEATURE_COUNT = ConstraintsPackage.DISPLAY_UNIT_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicyImpl <em>New Child Policy</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicyImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getNewChildPolicy()
- * @generated
- */
- int NEW_CHILD_POLICY = 2;
-
- /**
- * The feature id for the '<em><b>Roles</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_CHILD_POLICY__ROLES = 0;
-
- /**
- * The feature id for the '<em><b>EClasses</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_CHILD_POLICY__ECLASSES = 1;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_CHILD_POLICY__NAME = 2;
-
- /**
- * The number of structural features of the '<em>New Child Policy</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NEW_CHILD_POLICY_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.FilterPolicyImpl <em>Filter Policy</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.FilterPolicyImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getFilterPolicy()
- * @generated
- */
- int FILTER_POLICY = 3;
-
- /**
- * The feature id for the '<em><b>Roles</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int FILTER_POLICY__ROLES = NEW_CHILD_POLICY__ROLES;
-
- /**
- * The feature id for the '<em><b>EClasses</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int FILTER_POLICY__ECLASSES = NEW_CHILD_POLICY__ECLASSES;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int FILTER_POLICY__NAME = NEW_CHILD_POLICY__NAME;
-
- /**
- * The number of structural features of the '<em>Filter Policy</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int FILTER_POLICY_FEATURE_COUNT = NEW_CHILD_POLICY_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.ReplacePolicyImpl <em>Replace Policy</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.ReplacePolicyImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getReplacePolicy()
- * @generated
- */
- int REPLACE_POLICY = 4;
-
- /**
- * The feature id for the '<em><b>Roles</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPLACE_POLICY__ROLES = NEW_CHILD_POLICY__ROLES;
-
- /**
- * The feature id for the '<em><b>EClasses</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPLACE_POLICY__ECLASSES = NEW_CHILD_POLICY__ECLASSES;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPLACE_POLICY__NAME = NEW_CHILD_POLICY__NAME;
-
- /**
- * The feature id for the '<em><b>Replace With</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPLACE_POLICY__REPLACE_WITH = NEW_CHILD_POLICY_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Replace Policy</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPLACE_POLICY_FEATURE_COUNT = NEW_CHILD_POLICY_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.CustomPolicyImpl <em>Custom Policy</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.CustomPolicyImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getCustomPolicy()
- * @generated
- */
- int CUSTOM_POLICY = 5;
-
- /**
- * The feature id for the '<em><b>Roles</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CUSTOM_POLICY__ROLES = NEW_CHILD_POLICY__ROLES;
-
- /**
- * The feature id for the '<em><b>EClasses</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CUSTOM_POLICY__ECLASSES = NEW_CHILD_POLICY__ECLASSES;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CUSTOM_POLICY__NAME = NEW_CHILD_POLICY__NAME;
-
- /**
- * The feature id for the '<em><b>Class Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CUSTOM_POLICY__CLASS_NAME = NEW_CHILD_POLICY_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Custom Policy</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CUSTOM_POLICY_FEATURE_COUNT = NEW_CHILD_POLICY_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CreateIn <em>Create In</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CreateIn
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getCreateIn()
- * @generated
- */
- int CREATE_IN = 6;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.Layout <em>Layout</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.Layout
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getLayout()
- * @generated
- */
- int LAYOUT = 7;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu <em>New EMF Child Menu</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>New EMF Child Menu</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu
- * @generated
- */
- EClass getNewEMFChildMenu();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu#getCreateIn <em>Create In</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Create In</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu#getCreateIn()
- * @see #getNewEMFChildMenu()
- * @generated
- */
- EAttribute getNewEMFChildMenu_CreateIn();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu#getLayout <em>Layout</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Layout</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu#getLayout()
- * @see #getNewEMFChildMenu()
- * @generated
- */
- EAttribute getNewEMFChildMenu_Layout();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu#getGroups <em>Groups</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Groups</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu#getGroups()
- * @see #getNewEMFChildMenu()
- * @generated
- */
- EReference getNewEMFChildMenu_Groups();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet <em>New Child Policy Set</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>New Child Policy Set</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet
- * @generated
- */
- EClass getNewChildPolicySet();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet#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.emf.newchild.ncpolicy.NewChildPolicySet#getName()
- * @see #getNewChildPolicySet()
- * @generated
- */
- EAttribute getNewChildPolicySet_Name();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet#getPolicies <em>Policies</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Policies</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet#getPolicies()
- * @see #getNewChildPolicySet()
- * @generated
- */
- EReference getNewChildPolicySet_Policies();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy <em>New Child Policy</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>New Child Policy</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy
- * @generated
- */
- EClass getNewChildPolicy();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy#getRoles <em>Roles</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute list '<em>Roles</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy#getRoles()
- * @see #getNewChildPolicy()
- * @generated
- */
- EAttribute getNewChildPolicy_Roles();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy#getEClasses <em>EClasses</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference list '<em>EClasses</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy#getEClasses()
- * @see #getNewChildPolicy()
- * @generated
- */
- EReference getNewChildPolicy_EClasses();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy#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.emf.newchild.ncpolicy.NewChildPolicy#getName()
- * @see #getNewChildPolicy()
- * @generated
- */
- EAttribute getNewChildPolicy_Name();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.FilterPolicy <em>Filter Policy</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Filter Policy</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.FilterPolicy
- * @generated
- */
- EClass getFilterPolicy();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.ReplacePolicy <em>Replace Policy</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Replace Policy</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.ReplacePolicy
- * @generated
- */
- EClass getReplacePolicy();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.ReplacePolicy#getReplaceWith <em>Replace With</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Replace With</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.ReplacePolicy#getReplaceWith()
- * @see #getReplacePolicy()
- * @generated
- */
- EReference getReplacePolicy_ReplaceWith();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CustomPolicy <em>Custom Policy</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Custom Policy</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CustomPolicy
- * @generated
- */
- EClass getCustomPolicy();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CustomPolicy#getClassName <em>Class Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Class Name</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CustomPolicy#getClassName()
- * @see #getCustomPolicy()
- * @generated
- */
- EAttribute getCustomPolicy_ClassName();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CreateIn <em>Create In</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for enum '<em>Create In</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CreateIn
- * @generated
- */
- EEnum getCreateIn();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.Layout <em>Layout</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for enum '<em>Layout</em>'.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.Layout
- * @generated
- */
- EEnum getLayout();
-
- /**
- * 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
- */
- NcpolicyFactory getNcpolicyFactory();
-
- /**
- * <!-- 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.emf.newchild.ncpolicy.impl.NewEMFChildMenuImpl <em>New EMF Child Menu</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewEMFChildMenuImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getNewEMFChildMenu()
- * @generated
- */
- EClass NEW_EMF_CHILD_MENU = eINSTANCE.getNewEMFChildMenu();
-
- /**
- * The meta object literal for the '<em><b>Create In</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute NEW_EMF_CHILD_MENU__CREATE_IN = eINSTANCE.getNewEMFChildMenu_CreateIn();
-
- /**
- * The meta object literal for the '<em><b>Layout</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute NEW_EMF_CHILD_MENU__LAYOUT = eINSTANCE.getNewEMFChildMenu_Layout();
-
- /**
- * The meta object literal for the '<em><b>Groups</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference NEW_EMF_CHILD_MENU__GROUPS = eINSTANCE.getNewEMFChildMenu_Groups();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicySetImpl <em>New Child Policy Set</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicySetImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getNewChildPolicySet()
- * @generated
- */
- EClass NEW_CHILD_POLICY_SET = eINSTANCE.getNewChildPolicySet();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute NEW_CHILD_POLICY_SET__NAME = eINSTANCE.getNewChildPolicySet_Name();
-
- /**
- * The meta object literal for the '<em><b>Policies</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference NEW_CHILD_POLICY_SET__POLICIES = eINSTANCE.getNewChildPolicySet_Policies();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicyImpl <em>New Child Policy</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicyImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getNewChildPolicy()
- * @generated
- */
- EClass NEW_CHILD_POLICY = eINSTANCE.getNewChildPolicy();
-
- /**
- * The meta object literal for the '<em><b>Roles</b></em>' attribute list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute NEW_CHILD_POLICY__ROLES = eINSTANCE.getNewChildPolicy_Roles();
-
- /**
- * The meta object literal for the '<em><b>EClasses</b></em>' reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference NEW_CHILD_POLICY__ECLASSES = eINSTANCE.getNewChildPolicy_EClasses();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute NEW_CHILD_POLICY__NAME = eINSTANCE.getNewChildPolicy_Name();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.FilterPolicyImpl <em>Filter Policy</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.FilterPolicyImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getFilterPolicy()
- * @generated
- */
- EClass FILTER_POLICY = eINSTANCE.getFilterPolicy();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.ReplacePolicyImpl <em>Replace Policy</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.ReplacePolicyImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getReplacePolicy()
- * @generated
- */
- EClass REPLACE_POLICY = eINSTANCE.getReplacePolicy();
-
- /**
- * The meta object literal for the '<em><b>Replace With</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference REPLACE_POLICY__REPLACE_WITH = eINSTANCE.getReplacePolicy_ReplaceWith();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.CustomPolicyImpl <em>Custom Policy</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.CustomPolicyImpl
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getCustomPolicy()
- * @generated
- */
- EClass CUSTOM_POLICY = eINSTANCE.getCustomPolicy();
-
- /**
- * The meta object literal for the '<em><b>Class Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute CUSTOM_POLICY__CLASS_NAME = eINSTANCE.getCustomPolicy_ClassName();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CreateIn <em>Create In</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CreateIn
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getCreateIn()
- * @generated
- */
- EEnum CREATE_IN = eINSTANCE.getCreateIn();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.Layout <em>Layout</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.Layout
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NcpolicyPackageImpl#getLayout()
- * @generated
- */
- EEnum LAYOUT = eINSTANCE.getLayout();
-
- }
-
-} // NcpolicyPackage
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NewChildPolicy.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NewChildPolicy.java
deleted file mode 100644
index de74df3b1c8..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NewChildPolicy.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>New Child Policy</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy#getRoles <em>Roles</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy#getEClasses <em>EClasses</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getNewChildPolicy()
- * @model abstract="true"
- * @generated
- */
-public interface NewChildPolicy extends EObject {
- /**
- * Returns the value of the '<em><b>Roles</b></em>' attribute list.
- * The list contents are of type {@link java.lang.String}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Roles</em>' attribute list isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Roles</em>' attribute list.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getNewChildPolicy_Roles()
- * @model
- * @generated
- */
- EList<String> getRoles();
-
- /**
- * Returns the value of the '<em><b>EClasses</b></em>' reference list.
- * The list contents are of type {@link org.eclipse.emf.ecore.EClass}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>EClasses</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>EClasses</em>' reference list.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getNewChildPolicy_EClasses()
- * @model
- * @generated
- */
- EList<EClass> getEClasses();
-
- /**
- * 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.emf.newchild.ncpolicy.NcpolicyPackage#getNewChildPolicy_Name()
- * @model required="true"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy#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);
-
-} // NewChildPolicy
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NewChildPolicySet.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NewChildPolicySet.java
deleted file mode 100644
index 2720b7303c8..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NewChildPolicySet.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy;
-
-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>New Child Policy Set</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet#getPolicies <em>Policies</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getNewChildPolicySet()
- * @model
- * @generated
- */
-public interface NewChildPolicySet 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.emf.newchild.ncpolicy.NcpolicyPackage#getNewChildPolicySet_Name()
- * @model required="true"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet#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>Policies</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Policies</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>Policies</em>' containment reference list.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getNewChildPolicySet_Policies()
- * @model containment="true"
- * @generated
- */
- EList<NewChildPolicy> getPolicies();
-
-} // NewChildPolicySet
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NewEMFChildMenu.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NewEMFChildMenu.java
deleted file mode 100644
index d8dd16922f5..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/NewEMFChildMenu.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.papyrus.infra.emf.newchild.Menu;
-import org.eclipse.papyrus.infra.emf.newchild.MenuGroup;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>New EMF Child Menu</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu#getCreateIn <em>Create In</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu#getLayout <em>Layout</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu#getGroups <em>Groups</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getNewEMFChildMenu()
- * @model
- * @generated
- */
-public interface NewEMFChildMenu extends Menu {
- /**
- * Returns the value of the '<em><b>Create In</b></em>' attribute.
- * The default value is <code>"self"</code>.
- * The literals are from the enumeration {@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CreateIn}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Create In</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Create In</em>' attribute.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CreateIn
- * @see #setCreateIn(CreateIn)
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getNewEMFChildMenu_CreateIn()
- * @model default="self" required="true"
- * @generated
- */
- CreateIn getCreateIn();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu#getCreateIn <em>Create In</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Create In</em>' attribute.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CreateIn
- * @see #getCreateIn()
- * @generated
- */
- void setCreateIn(CreateIn value);
-
- /**
- * Returns the value of the '<em><b>Layout</b></em>' attribute.
- * The default value is <code>"hierarchical"</code>.
- * The literals are from the enumeration {@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.Layout}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Layout</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Layout</em>' attribute.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.Layout
- * @see #setLayout(Layout)
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getNewEMFChildMenu_Layout()
- * @model default="hierarchical" required="true"
- * @generated
- */
- Layout getLayout();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu#getLayout <em>Layout</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Layout</em>' attribute.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.Layout
- * @see #getLayout()
- * @generated
- */
- void setLayout(Layout value);
-
- /**
- * Returns the value of the '<em><b>Groups</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.infra.emf.newchild.MenuGroup}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Groups</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>Groups</em>' containment reference list.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getNewEMFChildMenu_Groups()
- * @model containment="true"
- * @generated
- */
- EList<MenuGroup> getGroups();
-
-} // NewEMFChildMenu
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/ReplacePolicy.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/ReplacePolicy.java
deleted file mode 100644
index 14319bc7f23..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/ReplacePolicy.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.papyrus.infra.emf.newchild.MenuItem;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Replace Policy</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.ReplacePolicy#getReplaceWith <em>Replace With</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getReplacePolicy()
- * @model
- * @generated
- */
-public interface ReplacePolicy extends NewChildPolicy {
- /**
- * Returns the value of the '<em><b>Replace With</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.infra.emf.newchild.MenuItem}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Replace With</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>Replace With</em>' containment reference list.
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage#getReplacePolicy_ReplaceWith()
- * @model containment="true" required="true"
- * @generated
- */
- EList<MenuItem> getReplaceWith();
-
-} // ReplacePolicy
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/CustomPolicyImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/CustomPolicyImpl.java
deleted file mode 100644
index 94a3cc173bf..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/CustomPolicyImpl.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy.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.emf.newchild.ncpolicy.CustomPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Custom Policy</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.CustomPolicyImpl#getClassName <em>Class Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CustomPolicyImpl extends NewChildPolicyImpl implements CustomPolicy {
- /**
- * The default value of the '{@link #getClassName() <em>Class Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getClassName()
- * @generated
- * @ordered
- */
- protected static final String CLASS_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getClassName() <em>Class Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getClassName()
- * @generated
- * @ordered
- */
- protected String className = CLASS_NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected CustomPolicyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NcpolicyPackage.Literals.CUSTOM_POLICY;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getClassName() {
- return className;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setClassName(String newClassName) {
- String oldClassName = className;
- className = newClassName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NcpolicyPackage.CUSTOM_POLICY__CLASS_NAME, oldClassName, className));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NcpolicyPackage.CUSTOM_POLICY__CLASS_NAME:
- return getClassName();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NcpolicyPackage.CUSTOM_POLICY__CLASS_NAME:
- setClassName((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NcpolicyPackage.CUSTOM_POLICY__CLASS_NAME:
- setClassName(CLASS_NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NcpolicyPackage.CUSTOM_POLICY__CLASS_NAME:
- return CLASS_NAME_EDEFAULT == null ? className != null : !CLASS_NAME_EDEFAULT.equals(className);
- }
- 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(" (className: ");
- result.append(className);
- result.append(')');
- return result.toString();
- }
-
-} // CustomPolicyImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/FilterPolicyImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/FilterPolicyImpl.java
deleted file mode 100644
index aac5fee06d8..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/FilterPolicyImpl.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.FilterPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Filter Policy</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class FilterPolicyImpl extends NewChildPolicyImpl implements FilterPolicy {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected FilterPolicyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NcpolicyPackage.Literals.FILTER_POLICY;
- }
-
-} // FilterPolicyImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NcpolicyFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NcpolicyFactoryImpl.java
deleted file mode 100644
index d01ea74fbd4..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NcpolicyFactoryImpl.java
+++ /dev/null
@@ -1,248 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy.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.emf.newchild.ncpolicy.CreateIn;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CustomPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.FilterPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.Layout;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyFactory;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.ReplacePolicy;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class NcpolicyFactoryImpl extends EFactoryImpl implements NcpolicyFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static NcpolicyFactory init() {
- try {
- NcpolicyFactory theNcpolicyFactory = (NcpolicyFactory) EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/newchild/policy");
- if (theNcpolicyFactory != null) {
- return theNcpolicyFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new NcpolicyFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NcpolicyFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case NcpolicyPackage.NEW_EMF_CHILD_MENU:
- return createNewEMFChildMenu();
- case NcpolicyPackage.NEW_CHILD_POLICY_SET:
- return createNewChildPolicySet();
- case NcpolicyPackage.FILTER_POLICY:
- return createFilterPolicy();
- case NcpolicyPackage.REPLACE_POLICY:
- return createReplacePolicy();
- case NcpolicyPackage.CUSTOM_POLICY:
- return createCustomPolicy();
- 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 NcpolicyPackage.CREATE_IN:
- return createCreateInFromString(eDataType, initialValue);
- case NcpolicyPackage.LAYOUT:
- return createLayoutFromString(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 NcpolicyPackage.CREATE_IN:
- return convertCreateInToString(eDataType, instanceValue);
- case NcpolicyPackage.LAYOUT:
- return convertLayoutToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NewEMFChildMenu createNewEMFChildMenu() {
- NewEMFChildMenuImpl newEMFChildMenu = new NewEMFChildMenuImpl();
- return newEMFChildMenu;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NewChildPolicySet createNewChildPolicySet() {
- NewChildPolicySetImpl newChildPolicySet = new NewChildPolicySetImpl();
- return newChildPolicySet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public FilterPolicy createFilterPolicy() {
- FilterPolicyImpl filterPolicy = new FilterPolicyImpl();
- return filterPolicy;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ReplacePolicy createReplacePolicy() {
- ReplacePolicyImpl replacePolicy = new ReplacePolicyImpl();
- return replacePolicy;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public CustomPolicy createCustomPolicy() {
- CustomPolicyImpl customPolicy = new CustomPolicyImpl();
- return customPolicy;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public CreateIn createCreateInFromString(EDataType eDataType, String initialValue) {
- CreateIn result = CreateIn.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 convertCreateInToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Layout createLayoutFromString(EDataType eDataType, String initialValue) {
- Layout result = Layout.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 convertLayoutToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NcpolicyPackage getNcpolicyPackage() {
- return (NcpolicyPackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static NcpolicyPackage getPackage() {
- return NcpolicyPackage.eINSTANCE;
- }
-
-} // NcpolicyFactoryImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NcpolicyPackageImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NcpolicyPackageImpl.java
deleted file mode 100644
index 4053a5ff68b..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NcpolicyPackageImpl.java
+++ /dev/null
@@ -1,498 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy.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.emf.newchild.NewchildPackage;
-import org.eclipse.papyrus.infra.emf.newchild.impl.NewchildPackageImpl;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CreateIn;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CustomPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.FilterPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.Layout;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyFactory;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.ReplacePolicy;
-import org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage;
-import org.eclipse.uml2.types.TypesPackage;
-
-
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class NcpolicyPackageImpl extends EPackageImpl implements NcpolicyPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass newEMFChildMenuEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass newChildPolicySetEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass newChildPolicyEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass filterPolicyEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass replacePolicyEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass customPolicyEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EEnum createInEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EEnum layoutEEnum = 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.emf.newchild.ncpolicy.NcpolicyPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private NcpolicyPackageImpl() {
- super(eNS_URI, NcpolicyFactory.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 NcpolicyPackage#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 NcpolicyPackage init() {
- if (isInited) {
- return (NcpolicyPackage) EPackage.Registry.INSTANCE.getEPackage(NcpolicyPackage.eNS_URI);
- }
-
- // Obtain or create and register package
- NcpolicyPackageImpl theNcpolicyPackage = (NcpolicyPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof NcpolicyPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new NcpolicyPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- ConstraintsPackage.eINSTANCE.eClass();
- ExtendedtypesPackage.eINSTANCE.eClass();
- TypesPackage.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- NewchildPackageImpl theNewchildPackage = (NewchildPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(NewchildPackage.eNS_URI) instanceof NewchildPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NewchildPackage.eNS_URI)
- : NewchildPackage.eINSTANCE);
-
- // Create package meta-data objects
- theNcpolicyPackage.createPackageContents();
- theNewchildPackage.createPackageContents();
-
- // Initialize created meta-data
- theNcpolicyPackage.initializePackageContents();
- theNewchildPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theNcpolicyPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(NcpolicyPackage.eNS_URI, theNcpolicyPackage);
- return theNcpolicyPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getNewEMFChildMenu() {
- return newEMFChildMenuEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getNewEMFChildMenu_CreateIn() {
- return (EAttribute) newEMFChildMenuEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getNewEMFChildMenu_Layout() {
- return (EAttribute) newEMFChildMenuEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getNewEMFChildMenu_Groups() {
- return (EReference) newEMFChildMenuEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getNewChildPolicySet() {
- return newChildPolicySetEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getNewChildPolicySet_Name() {
- return (EAttribute) newChildPolicySetEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getNewChildPolicySet_Policies() {
- return (EReference) newChildPolicySetEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getNewChildPolicy() {
- return newChildPolicyEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getNewChildPolicy_Roles() {
- return (EAttribute) newChildPolicyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getNewChildPolicy_EClasses() {
- return (EReference) newChildPolicyEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getNewChildPolicy_Name() {
- return (EAttribute) newChildPolicyEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getFilterPolicy() {
- return filterPolicyEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getReplacePolicy() {
- return replacePolicyEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getReplacePolicy_ReplaceWith() {
- return (EReference) replacePolicyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getCustomPolicy() {
- return customPolicyEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getCustomPolicy_ClassName() {
- return (EAttribute) customPolicyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EEnum getCreateIn() {
- return createInEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EEnum getLayout() {
- return layoutEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NcpolicyFactory getNcpolicyFactory() {
- return (NcpolicyFactory) 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
- newEMFChildMenuEClass = createEClass(NEW_EMF_CHILD_MENU);
- createEAttribute(newEMFChildMenuEClass, NEW_EMF_CHILD_MENU__CREATE_IN);
- createEAttribute(newEMFChildMenuEClass, NEW_EMF_CHILD_MENU__LAYOUT);
- createEReference(newEMFChildMenuEClass, NEW_EMF_CHILD_MENU__GROUPS);
-
- newChildPolicySetEClass = createEClass(NEW_CHILD_POLICY_SET);
- createEAttribute(newChildPolicySetEClass, NEW_CHILD_POLICY_SET__NAME);
- createEReference(newChildPolicySetEClass, NEW_CHILD_POLICY_SET__POLICIES);
-
- newChildPolicyEClass = createEClass(NEW_CHILD_POLICY);
- createEAttribute(newChildPolicyEClass, NEW_CHILD_POLICY__ROLES);
- createEReference(newChildPolicyEClass, NEW_CHILD_POLICY__ECLASSES);
- createEAttribute(newChildPolicyEClass, NEW_CHILD_POLICY__NAME);
-
- filterPolicyEClass = createEClass(FILTER_POLICY);
-
- replacePolicyEClass = createEClass(REPLACE_POLICY);
- createEReference(replacePolicyEClass, REPLACE_POLICY__REPLACE_WITH);
-
- customPolicyEClass = createEClass(CUSTOM_POLICY);
- createEAttribute(customPolicyEClass, CUSTOM_POLICY__CLASS_NAME);
-
- // Create enums
- createInEEnum = createEEnum(CREATE_IN);
- layoutEEnum = createEEnum(LAYOUT);
- }
-
- /**
- * <!-- 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
- NewchildPackage theNewchildPackage = (NewchildPackage) EPackage.Registry.INSTANCE.getEPackage(NewchildPackage.eNS_URI);
- ConstraintsPackage theConstraintsPackage = (ConstraintsPackage) EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI);
- EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- newEMFChildMenuEClass.getESuperTypes().add(theNewchildPackage.getMenu());
- newChildPolicySetEClass.getESuperTypes().add(theConstraintsPackage.getDisplayUnit());
- filterPolicyEClass.getESuperTypes().add(this.getNewChildPolicy());
- replacePolicyEClass.getESuperTypes().add(this.getNewChildPolicy());
- customPolicyEClass.getESuperTypes().add(this.getNewChildPolicy());
-
- // Initialize classes and features; add operations and parameters
- initEClass(newEMFChildMenuEClass, NewEMFChildMenu.class, "NewEMFChildMenu", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getNewEMFChildMenu_CreateIn(), this.getCreateIn(), "createIn", "self", 1, 1, NewEMFChildMenu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getNewEMFChildMenu_Layout(), this.getLayout(), "layout", "hierarchical", 1, 1, NewEMFChildMenu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getNewEMFChildMenu_Groups(), theNewchildPackage.getMenuGroup(), null, "groups", null, 0, -1, NewEMFChildMenu.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(newChildPolicySetEClass, NewChildPolicySet.class, "NewChildPolicySet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getNewChildPolicySet_Name(), theEcorePackage.getEString(), "name", null, 1, 1, NewChildPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getNewChildPolicySet_Policies(), this.getNewChildPolicy(), null, "policies", null, 0, -1, NewChildPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(newChildPolicyEClass, NewChildPolicy.class, "NewChildPolicy", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getNewChildPolicy_Roles(), theEcorePackage.getEString(), "roles", null, 0, -1, NewChildPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getNewChildPolicy_EClasses(), theEcorePackage.getEClass(), null, "eClasses", null, 0, -1, NewChildPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
- initEAttribute(getNewChildPolicy_Name(), theEcorePackage.getEString(), "name", null, 1, 1, NewChildPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(filterPolicyEClass, FilterPolicy.class, "FilterPolicy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(replacePolicyEClass, ReplacePolicy.class, "ReplacePolicy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getReplacePolicy_ReplaceWith(), theNewchildPackage.getMenuItem(), null, "replaceWith", null, 1, -1, ReplacePolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, IS_ORDERED);
-
- initEClass(customPolicyEClass, CustomPolicy.class, "CustomPolicy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getCustomPolicy_ClassName(), theEcorePackage.getEString(), "className", null, 1, 1, CustomPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Initialize enums and add enum literals
- initEEnum(createInEEnum, CreateIn.class, "CreateIn");
- addEEnumLiteral(createInEEnum, CreateIn.SELF);
- addEEnumLiteral(createInEEnum, CreateIn.PARENT);
-
- initEEnum(layoutEEnum, Layout.class, "Layout");
- addEEnumLiteral(layoutEEnum, Layout.HIERARCHICAL);
- addEEnumLiteral(layoutEEnum, Layout.FLAT);
- addEEnumLiteral(layoutEEnum, Layout.AUTO);
- }
-
-} // NcpolicyPackageImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NewChildPolicyImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NewChildPolicyImpl.java
deleted file mode 100644
index bce2cf0cd7f..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NewChildPolicyImpl.java
+++ /dev/null
@@ -1,258 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
-import org.eclipse.emf.ecore.util.EObjectResolvingEList;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>New Child Policy</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicyImpl#getRoles <em>Roles</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicyImpl#getEClasses <em>EClasses</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicyImpl#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public abstract class NewChildPolicyImpl extends EObjectImpl implements NewChildPolicy {
- /**
- * The cached value of the '{@link #getRoles() <em>Roles</em>}' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRoles()
- * @generated
- * @ordered
- */
- protected EList<String> roles;
-
- /**
- * The cached value of the '{@link #getEClasses() <em>EClasses</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getEClasses()
- * @generated
- * @ordered
- */
- protected EList<EClass> eClasses;
-
- /**
- * 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 NewChildPolicyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NcpolicyPackage.Literals.NEW_CHILD_POLICY;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getRoles() {
- if (roles == null) {
- roles = new EDataTypeUniqueEList<String>(String.class, this, NcpolicyPackage.NEW_CHILD_POLICY__ROLES);
- }
- return roles;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<EClass> getEClasses() {
- if (eClasses == null) {
- eClasses = new EObjectResolvingEList<EClass>(EClass.class, this, NcpolicyPackage.NEW_CHILD_POLICY__ECLASSES);
- }
- return eClasses;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NcpolicyPackage.NEW_CHILD_POLICY__NAME, oldName, name));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NcpolicyPackage.NEW_CHILD_POLICY__ROLES:
- return getRoles();
- case NcpolicyPackage.NEW_CHILD_POLICY__ECLASSES:
- return getEClasses();
- case NcpolicyPackage.NEW_CHILD_POLICY__NAME:
- return getName();
- }
- 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 NcpolicyPackage.NEW_CHILD_POLICY__ROLES:
- getRoles().clear();
- getRoles().addAll((Collection<? extends String>) newValue);
- return;
- case NcpolicyPackage.NEW_CHILD_POLICY__ECLASSES:
- getEClasses().clear();
- getEClasses().addAll((Collection<? extends EClass>) newValue);
- return;
- case NcpolicyPackage.NEW_CHILD_POLICY__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 NcpolicyPackage.NEW_CHILD_POLICY__ROLES:
- getRoles().clear();
- return;
- case NcpolicyPackage.NEW_CHILD_POLICY__ECLASSES:
- getEClasses().clear();
- return;
- case NcpolicyPackage.NEW_CHILD_POLICY__NAME:
- setName(NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NcpolicyPackage.NEW_CHILD_POLICY__ROLES:
- return roles != null && !roles.isEmpty();
- case NcpolicyPackage.NEW_CHILD_POLICY__ECLASSES:
- return eClasses != null && !eClasses.isEmpty();
- case NcpolicyPackage.NEW_CHILD_POLICY__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(" (roles: ");
- result.append(roles);
- result.append(", name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} // NewChildPolicyImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NewChildPolicySetImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NewChildPolicySetImpl.java
deleted file mode 100644
index c73a7e47dd5..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NewChildPolicySetImpl.java
+++ /dev/null
@@ -1,238 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy.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.constraints.impl.DisplayUnitImpl;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>New Child Policy Set</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicySetImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewChildPolicySetImpl#getPolicies <em>Policies</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class NewChildPolicySetImpl extends DisplayUnitImpl implements NewChildPolicySet {
- /**
- * 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 #getPolicies() <em>Policies</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getPolicies()
- * @generated
- * @ordered
- */
- protected EList<NewChildPolicy> policies;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected NewChildPolicySetImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NcpolicyPackage.Literals.NEW_CHILD_POLICY_SET;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NcpolicyPackage.NEW_CHILD_POLICY_SET__NAME, oldName, name));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<NewChildPolicy> getPolicies() {
- if (policies == null) {
- policies = new EObjectContainmentEList<NewChildPolicy>(NewChildPolicy.class, this, NcpolicyPackage.NEW_CHILD_POLICY_SET__POLICIES);
- }
- return policies;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NcpolicyPackage.NEW_CHILD_POLICY_SET__POLICIES:
- return ((InternalEList<?>) getPolicies()).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 NcpolicyPackage.NEW_CHILD_POLICY_SET__NAME:
- return getName();
- case NcpolicyPackage.NEW_CHILD_POLICY_SET__POLICIES:
- return getPolicies();
- }
- 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 NcpolicyPackage.NEW_CHILD_POLICY_SET__NAME:
- setName((String) newValue);
- return;
- case NcpolicyPackage.NEW_CHILD_POLICY_SET__POLICIES:
- getPolicies().clear();
- getPolicies().addAll((Collection<? extends NewChildPolicy>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NcpolicyPackage.NEW_CHILD_POLICY_SET__NAME:
- setName(NAME_EDEFAULT);
- return;
- case NcpolicyPackage.NEW_CHILD_POLICY_SET__POLICIES:
- getPolicies().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NcpolicyPackage.NEW_CHILD_POLICY_SET__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case NcpolicyPackage.NEW_CHILD_POLICY_SET__POLICIES:
- return policies != null && !policies.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();
- }
-
-} // NewChildPolicySetImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NewEMFChildMenuImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NewEMFChildMenuImpl.java
deleted file mode 100644
index bc1388e1ab2..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/NewEMFChildMenuImpl.java
+++ /dev/null
@@ -1,301 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy.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.emf.newchild.MenuGroup;
-import org.eclipse.papyrus.infra.emf.newchild.impl.MenuImpl;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CreateIn;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.Layout;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu;
-
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>New EMF Child Menu</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewEMFChildMenuImpl#getCreateIn <em>Create In</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewEMFChildMenuImpl#getLayout <em>Layout</em>}</li>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.NewEMFChildMenuImpl#getGroups <em>Groups</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class NewEMFChildMenuImpl extends MenuImpl implements NewEMFChildMenu {
- /**
- * The default value of the '{@link #getCreateIn() <em>Create In</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getCreateIn()
- * @generated
- * @ordered
- */
- protected static final CreateIn CREATE_IN_EDEFAULT = CreateIn.SELF;
-
- /**
- * The cached value of the '{@link #getCreateIn() <em>Create In</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getCreateIn()
- * @generated
- * @ordered
- */
- protected CreateIn createIn = CREATE_IN_EDEFAULT;
-
- /**
- * The default value of the '{@link #getLayout() <em>Layout</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLayout()
- * @generated
- * @ordered
- */
- protected static final Layout LAYOUT_EDEFAULT = Layout.HIERARCHICAL;
-
- /**
- * The cached value of the '{@link #getLayout() <em>Layout</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLayout()
- * @generated
- * @ordered
- */
- protected Layout layout = LAYOUT_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getGroups() <em>Groups</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getGroups()
- * @generated
- * @ordered
- */
- protected EList<MenuGroup> groups;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected NewEMFChildMenuImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NcpolicyPackage.Literals.NEW_EMF_CHILD_MENU;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public CreateIn getCreateIn() {
- return createIn;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setCreateIn(CreateIn newCreateIn) {
- CreateIn oldCreateIn = createIn;
- createIn = newCreateIn == null ? CREATE_IN_EDEFAULT : newCreateIn;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NcpolicyPackage.NEW_EMF_CHILD_MENU__CREATE_IN, oldCreateIn, createIn));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Layout getLayout() {
- return layout;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setLayout(Layout newLayout) {
- Layout oldLayout = layout;
- layout = newLayout == null ? LAYOUT_EDEFAULT : newLayout;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NcpolicyPackage.NEW_EMF_CHILD_MENU__LAYOUT, oldLayout, layout));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<MenuGroup> getGroups() {
- if (groups == null) {
- groups = new EObjectContainmentEList<MenuGroup>(MenuGroup.class, this, NcpolicyPackage.NEW_EMF_CHILD_MENU__GROUPS);
- }
- return groups;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NcpolicyPackage.NEW_EMF_CHILD_MENU__GROUPS:
- return ((InternalEList<?>) getGroups()).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 NcpolicyPackage.NEW_EMF_CHILD_MENU__CREATE_IN:
- return getCreateIn();
- case NcpolicyPackage.NEW_EMF_CHILD_MENU__LAYOUT:
- return getLayout();
- case NcpolicyPackage.NEW_EMF_CHILD_MENU__GROUPS:
- return getGroups();
- }
- 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 NcpolicyPackage.NEW_EMF_CHILD_MENU__CREATE_IN:
- setCreateIn((CreateIn) newValue);
- return;
- case NcpolicyPackage.NEW_EMF_CHILD_MENU__LAYOUT:
- setLayout((Layout) newValue);
- return;
- case NcpolicyPackage.NEW_EMF_CHILD_MENU__GROUPS:
- getGroups().clear();
- getGroups().addAll((Collection<? extends MenuGroup>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NcpolicyPackage.NEW_EMF_CHILD_MENU__CREATE_IN:
- setCreateIn(CREATE_IN_EDEFAULT);
- return;
- case NcpolicyPackage.NEW_EMF_CHILD_MENU__LAYOUT:
- setLayout(LAYOUT_EDEFAULT);
- return;
- case NcpolicyPackage.NEW_EMF_CHILD_MENU__GROUPS:
- getGroups().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NcpolicyPackage.NEW_EMF_CHILD_MENU__CREATE_IN:
- return createIn != CREATE_IN_EDEFAULT;
- case NcpolicyPackage.NEW_EMF_CHILD_MENU__LAYOUT:
- return layout != LAYOUT_EDEFAULT;
- case NcpolicyPackage.NEW_EMF_CHILD_MENU__GROUPS:
- return groups != null && !groups.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(" (createIn: ");
- result.append(createIn);
- result.append(", layout: ");
- result.append(layout);
- result.append(')');
- return result.toString();
- }
-
-} // NewEMFChildMenuImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/ReplacePolicyImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/ReplacePolicyImpl.java
deleted file mode 100644
index 9348174c193..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/impl/ReplacePolicyImpl.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy.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.emf.newchild.MenuItem;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.ReplacePolicy;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Replace Policy</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.impl.ReplacePolicyImpl#getReplaceWith <em>Replace With</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ReplacePolicyImpl extends NewChildPolicyImpl implements ReplacePolicy {
- /**
- * The cached value of the '{@link #getReplaceWith() <em>Replace With</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getReplaceWith()
- * @generated
- * @ordered
- */
- protected EList<MenuItem> replaceWith;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ReplacePolicyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NcpolicyPackage.Literals.REPLACE_POLICY;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<MenuItem> getReplaceWith() {
- if (replaceWith == null) {
- replaceWith = new EObjectContainmentEList<MenuItem>(MenuItem.class, this, NcpolicyPackage.REPLACE_POLICY__REPLACE_WITH);
- }
- return replaceWith;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NcpolicyPackage.REPLACE_POLICY__REPLACE_WITH:
- return ((InternalEList<?>) getReplaceWith()).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 NcpolicyPackage.REPLACE_POLICY__REPLACE_WITH:
- return getReplaceWith();
- }
- 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 NcpolicyPackage.REPLACE_POLICY__REPLACE_WITH:
- getReplaceWith().clear();
- getReplaceWith().addAll((Collection<? extends MenuItem>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NcpolicyPackage.REPLACE_POLICY__REPLACE_WITH:
- getReplaceWith().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NcpolicyPackage.REPLACE_POLICY__REPLACE_WITH:
- return replaceWith != null && !replaceWith.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} // ReplacePolicyImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyAdapterFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyAdapterFactory.java
deleted file mode 100644
index c83d247ac34..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyAdapterFactory.java
+++ /dev/null
@@ -1,322 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy.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.DisplayUnit;
-import org.eclipse.papyrus.infra.emf.newchild.Menu;
-import org.eclipse.papyrus.infra.emf.newchild.MenuContainer;
-import org.eclipse.papyrus.infra.emf.newchild.MenuItem;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CustomPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.FilterPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.ReplacePolicy;
-
-
-/**
- * <!-- 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.emf.newchild.ncpolicy.NcpolicyPackage
- * @generated
- */
-public class NcpolicyAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static NcpolicyPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NcpolicyAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = NcpolicyPackage.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 NcpolicySwitch<Adapter> modelSwitch =
- new NcpolicySwitch<Adapter>() {
- @Override
- public Adapter caseNewEMFChildMenu(NewEMFChildMenu object) {
- return createNewEMFChildMenuAdapter();
- }
-
- @Override
- public Adapter caseNewChildPolicySet(NewChildPolicySet object) {
- return createNewChildPolicySetAdapter();
- }
-
- @Override
- public Adapter caseNewChildPolicy(NewChildPolicy object) {
- return createNewChildPolicyAdapter();
- }
-
- @Override
- public Adapter caseFilterPolicy(FilterPolicy object) {
- return createFilterPolicyAdapter();
- }
-
- @Override
- public Adapter caseReplacePolicy(ReplacePolicy object) {
- return createReplacePolicyAdapter();
- }
-
- @Override
- public Adapter caseCustomPolicy(CustomPolicy object) {
- return createCustomPolicyAdapter();
- }
-
- @Override
- public Adapter caseMenuContainer(MenuContainer object) {
- return createMenuContainerAdapter();
- }
-
- @Override
- public Adapter caseMenuItem(MenuItem object) {
- return createMenuItemAdapter();
- }
-
- @Override
- public Adapter caseMenu(Menu object) {
- return createMenuAdapter();
- }
-
- @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.emf.newchild.ncpolicy.NewEMFChildMenu <em>New EMF Child Menu</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.emf.newchild.ncpolicy.NewEMFChildMenu
- * @generated
- */
- public Adapter createNewEMFChildMenuAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet <em>New Child Policy Set</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.emf.newchild.ncpolicy.NewChildPolicySet
- * @generated
- */
- public Adapter createNewChildPolicySetAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy <em>New Child Policy</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.emf.newchild.ncpolicy.NewChildPolicy
- * @generated
- */
- public Adapter createNewChildPolicyAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.FilterPolicy <em>Filter Policy</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.emf.newchild.ncpolicy.FilterPolicy
- * @generated
- */
- public Adapter createFilterPolicyAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.ReplacePolicy <em>Replace Policy</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.emf.newchild.ncpolicy.ReplacePolicy
- * @generated
- */
- public Adapter createReplacePolicyAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CustomPolicy <em>Custom Policy</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.emf.newchild.ncpolicy.CustomPolicy
- * @generated
- */
- public Adapter createCustomPolicyAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.newchild.MenuContainer <em>Menu Container</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.emf.newchild.MenuContainer
- * @generated
- */
- public Adapter createMenuContainerAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.newchild.MenuItem <em>Menu Item</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.emf.newchild.MenuItem
- * @generated
- */
- public Adapter createMenuItemAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.newchild.Menu <em>Menu</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.emf.newchild.Menu
- * @generated
- */
- public Adapter createMenuAdapter() {
- 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;
- }
-
-} // NcpolicyAdapterFactory
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyResourceFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyResourceFactoryImpl.java
deleted file mode 100644
index 64dff1e92ff..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyResourceFactoryImpl.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy.util;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
-import org.eclipse.emf.ecore.xmi.XMLResource;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource Factory</b> associated with the package.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.util.NcpolicyResourceImpl
- * @generated
- */
-public class NcpolicyResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NcpolicyResourceFactoryImpl() {
- super();
- }
-
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Resource createResource(URI uri) {
- XMLResource result = new NcpolicyResourceImpl(uri);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
- result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
-
- result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
- return result;
- }
-
-} // NcpolicyResourceFactoryImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyResourceImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyResourceImpl.java
deleted file mode 100644
index b63cdd57c4a..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicyResourceImpl.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy.util;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource </b> associated with the package.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.infra.emf.newchild.ncpolicy.util.NcpolicyResourceFactoryImpl
- * @generated
- */
-public class NcpolicyResourceImpl extends XMLResourceImpl {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param uri
- * the URI of the new resource.
- * @generated
- */
- public NcpolicyResourceImpl(URI uri) {
- super(uri);
- }
-
-} // NcpolicyResourceImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicySwitch.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicySwitch.java
deleted file mode 100644
index 0cb482a391f..00000000000
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicySwitch.java
+++ /dev/null
@@ -1,348 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.infra.emf.newchild.ncpolicy.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.DisplayUnit;
-import org.eclipse.papyrus.infra.emf.newchild.Menu;
-import org.eclipse.papyrus.infra.emf.newchild.MenuContainer;
-import org.eclipse.papyrus.infra.emf.newchild.MenuItem;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.CustomPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.FilterPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicy;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewChildPolicySet;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.NewEMFChildMenu;
-import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.ReplacePolicy;
-
-
-/**
- * <!-- 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.emf.newchild.ncpolicy.NcpolicyPackage
- * @generated
- */
-public class NcpolicySwitch<T> extends Switch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static NcpolicyPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NcpolicySwitch() {
- if (modelPackage == null) {
- modelPackage = NcpolicyPackage.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 NcpolicyPackage.NEW_EMF_CHILD_MENU: {
- NewEMFChildMenu newEMFChildMenu = (NewEMFChildMenu) theEObject;
- T result = caseNewEMFChildMenu(newEMFChildMenu);
- if (result == null) {
- result = caseMenu(newEMFChildMenu);
- }
- if (result == null) {
- result = caseMenuContainer(newEMFChildMenu);
- }
- if (result == null) {
- result = caseMenuItem(newEMFChildMenu);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case NcpolicyPackage.NEW_CHILD_POLICY_SET: {
- NewChildPolicySet newChildPolicySet = (NewChildPolicySet) theEObject;
- T result = caseNewChildPolicySet(newChildPolicySet);
- if (result == null) {
- result = caseDisplayUnit(newChildPolicySet);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case NcpolicyPackage.NEW_CHILD_POLICY: {
- NewChildPolicy newChildPolicy = (NewChildPolicy) theEObject;
- T result = caseNewChildPolicy(newChildPolicy);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case NcpolicyPackage.FILTER_POLICY: {
- FilterPolicy filterPolicy = (FilterPolicy) theEObject;
- T result = caseFilterPolicy(filterPolicy);
- if (result == null) {
- result = caseNewChildPolicy(filterPolicy);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case NcpolicyPackage.REPLACE_POLICY: {
- ReplacePolicy replacePolicy = (ReplacePolicy) theEObject;
- T result = caseReplacePolicy(replacePolicy);
- if (result == null) {
- result = caseNewChildPolicy(replacePolicy);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case NcpolicyPackage.CUSTOM_POLICY: {
- CustomPolicy customPolicy = (CustomPolicy) theEObject;
- T result = caseCustomPolicy(customPolicy);
- if (result == null) {
- result = caseNewChildPolicy(customPolicy);
- }